![]() |
| Figure 1. Result: ROM patch statements for C128 |
Already there is a solution for Commodore 64 systems including patching ROMs into RAM in real-time, in addition to building a patch file for making your own ROM (e.g. physical EPROM) or file for emulator.
With a few more additions, the following platforms are also supported for EPROM or emulator .bin file:
- 128
- plus/4 or 16 (264 series)
- Vic-20
- LOAD the appropriate rom patch file for your system from the files folder, or drive image. You MUST match your system exactly.
- 64KEYS ROM PATCH
- 128KEY ROM PATCH
- TEDKEY ROM PATCH
- 20KEYS ROM PATCH
- LIST the program, and review the keyboard mapping included in DATA statements in the file, refer to keyboard table references for key scan code numbers of your system, and verify the layout changes you desire.
- RUN the program
- Transfer the patch statements to your modern system. These are a series of hex offsets, followed by colon, followed by one or more hex bytes. The offsets have the ROM starting address subtracted, so they are offsets from the start of this individual ROM (see figure 1).
- Get an original KERNAL ROM file (image your own ROM, or download from zimmers.net, or copy from VICE emulator).
- Make a copy of the KERNAL ROM .bin image file, and name it appropriately anticipating the patch being performed.
- Verify the size of the KERNAL ROM file
- C64: 8K
- C128: 16K
- plus/4: 16K
- C16: 16K
- Vic-20: 8K
- Patch with xxd
xxd -r patch.txt new.bin - Transfer the file into an EPROM or equivalent compatible for physical system only
- Install the physical EPROM into your physical system, or binary file into your emulator (VICE system settings)
- Enjoy!
CLR:OPEN1,8,3,"PATCH.TXT,S,W":CMD1:GOTO100
PRINT#1:CLOSE1










