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

v0.2 Beta: Breakpoints don't seem to work at all #4

Open
ricknun opened this issue Apr 24, 2022 · 1 comment
Open

v0.2 Beta: Breakpoints don't seem to work at all #4

ricknun opened this issue Apr 24, 2022 · 1 comment

Comments

@ricknun
Copy link

ricknun commented Apr 24, 2022

Start the program and click on the BR key. The display shows "FULL!" instead of being able to set a breakpoint. If there is a workaround please post it as a reply to this issue. As is I think it makes the emulator of little use for developing ET-3400 programs. I am using a Windows 10 PC and program v0.2 Beta.

@ricknun
Copy link
Author

ricknun commented May 7, 2022

I looked into this issue by reading the ET-3400 Monitor code listing, because I really like this emulator and really want breakpoints to work. I found "FC46 CE 00 E2 ... BKSET LDX #BKTBL-2" at the start of the "set a breakpoint" routine. In the version 0.2 Beta emulator, using "EXAM FC48", shows F2 at that address instead of E2. The ET-3400 Monitor code has an error in it. I changed that one byte in the .exe file using the XVI utility and now breakpoints seem to work. The hacked v0.2 Beta executable et3400_RN.exe(.txt for GitHub) is attached. Finding this was fun and brought back feelings of hacking assembly code so many decades ago.
et3400_RN.txt

Edit later: This workaround allows a breakpoints to be set that appear to work, but then saving a .brk breakpoints file saves an empty file instead of saving the breakpoint information. So breakpoints in the emulator still need attention.

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

No branches or pull requests

1 participant