pxasme/test_assemble.sh
2023-12-09 16:12:45 +13:00

9 lines
162 B
Bash
Executable File

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