Skip to content

Fix misc errors#265

Open
nick-less wants to merge 3 commits intodavidgiven:masterfrom
nick-less:fix_misc_errors
Open

Fix misc errors#265
nick-less wants to merge 3 commits intodavidgiven:masterfrom
nick-less:fix_misc_errors

Conversation

@nick-less
Copy link

@nick-less nick-less commented Feb 13, 2026

I fixed a problem I've stumbled across.

@ivop
Copy link
Contributor

ivop commented Feb 13, 2026

The original code in pet.S is correct. 1f is not 0x1f hexadecimal, but one-forward, i.e. the 1: label found when searching forwards. It's self-modifying code. The 0xffff gets replaced by the contents of A and X.

@nick-less
Copy link
Author

The original code in pet.S is correct. 1f is not 0x1f hexadecimal, but one-forward, i.e. the 1: label found when searching forwards. It's self-modifying code. The 0xffff gets replaced by the contents of A and X.

okay, I should have thought more about this, reverted.

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

Comments