Update to RIOT Starship demo program

Skip to first unread message

Jim McClanahan

Jul 21, 2022, 11:34:28 AM7/21/22
to PAL 6502 computer
Will had problems running this and when I looked at the source code I realized I had failed to clear the decimal mode flag at the start of the program. If you loaded it with PBUG or eWoz, it would work fine because both of those clear the flag for you. With the original monitor, the status of the flag depend on what is stored in a memory location the monitor uses. Unless you set the flag, you don't know what state the flags are in when you try to run something. (The original MS BASIC suffers from this same issue.)

I have added a CLD instruction and updated things on github, so it should be fairly bullet proof now.


Will Senn

Jul 26, 2022, 12:13:55 PM7/26/22
to PAL 6502 computer
Works great. Thanks for doing the program in the first place and for the update to the code. It was so much fun to see the enterprise flying rampant on a field of matrices :).
Reply all
Reply to author
0 new messages