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
|
2023-12-11 00:14:13 +00:00
|
|
|
objdump -x src.o
|
2023-12-09 03:12:45 +00:00
|
|
|
objdump -D src.o
|
|
|
|
rm src.o
|
|
|
|
rm src.asm
|