[5.2] Add RAM address map#408
Open
initsu wants to merge 1 commit into
Open
Conversation
Owner
|
Gonna make a 5.2 branch once we push out 5.1.2, just seems like a rational place to start. |
jroweboy
reviewed
May 15, 2026
| zp_16 = $16 | ||
| LinkStanding = $17 ; 0 = Link in ducked shield position, 1 = Link standing | ||
| DarkLinkStanding = $18 ; 0 = Dark Link ducking, 1 = Dark Link standing | ||
| DrawLink = $19 ; [SS] 0 = Invisible, 1 = Normal, 2-FF = Fall in hole - [File Select] Cursor position |
Collaborator
There was a problem hiding this comment.
This is the object Y hi position where 1 is the "playfield" y position, hence why 0 is off the top of the screen and 2 is "fall in hole" since its below the screen
Collaborator
There was a problem hiding this comment.
(This also applies to the next 6 bytes in RAM as well as they are the enemy Y Hi positions)
Collaborator
Author
There was a problem hiding this comment.
I see. That makes me wonder if this code from FullItemShuffle.s is correct:
lda $20,x ; enemy y hi
sta $20,y
lda $2a,x ; enemy y lo
sta $2a,y
lda $3c,x ; enemy x hi
sta $3c,y
lda $4e,x ; enemy x lo
sta $4e,y$20,x is named "EnemyCondition" in the disasm (whatever that means)
$1a,x would be EnemyYHi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update: Added some more addresses and cleaned up a bit. I think this can be merged into the 5.2 branch when we start on that.