![]() |
Routines |
| Prev: 32307 | Up: Map | Next: 32343 |
|
This entry point is used by the routine at draw_barriers.
|
||||||||||||
| print_string_at_hl | 32311 | LD A,(HL) | Pick up byte at HL, return if zero which indicates the end of the string | |||||||||
| 32312 | INC HL | |||||||||||
| 32313 | OR A | |||||||||||
| 32314 | RET Z | |||||||||||
| 32315 | PUSH BC | |||||||||||
| 32316 | PUSH HL | |||||||||||
| 32317 | CALL find_char | HL = (A * 8) + (_CURRENT_FONT) | ||||||||||
| 32320 | CALL print_udg | Draw UDG | ||||||||||
| 32323 | POP HL | |||||||||||
| 32324 | POP BC | |||||||||||
| 32325 | INC C | xpos++ | ||||||||||
| 32326 | LD A,C | |||||||||||
| 32327 | CP 32 | Edge of screen? | ||||||||||
| 32329 | JR NZ,print_string_at_hl | No, back for next char | ||||||||||
| 32331 | LD C,0 | Move to start of next line | ||||||||||
| 32333 | INC B | |||||||||||
| 32334 | LD A,B | |||||||||||
| 32335 | CP 24 | Off bottom of screen? | ||||||||||
| 32337 | JR NZ,print_string_at_hl | No, back for next char | ||||||||||
| 32339 | LD B,0 | Wrap to top of screen | ||||||||||
| 32341 | JR print_string_at_hl | Now back to next char | ||||||||||
| Prev: 32307 | Up: Map | Next: 32343 |