aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdisasm.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/disasm.sh b/disasm.sh
new file mode 100755
index 0000000..160bead
--- /dev/null
+++ b/disasm.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+# build test.py and show disassembly
+# options:
+# -M numeric,no-aliases
+./test.py | tail -n +2 | ../mu/apps/hex > a.bin
+riscv32-elf-objcopy -I binary -O elf32-littleriscv a.bin a.elf
+riscv32-elf-objdump -D a.elf "$@"