Prev: 45576 Up: Map Next: 45732
45715: Playarea Copier
Used by the routines at 45576 and 49187.
Input
BC Number of bytes to copy (needs changing)
DE Target address
HL Source data
PlayareaCopier 45715 PUSH BC Stash BC and DE on the stack.
45716 PUSH DE
45717 LD B,0 B=0.
45719 LDIR Copy HL to DE the number of times held by BC.
45721 EX DE,HL Exchange the DE register with the shadow HL register.
45722 POP HL Restore HL from the stack.
45723 LD BC,64 HL+=0064.
45726 ADD HL,BC
45727 EX DE,HL Switch the DE and HL registers back.
45728 POP BC Restore BC from the stack.
45729 DJNZ PlayareaCopier Decrease counter by one and loop back to PlayareaCopier until counter is zero.
45731 RET Return.
Prev: 45576 Up: Map Next: 45732