mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-13 02:41:02 +00:00
The VM refused C0 (register conditional), so cheats like C046B400 FFFFFFFF were greyed out as unsupported. C0 now runs with dmnt's operand types 0-5, widths and conditions; C1 and C2 save, restore and clear registers, C3 moves registers to and from the static registers. tools/cheats.py gives the same opcode lengths and accepts the same opcodes. skip() took the end of a nested block at depth 1 for the else of the failed outer block; it now counts depth the way dmnt does, and 2x000000 is an else only for x = 1. tests/cheats_vm_check.py runs tools/cheats.py and runtime/cheats.c on cheats of its own, the two from the issue included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>