Prev: A24C Up: Map Next: A2DF
A28A: Copy room graphic buffer to display file
Used by the routines at 947A, A89D, A915 and D871.
A28A LD ($A093),SP Save SP to temporal variable A093
A28E LD SP,$AC0D Set SP to point to display file lookup table at position (0,24)
A291 LD HL,$EAFF Set HL to the base address for the room graphics buffer
A294 LD BC,$13B0 Set BC to the number of bytes to copy
A297 POP DE Set DE to the corresponent addres into display file
A298 INC DE Increment display file to the next byte (first and last column of room screen are not copied)
A299 INC HL Increment base address for the room graphics buffer
A29A LDI Copy the 30 bytes for this scanline
A29C LDI
A29E LDI
A2A0 LDI
A2A2 LDI
A2A4 LDI
A2A6 LDI
A2A8 LDI
A2AA LDI
A2AC LDI
A2AE LDI
A2B0 LDI
A2B2 LDI
A2B4 LDI
A2B6 LDI
A2B8 LDI
A2BA LDI
A2BC LDI
A2BE LDI
A2C0 LDI
A2C2 LDI
A2C4 LDI
A2C6 LDI
A2C8 LDI
A2CA LDI
A2CC LDI
A2CE LDI
A2D0 LDI
A2D2 LDI
A2D4 LDI
A2D6 INC HL Increment base address for the room graphics buffer (next line)
A2D7 JP PE,$A297 Jump back if not all bytes are copied
A2DA LD SP,($A093) Recover SP
A2DE RET
Prev: A24C Up: Map Next: A2DF