diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-27 22:10:15 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-05-27 22:10:15 +0000 |
| commit | 6f3279ac8eed3dac1c108258d93a268fe83494a9 (patch) | |
| tree | c708030020b270d6121b393ace8bb207e14e1f53 | |
| parent | implement u-format for JAL (diff) | |
| download | subv-6f3279ac8eed3dac1c108258d93a268fe83494a9.tar.gz subv-6f3279ac8eed3dac1c108258d93a268fe83494a9.zip | |
disassembly helper
| -rwxr-xr-x | disasm.sh | 7 |
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 "$@" |
