[vic20] fix wrong keys, add code for missing keys #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the following keys:
¤tly produces'(currently produces))currently produces0^currently produces&*currently produces)It also adds key codes for
HOME,CLR,INST,DEL,CTRLandC=so that they can be referenced from the host.UPDATE: I've also added emulation of the RESTORE key. I've put the key on a separate line on the keyboard matrix (line 8, column 0) as keycode
0xFFand then simply route it toVIA1to pinCA1.UPDATE2: I've fixed a bug on the VIC memory map. When the VIC reads in the range
0x4000-0x4FFFit should point in therom_char. This allows a nice trick on the unexpanded VIC20: the commandPOKE 36869,255allows to use both definable characters (range$1c00-$1dff) and ROM characters ($8000) on the same screen by printing the ROM character in reverse.UPDATE3: I've fixed a small bug in the joystick, the
JOYSTICK_LEFTwas repeated twice.UPDATE4: I've added a missing entry on the configuration enum, for the 3K memory expansion