MEGA65 / open-roms

A project to create unencumbered open-source ROMs for use on selected retro computers
Other
263 stars 18 forks source link

Keyboard scanning routine puts 0 into $91 (STKEY) #28

Closed FeralChild64 closed 4 years ago

FeralChild64 commented 5 years ago

Even if no key is pressed, the STKEY ($91) contains 0. Result: STOP routine thinks, that the RUN/STOP is constantly pressed. Also, the NMI routine (in the works in FeralChild64 fork) thinks the STOP key is always pressed, causing warm start as soon as RESTORE is pressed.

FeralChild64 commented 5 years ago

Looks like the reason was uninitialized STKEY variable - if I didn't miss anything, the fix is simple: https://github.com/FeralChild64/open-roms/commit/7bc76670cdc2a2609a999aba1c97df6d66dd75c5

FeralChild64 commented 4 years ago

Problem fixed in the commit mentioned above.