Jump to content
IGNORED

List of Variables Freed by kernel Options?


Gemintronic

Recommended Posts

After not having success with the search function I thought to ask:

 

Is there a list of confirmed safe variables freed when using certain kernel options?

 

For instance: when using

 

set kernel_options player1colors no_blank_lines

 

Does that mean it frees up

missile0x, missile0y, missile1x, missile1y, missile0height, missile1height

Link to comment
Share on other sites

For instance: when using

 

set kernel_options player1colors no_blank_lines

 

Does that mean it frees up

missile0x, missile0y, missile1x, missile1y, missile0height, missile1height

No. One rule of thumb you can keep in mind is that usually the X variables stick around. Otherwise the trick of turning on ENAM0 and positioning the missile wouldn't work. The other variables are (almost?) always consumed.

 

If I open up 2600basic.h, I can see that "player1color = $87", and "missile1height = $87". That means when player1color is being used, it consumes that missile1height memory location.

 

I know from experience that player1color is actually 2 bytes, so it also consumes "$88". 2600basic.h says "missile1y = $88", so that variable is gone too.

 

Similar comparisons can be made to show player0color eats up missile0y and missile0height. I leave those as an exercise to the reader. ;)

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...