for your 1 bit pleasure!

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun 07 Oct, 2012 4:47 pm 
Extreme Poster

Joined: Fri 07 Jul, 2006 2:39 pm
Posts: 339
Hey, it's me again :D I'm trying to port a game from the 82 to the 83/+ but am having a little trouble with some of the ROM_CALLs. I've found names/descriptions to most of them thanks to the sng include file, but i really don't understand what the difference is between the _MEM routines and the _TMP routines:
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

The program is trying to allocate memory for something but it always crashes here (in my 83+ version). It's using the CREATE_TMP/DEL_TMP routines, but i'm not exactly sure what those do. I just replaced them with _InsertMem. There's a little bit of info here: ... 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!

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB ® Forum Software © phpBB Group | DVGFX2 by: Matt