diff options
| author | uvok | 2026-01-04 18:22:01 +0100 |
|---|---|---|
| committer | uvok | 2026-01-04 18:22:01 +0100 |
| commit | 9c6de724cc3d37c0af09a1f902546d3f261ee53a (patch) | |
| tree | 0fd26aeda155b45bfbe96317decec9710c3744aa | |
| parent | 28e57cc22fb61c0dce5fd335b5b701192f16bf4b (diff) | |
createbin: avoid reserved bits
skip in loop, to avoid duplicates
| -rwxr-xr-x | nandgame/assembler/createbin.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nandgame/assembler/createbin.py b/nandgame/assembler/createbin.py index d4a2e7a..3713389 100755 --- a/nandgame/assembler/createbin.py +++ b/nandgame/assembler/createbin.py @@ -11,4 +11,8 @@ with open("allins.bin", "wb") as f: f.write(ins.to_bytes(2)) for ins in range(0x8000, 0xffff + 1): + # unused bytes, force 1 + if (ins & 0x6800) != 0x6800: + continue + f.write(ins.to_bytes(2)) |
