Routines |
Prev: 62158 | Up: Map | Next: 62281 |
Used by the routine at StartGame.
|
||||
62238 | LD HL,20705 | HL=20705 (screen buffer location). | ||
62241 | LD B,20 | B=20. | ||
62243 | LD C,4 | C=4. | ||
62245 | PUSH HL | Stash HL on the stack. | ||
62246 | SCF | Set the carry flag. | ||
62247 | RR (HL) | Rotate *HL right. | ||
62249 | JP C,62261 | Jump to 62261 if is lower. | ||
62252 | INC H | Increment H by one. | ||
62253 | DEC C | Decrease C by one. | ||
62254 | JP NZ,62246 | Jump to 62246 if C is not zero. | ||
62257 | POP HL | Restore HL from the stack. | ||
62258 | JP 62243 | Jump to 62243. | ||
62261 | POP HL | Restore HL from the stack. | ||
62262 | INC HL | Increment HL by one. | ||
62263 | HALT | Halt operation (suspend CPU until the next interrupt). | ||
62264 | DJNZ 62243 | Decrease counter by one and loop back to 62243 until counter is zero. | ||
62266 | DEC HL | Decrease HL by one. | ||
62267 | LD (55387),HL | Write HL to *55387. | ||
62270 | LD A,1 | Write 1 to *55389. | ||
62272 | LD (55389),A | |||
62275 | LD A,20 | Write 20 to *55390. | ||
62277 | LD (55390),A | |||
62280 | RET | Return. |
Prev: 62158 | Up: Map | Next: 62281 |