Prev: 38622 Up: Map Next: 38680
38644: Unused routine
This routine copies the attribute bytes for an empty room to the screen, so perhaps it was used during development of the game to check that the layout of a room had been defined correctly.
38644 LD HL,24064 Copy the attribute buffer at 24064 to the top two-thirds of the screen
38647 LD DE,22528
38650 LD BC,512
38653 LDIR
38655 LD HL,16384 Fill the top two-thirds of the display file with the byte value 24 (00011000)
38658 LD DE,16385
38661 LD BC,4095
38664 LD (HL),24
38666 LDIR
38668 LD BC,65278 Prepare BC for reading keys SHIFT-Z-X-C-V
38671 IN A,(C) Read these keys
38673 BIT 2,A Is 'X' being pressed?
38675 JP Z,0 Jump if so to reset the machine
38678 JR 38671 Otherwise jump back to read the keyboard again
Prev: 38622 Up: Map Next: 38680