Prev: AE2C Up: Map Next: AE46
AE36: Clears a block of memory, ptr held in data {ptr, len}, by copying from $5c92.
Input
Output
Ptr to data is stored directly after call (return address on stack).
Block_ClearMem AE36 POP HL Get address of data.
AE37 LD E,(HL) Get pointer to copy to.
AE38 INC HL
AE39 LD D,(HL)
AE3A INC HL
AE3B LD C,(HL) Number of bytes to copy.
AE3C INC HL
AE3D PUSH HL Store address after data as return address.
AE3E LD B,$00
AE40 LD HL,TempStore Address to copy from.
AE43 LDIR
AE45 RET
Prev: AE2C Up: Map Next: AE46