From 276817fc48276a48ed2111884fdad41b61641a45 Mon Sep 17 00:00:00 2001 From: "Dr. Christian Giessen" Date: Mon, 27 Apr 2026 11:53:22 +0000 Subject: [PATCH] Regenerate isa_test.bin from assembler (fixes CNTR opcode) The old isa_test.bin was generated by gen_isa_test.py which had a wrong opcode for CNTR (0x5000AF = REG1[15] = STACKA, should be 0x3000AE = REG2[14] = CNTR). Regenerated from isa_test.dsp using open21xx assembler. Also: to suppress the harmless 'asm.parser not found' warning, use: r2 -e asm.parser=null -a adsp219x -b 24 firmware.bin Or add 'e asm.parser=null' to ~/.radare2rc. --- examples/build/regmap_test.dsp | 11 +++++++++++ examples/isa_test.bin | Bin 144 -> 144 bytes 2 files changed, 11 insertions(+) create mode 100644 examples/build/regmap_test.dsp diff --git a/examples/build/regmap_test.dsp b/examples/build/regmap_test.dsp new file mode 100644 index 0000000..04b60c6 --- /dev/null +++ b/examples/build/regmap_test.dsp @@ -0,0 +1,11 @@ + .section/PM program0; + .global _start; +_start: + cntr = 10; + stacka = 0x1000; + imask = 0xFF; + irptl = 0; + icntl = 0; + nop; +_halt: + jump _halt; diff --git a/examples/isa_test.bin b/examples/isa_test.bin index 5714b23eae76990f6cf6b0c54a87cb6da8ec68e9..0ddc7d3675d34897ce9871fc86603eb6f0b7e5d8 100644 GIT binary patch delta 13 UcmbQhIDv73F0%o{x`_q}02+G(;s5{u delta 13 UcmbQhIDv73E^`3G`iTY!02@C90{{R3