Routines |
Prev: B8D6 | Up: Map | Next: B910 |
Used by the routine at Animation_BarMaid.
|
||||
Print_BarMaid_Frame | B8F5 | HALT | Halt operation (suspend CPU until the next interrupt) four times. | |
B8F6 | HALT | |||
B8F7 | HALT | |||
B8F8 | HALT | |||
B8F9 | LD B,$20 | Set a counter in B of 20 for the height of the graphic. | ||
B8FB | LD HL,$40AE | Set the target screen buffer location in HL. | ||
Print_BarMaid_Frame_Loop | B8FE | PUSH BC | Stash the height counter and screen buffer location on the stack. | |
B8FF | PUSH HL | |||
B900 | EX DE,HL | Exchange the DE and HL registers. | ||
B901 | LDI | Copy 03 bytes of data from the graphic to the screen buffer. | ||
B903 | LDI | |||
B905 | LDI | |||
B907 | EX DE,HL | Exchange the DE and HL registers. | ||
B908 | POP HL | Restore the screen buffer location from the stack. | ||
B909 | CALL NextScreenBufferLine | Call NextScreenBufferLine. | ||
B90C | POP BC | Restore the height counter from the stack. | ||
B90D | DJNZ Print_BarMaid_Frame_Loop | Decrease the height counter by one and loop back to Print_BarMaid_Frame_Loop until the frame has been displayed in full. | ||
B90F | RET | Return. |
Prev: B8D6 | Up: Map | Next: B910 |