Skip to content

Fix misc errors#265

Merged
davidgiven merged 4 commits intodavidgiven:masterfrom
nick-less:fix_misc_errors
Mar 7, 2026
Merged

Fix misc errors#265
davidgiven merged 4 commits intodavidgiven:masterfrom
nick-less:fix_misc_errors

Conversation

@nick-less
Copy link
Contributor

@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
Contributor 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.

@davidgiven
Copy link
Owner

Taken a look, sorry about the delay! Left a comment.

@davidgiven
Copy link
Owner

Great, thanks! Merging. Sorry it took so long.

@davidgiven davidgiven merged commit e84e793 into davidgiven:master Mar 7, 2026
1 check passed
@nick-less nick-less deleted the fix_misc_errors branch March 7, 2026 15:30
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.

3 participants