Routines |
Prev: EF7C | Up: Map | Next: EFBD |
Used by the routine at CD41.
|
||||||||
EF7E | LD ($F041),HL | Store the pointer to start room data. | ||||||
EF81 | LD A,(HL) | Get the address from this and put it in HL. | ||||||
EF82 | INC HL | |||||||
EF83 | LD H,(HL) | |||||||
EF84 | LD L,A | |||||||
EF85 | LD ($F043),HL | Store this. | ||||||
EF88 | LD HL,($F041) | Get the data pointer. | ||||||
EF8B | INC HL | Go to the next address, which has the UDGs. | ||||||
EF8C | INC HL | |||||||
EF8D | LD ($F041),HL | Store this. | ||||||
EF90 | LD D,$02 | Start at row 2 column 2. | ||||||
EF92 | LD E,$02 | |||||||
EF94 | LD ($F045),DE | Set this as the current position. | ||||||
EF98 | LD B,$14 | 14 rows | ||||||
EF9A | PUSH BC | Store this. | ||||||
EF9B | LD B,$1C | 1C columns | ||||||
EF9D | LD DE,($F045) | Get the next position. | ||||||
EFA1 | PUSH BC | Remember BC | ||||||
EFA2 | LD HL,($F041) | Get the next data. | ||||||
EFA5 | LD A,(HL) | Get the byte. | ||||||
EFA6 | INC HL | Move to the next address and store it. | ||||||
EFA7 | LD ($F041),HL | |||||||
EFAA | CALL $EFBD | Print the graphic | ||||||
EFAD | POP BC | Loop until all the columns for this row are done. | ||||||
EFAE | DJNZ $EFA1 | |||||||
EFB0 | POP BC | Restore BC | ||||||
EFB1 | LD DE,($F045) | Move to the next row. | ||||||
EFB5 | INC D | |||||||
EFB6 | LD ($F045),DE | |||||||
EFBA | DJNZ $EF9A | Loop until all the rows are done. | ||||||
EFBC | RET |
Prev: EF7C | Up: Map | Next: EFBD |