Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset Fixes / Update Titles #78

Merged
merged 5 commits into from
Dec 22, 2019
Merged

Reset Fixes / Update Titles #78

merged 5 commits into from
Dec 22, 2019

Conversation

frankmilliron
Copy link
Contributor

No description provided.

Copy link
Owner

@a2-4am a2-4am left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix copy loops and resubmit

@frankmilliron
Copy link
Contributor Author

it's copying from $100-105 (6 bytes). Either way works. I just think the code looks cleaner without the -1.

@a2-4am
Copy link
Owner

a2-4am commented Dec 22, 2019

That's not true. The LDA will set the Z flag based on the value it's loading, so whether or not the BNE branches no longer has anything to do with Y.

@frankmilliron
Copy link
Contributor Author

My bad. It only works because there's nothing being used from $280-380.

@frankmilliron
Copy link
Contributor Author

I mean... because $107 is zero....

arkanoid now reboots. moon patrol was using $100 as a variable. fixed my flag error.
missed one
removed extra space in HERO
sta $602
sta $603
sta $604
sta $605 ; NOP setting the reset
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to do this in fewer steps by changing STAs to BITs ($2C)


ldy #6
- lda $100-1,y
sta $280-1,y ; move hook to $280
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the -1 bothers you, you can change to LDY #5 and BPL, and use $100,y and $280,y. Entirely up to you.

@a2-4am a2-4am merged commit 18ada7a into a2-4am:master Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants