Prev: 61267 Up: Map Next: 61336
61297: Room drawing: Set apply-vertical-mirror flag, set apply-horizontal-mirror flag and draw a graphic
Used by the routine at 40664.
61297 LD A,205 Load 61373 with opcode for CALL
61299 LD (61373),A
61302 LD HL,61625 Load 61374 (i.e. operand of instruction at 61373) with address of start of "reverse the order of the bits in A" routine
61305 LD (61374),HL
61308 LD A,7 Set pixel row counter to 7
61310 LD (23449),A
61313 LD A,3 Set both apply-horizontal-mirror and apply-vertical-mirror flags
61315 LD (23450),A
61318 LD BC,(23410) Load BC with coordinates (each +1) of bottom-right of graphic to draw
61322 DEC C Decrease x-coordinate by one
This entry point is used by the routine at 61267.
61323 LD (23444),BC Store coordinates at which to draw graphic at 23444
61327 CALL 63203 Move virtual cursor (bitmap) to display file address for coordinates x=C, y=B and load address into HL
61330 LD A,7 Advance HL down to bottom pixel row in its current character block (as we are drawing up from the bottom)
61332 ADD A,H
61333 LD H,A
61334 JR 61343 Jump to 61343 (draw the graphic then return)
Prev: 61267 Up: Map Next: 61336