![]() |
Routines |
Prev: 29860 | Up: Map | Next: 30098 |
30052 | CALL ConvertScreenToAttributeBufferAddress | Call ConvertScreenToAttributeBufferAddress. | ||
30055 | EX DE,HL | Exchange the DE and HL registers. | ||
30056 | LD E,1 | E=1. | ||
30058 | LD B,3 | B=3. | ||
30060 | PUSH BC | Stash BC on the stack. | ||
30061 | LD A,(HL) | Jump to 30084 if *HL is equal to 70 or 7. | ||
30062 | CP 70 | |||
30064 | JR Z,30084 | |||
30066 | CP 7 | |||
30068 | JR Z,30084 | |||
30070 | LD (HL),0 | Write 0 to *HL. | ||
30072 | PUSH HL | Stash HL on the stack. | ||
30073 | CALL ConvertAttributeToScreenBufferAddress | Call ConvertAttributeToScreenBufferAddress. | ||
30076 | LD B,8 | B=8. | ||
30078 | XOR A | A=0. | ||
30079 | LD (HL),A | Write A to *HL. | ||
30080 | INC H | Increment H by one. | ||
30081 | DJNZ 30079 | Decrease counter by one and loop back to 30079 until counter is zero. | ||
30083 | POP HL | Restore HL from the stack. | ||
30084 | INC HL | Increment HL by one. | ||
30085 | POP BC | Restore BC from the stack. | ||
30086 | DJNZ 30060 | Decrease counter by one and loop back to 30060 until counter is zero. | ||
30088 | LD A,E | Return if E is zero. | ||
30089 | OR A | |||
30090 | RET Z | |||
30091 | LD C,30 | C=30. | ||
30093 | ADD HL,BC | HL+=BC. | ||
30094 | DEC E | Decrease E by one. | ||
30095 | INC B | Increment B by one. | ||
30096 | JR 30060 | Jump to 30060. |
Prev: 29860 | Up: Map | Next: 30098 |