From 6f3279ac8eed3dac1c108258d93a268fe83494a9 Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 28 May 2020 00:10:15 +0200 Subject: disassembly helper --- disasm.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 disasm.sh 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 "$@" -- cgit v1.2.3