Prev: AD48 Up: Map Next: ADD8
ADBE: Find a record's graphic
Used by the routines at ship_hits_ground_objects, prepare_erase and prepare_draw.
The graphic number (+0) picks a frame list from the graphic table (the words from the 25th byte of object_handlers), and bits 0-3 of +$13 the frame in it.
Input
IX The record
Output
DE The graphic (width, height, rows)
object_graphic ADBE LD C,(IX+$00)
ADC1 LD B,$00
ADC3 LD HL,object_graphic_lists
ADC6 ADD HL,BC
ADC7 ADD HL,BC
ADC8 LD A,(HL)
ADC9 INC HL
ADCA LD H,(HL)
ADCB LD L,A
ADCC LD A,(IX+$13)
ADCF AND $0F
ADD1 LD C,A
ADD2 ADD HL,BC
ADD3 ADD HL,BC
ADD4 LD E,(HL)
ADD5 INC HL
ADD6 LD D,(HL)
ADD7 RET
Prev: AD48 Up: Map Next: ADD8