Prev: CC6D Up: Map Next: CCA7
CC96: The address of the object record numbered A
Used by the routines at SORT_AND_DRAW and RENDER_DYNAMIC_OBJECTS.
Bit 7 of A is ignored: the draw list (DRAW_LIST) sets it on entries already drawn. BC is kept. As Knight Lore's get_ptr_object, from OBJECTS here.
Input
A the record's number, 0-55
Output
HL the record
GET_PTR_OBJECT CC96 PUSH BC
CC97 AND $7F Drop bit 7
CC99 LD L,A Times 32, plus the first record
CC9A LD H,$00
CC9C ADD HL,HL
CC9D ADD HL,HL
CC9E ADD HL,HL
CC9F ADD HL,HL
CCA0 ADD HL,HL
CCA1 LD BC,OBJECTS
CCA4 ADD HL,BC
CCA5 POP BC
CCA6 RET
Prev: CC6D Up: Map Next: CCA7