Created
April 17, 2022 00:15
-
-
Save orangecms/8225172bd282a807bc61fc69f20b43b5 to your computer and use it in GitHub Desktop.
disassamble a few stupid single RISC-V instructions from 0x12345678 whatever
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
_TMP=`mktemp` | |
echo -n $(rax2 -s "$1") > $_TMP | |
riscv64-linux-gnu-objdump -m riscv -b binary -D $_TMP | tail -n 5 | |
rm $_TMP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment