Thanks to Norbert Joppen, a really strange bug in xKIM v1.4 and earlier has been found. The fix is now on the github site:
https://github.com/CorshamTech/xKIM
The problem is that when using the S command to save a portion of memory to the SD card system, an empty file would be created but no data placed in it. One incorrect line of assembly code caused the problem. There is a work-around: make sure memory location 0000 has a value less than 80!
There are three changes in the new code:
- Length check now ORAs with #0 rather than address 0000 (what a dumb mistake).
- A CLD instruction is now in the main command processing loop.
- When saving a file, the text used to imply loading a file, so that has been changed.
If you can not erase/burn the 28C64 EEPROM, contact me and we can work out a swap of a new chip in exchange for the old one. Ie, I mail a new chip, and you mail back the old one once you get the replacement.