| Alien (BUGFIX 1.7) | Routines |
| Prev: 33610 | Up: Map | Next: 33682 |
|
Reached only from DrawRoomBackground's hidden dispatch: the JP Z at $7A41 (inside the code preserved as DEFBs at 31267) lands here when RoomTypeByte is 3, i.e. the Narcissus. Expands NarcissusLayout into the grid buffer, copies NarcissusAttrs over the attribute file, then renders the grid via DrawRoomBackground_0. No skoolkit-visible caller — the JP hides in DEFB data — and absent from the execution traces only because they never boarded the shuttle.
The screen this routine produces, rendered by executing it in the simulator against the pristine snapshot:
|
||||
| 33644 | LD HL,30720 | NarcissusLayout: RLE source | ||
| 33647 | CALL 33153 | RleMapExpand -> grid buffer | ||
| 33650 | LD DE,30861 | NarcissusAttrs | ||
| 33653 | LD HL,22528 | attribute file base | ||
| 33656 | LD C,19 | 19 rows... | ||
| 33658 | LD B,20 | ...of 20 attribute bytes | ||
| 33660 | LD A,(DE) | |||
| 33661 | LD (HL),A | |||
| 33662 | INC DE | |||
| 33663 | INC HL | |||
| 33664 | DJNZ 33660 | |||
| 33666 | PUSH DE | |||
| 33667 | LD DE,12 | skip the remaining 12 columns of the row | ||
| 33670 | ADD HL,DE | |||
| 33671 | POP DE | |||
| 33672 | DEC C | |||
| 33673 | JR NZ,33658 | |||
| 33675 | LD HL,26121 | grid buffer | ||
| 33678 | CALL 31312 | render it as tiles | ||
| 33681 | RET | |||
| Prev: 33610 | Up: Map | Next: 33682 |