Repository navigation
Conversation
A C64 program LOADs one file from the Software IEC drive N times with the KERNAL's own LOAD and records, for every load, ST, carry, the error channel, the end address and a checksum over a load area it filled beforehand. The host totals clean loads, ST failures (with their ST values), loads that reported success with the wrong data, error statuses and hangs. This formalises the evidence of GideonZ#1130 for GideonZ#986: ST=66 with 00, OK on the error channel. --host-delay reproduces the rows that slow the JiffyDOS host on purpose. It patches a temporary copy of the user's own JiffyDOS image, refuses an image whose LOAD routine is not the one the patch is written for, and ships no ROM. --partition-path serves the file from another directory, such as a USB stick, through the UCI SoftIEC target, because the failing rows need it. The suite sets the settings it needs, records them, and restores them, the drive's directory, its folder, its partition and the KERNAL copy at the end. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The run-tests entry is now a plain JiffyDOS/SoftIEC LOAD soak with --profile stress|soak like softiec-soak (--iterations overrides); the README says that the red/green row for GideonZ#986 needs a USB partition, --host-delay and the user's own JiffyDOS image, and why the Temp RAM disk passes it on both firmwares. The results region is zeroed before each upload, so a program that did not start cannot be counted from stale memory. The wait for a batch comes from clean loads only, so an all-fail batch no longer makes polling halt the CPU. Teardown is three separate steps, the folder counts as created only after mkd succeeded, and the drive goes back to the partition G-P says it was on. The host delay is the net number of cycles added: the routine costs 5n+11, the JSR 6, the replaced ORA/TAX 4, so 13+5n. The code was right and the text said 11+5n; 10, 15 and 18 passes are 63, 88 and 103, not 61, 86 and 101. A device-free check counts the cycles from the routine's own opcodes. tests/README.md differs from its base only by this suite's rows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The delayed sample follows the host releasing DATA, not the drive. Give the RAM-disk rows in net cycles (63, 103, 153) and use a neutral example path. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A controlled A/B on an Ultimate 64 Elite (USB stick, 16 KiB file, JiffyDOS 6.01 patched to delay the first DATA poll, alternating blocks of 50 loads) showed the delay-63 row fails intermittently, in bursts, on master and with the 100 us hold of GideonZ#1130 alike: 7 of 150 and 9 of 150 loads. Delay 88 and no delay passed 50 of 50 in both. The failures are silent short loads (ST=66, error channel "00, OK"), nearly all at the first chunk. The cause is not established and no fix is known. Reword the README, the test's docstring and the run-tests comment so they present the soak as a reproducer for GideonZ#986 and state these figures, instead of describing it as evidence for a fix. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Test only, no firmware change. Adds a soak test that reproduces the intermittent silent short LOAD of #986 on the Software IEC drive under JiffyDOS. It is the formal version of the tests asked for in #1130.
What it does
tests/soak/io/iec/jiffy_load_soak_test.pyruns a small C64 program that LOADs a file from the Software IEC drive many times and records, for every load, the ST byte, the end address, a checksum and the drive's error channel. It sets the device settings it needs and restores them afterwards.--host-delay CYCLES --jiffydos-rom PATHpatches a copy of your own JiffyDOS 6.01 kernal so the host polls DATA later at the start of each chunk, to imitate a slower host. No JiffyDOS image is shipped or kept.--partition-path DIRserves the file from a USB stick. The failure has only been seen from USB storage, not from the/TempRAM disk.jiffy_load_test.pyis device-free and checks the patch site, the cycle count of the delay and the C64 program's layout.run-testsgetsjiffy-load(device-free) andjiffy-load-soak(plain soak without a delay, which passes).What it shows today
Ultimate 64 Elite, 16 KiB file on a USB stick, blocks of 50 loads:
Every failure is ST=66 with
00, OKon the error channel, nearly always at the first chunk, and the failures come in bursts. The cause is not established and this PR does not claim a fix. The delayed row is run by hand and is expected to fail intermittently until one exists:tests/soak/io/iec/jiffy_load_soak_test.py -H u64 --jiffydos-rom ~/roms/JiffyDOS_C64.bin \ --host-delay 63 --partition-path /USB1/soak --iterations 100Tested
jiffy_load_test.py: 13 checks pass.tools/docs/update_test_docs.py --checkreports the generated block unchanged.Not run on a C64 Ultimate or an Ultimate II+.
Written with Claude Fable 5.2 and Claude Sonnet 5.5 in Claude Code.
🤖 Generated with Claude Code