Prev: B519 Up: Map Next: B531
B520: HL = the address of the object record numbered A
Used by the routines at RENDER_DYNAMIC_OBJECTS and SORT_AND_DRAW.
Bit 7 of A is ignored: the draw list (DRAW_LIST) sets it on entries already drawn. BC is kept.
Input
A the record's number, 0-53
Output
HL the record, 32 bytes each from OBJECTS
RECORD_OF B520 PUSH BC
B521 AND $7F drop the drawn bit
B523 LD L,A times 32, plus the first record
B524 LD H,$00
B526 ADD HL,HL
B527 ADD HL,HL
B528 ADD HL,HL
B529 ADD HL,HL
B52A ADD HL,HL
B52B LD BC,OBJECTS
B52E ADD HL,BC
B52F POP BC
B530 RET
Prev: B519 Up: Map Next: B531