Routines |
Prev: 37403 | Up: Map | Next: 37471 |
Used by the routine at 34574.
|
||||
37434 | LD HL,(32876) | Pick up the address of Willy's location in the attribute buffer at 23552 from 32876 | ||
37437 | LD DE,31 | Prepare DE for addition | ||
37440 | LD C,15 | Set C=15 for the top two rows of cells (to make the routine at 37471 force white INK) | ||
37442 | CALL 37471 | Check and set the attribute byte for the top-left cell | ||
37445 | INC HL | Move HL to the next cell to the right | ||
37446 | CALL 37471 | Check and set the attribute byte for the top-right cell | ||
37449 | ADD HL,DE | Move HL down a row and back one cell to the left | ||
37450 | CALL 37471 | Check and set the attribute byte for the mid-left cell | ||
37453 | INC HL | Move HL to the next cell to the right | ||
37454 | CALL 37471 | Check and set the attribute byte for the mid-right cell | ||
37457 | LD A,(32872) | Pick up Willy's y-coordinate from 32872 | ||
37460 | LD C,A | Copy it to C | ||
37461 | ADD HL,DE | Move HL down a row and back one cell to the left | ||
37462 | CALL 37471 | Check and set the attribute byte for the bottom-left cell | ||
37465 | INC HL | Move HL to the next cell to the right | ||
37466 | CALL 37471 | Check and set the attribute byte for the bottom-right cell | ||
37469 | JR 37503 | Draw Willy to the screen buffer at 24576 |
Prev: 37403 | Up: Map | Next: 37471 |