Code: Select all
DEL_MEM = $258D ;Deletes a region of allocated memory: HL = address DE = size
DEL_TMP = $3606 ;Delete temporary use memory region
INSERT_MEM = $2258 ;Allocates a region of memory: HL = size DE = address
CREATE_TMP = $38D0 ;Create temporary use memory region
http://tifreakware.net/tutorials/multi/ ... tml#part05
I haven't followed the code too closely yet, but it almost seems like it's trying to recopy itself into another program, or something. And since the file is so large (over 20k), when i run ChkFindSym it returns an address in $FEXX somewhere. I've looked around with the emulator, but i can't see anything that looks like the program's code. The VAT address in de appears to be fine, though. Could it be something to do with zStart (which is what i'm running the program with) moving memory around to run the program? Because the program is looking for itself in RAM and trying to add space for saved games... I'm really quite confused how all of this works!