tschak909 Posted October 22, 2022 Share Posted October 22, 2022 Am working on adding high-scores to PAC-MAN. Does anyone have a routine for converting key scan codes (as output to CHKEY) to screen codes ? -Thom Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted October 22, 2022 Share Posted October 22, 2022 Quickest way would be to use a lookup table to convert for scan code to screen code. Quote Link to comment Share on other sites More sharing options...
tschak909 Posted October 22, 2022 Author Share Posted October 22, 2022 Yup. Wound up solving it with a table. ;; Read key, convert to Atascii HRKEY: LDA #$FF STA CHKEY HRKEY2: LDA CHKEY CMP #$FF BEQ HRKEY2 LDX CHKEY LDA HKTBL,X RTS HKTBL: .SB "LJ; K+*O PU I-=V C BXZ4 36 521, .N MZ R EY TWQ9 07 8<>UD GSA" 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.