Prev: A3F4 Up: Map Next: A487
A432: Copy room graphic buffer to display file
Used by the routines at 9470 and A939.
A432 LD ($A22C),SP Save SP to temporal variable A22C
A436 LD SP,$ACCA Set SP to point to display file lookup table at position (0,24)
A439 LD HL,$EAFF Set HL to the base address for the room graphics buffer
A43C LD BC,$13B0 Set BC to the number of bytes to copy
A43F POP DE Set DE to the corresponent addres into display file
A440 INC DE Increment display file to the next byte (first and last column of room screen are not
A441 INC HL Increment base address for the room graphics buffer
A442 LDI Copy the 30 bytes for this scanline
A444 LDI
A446 LDI
A448 LDI
A44A LDI
A44C LDI
A44E LDI
A450 LDI
A452 LDI
A454 LDI
A456 LDI
A458 LDI
A45A LDI
A45C LDI
A45E LDI
A460 LDI
A462 LDI
A464 LDI
A466 LDI
A468 LDI
A46A LDI
A46C LDI
A46E LDI
A470 LDI
A472 LDI
A474 LDI
A476 LDI
A478 LDI
A47A LDI
A47C LDI
A47E INC HL Increment base address for the room graphics buffer (next line)
A47F JP PE,$A43F Jump back if not all bytes are copied
A482 LD SP,($A22C) Recover SP
A486 RET
Prev: A3F4 Up: Map Next: A487