pxasme/test_assemble.sh

10 lines
179 B
Bash
Raw Normal View History

2023-12-09 03:12:45 +00:00
#!/bin/bash
# Usage: ./test_assemble.sh $'section .text\n mov rdx, 13370000000\n'
echo "$1" > src.asm
nasm -f elf64 src.asm
objdump -x src.o
2023-12-09 03:12:45 +00:00
objdump -D src.o
rm src.o
rm src.asm