Jump to content



0

Extra variables with multisprite kernel?


2 replies to this topic

#1 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Sat May 10, 2008 12:58 AM

I know that the reason that the playscreen is in ROM was to free up RAM for player2-5 x and y positions, COLUP, NUSIZ, and other values. But after all that, are there any RAM locations that aren't used? I know that there are the temp variables, but I want, if possible, something more permanent.

I noticed in the memory map here
http://www.randomter...html#memorymaps
$FA-FF aren't labeled. Are they stack variables also, or are those free to use? Thank you.

#2 batari OFFLINE  

batari

    )66]U('=I;B$*

  • 6,236 posts
  • begin 644 contest

Posted Sat May 10, 2008 1:29 AM

View Postjbs30000, on Sat May 10, 2008 1:58 AM, said:

I know that the reason that the playscreen is in ROM was to free up RAM for player2-5 x and y positions, COLUP, NUSIZ, and other values. But after all that, are there any RAM locations that aren't used? I know that there are the temp variables, but I want, if possible, something more permanent.

I noticed in the memory map here
http://www.randomter...html#memorymaps
$FA-FF aren't labeled. Are they stack variables also, or are those free to use? Thank you.
"playfieldpos" ($C3) is not currently in use, but it is reserved for future use (will be used for vertical scrolling if I get around to implementing it.) If you plan to use the existing kernel, you can use it, however.

$FA-$FF are reserved for the stack. I wouldn't use them unless you know what you are doing.

#3 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Sat May 10, 2008 2:03 AM

Ok, I figured that they were probably used for the stack. I'm glad that there is an extra variable I can use though. Thank you.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users