-
Notifications
You must be signed in to change notification settings - Fork 0
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
Program Counter Relative Addressing? #1
Comments
Great catch! Thanks for finding this. I hadn't implemented PC-based indexing at all in the assembler. Strange that I never ran into it after all the code I assembled. I think I've adopted the standard syntax for this but please let me know if not.
...and it turns out I also had a bug in the emulator side as well where I wasn't properly adding the instruction size to the offset in the case of a 16-bit PCR offset. One thing to note, though. You said you expected You can try test/issue1.asm to see what it's doing: I see there are a ton of warnings now using the latest toolchain so I'll clean it up tomorrow. |
Of course -- makes sense. Thanks for the quick turnaround! I'll give it whirl later today... And thanks for putting this emulator together. Super helpful to have an emulator for testing and debugging before writing to EEPROM for my 6809-based retro-computing project. 😄 |
Just to follow-up... PCR is working now as expected. |
I'm trying to use program counter relative addressing and getting an unexpected assembler error.
hello.asm:
The text was updated successfully, but these errors were encountered: