Assembling with nasm and disassembling with ndisasm
The following commands demonstrate assembling with nasm and disassembling with ndisasm.
$ cat example.s
$ nasm example.s
$ ndisasm example
00000000 66B800000000 mov eax,0x0
00000006 6685C0 test eax,eax
The first column of the disassembly contains the file offset, the second column contains the opcodes and the third contains the assembly instructions.
This entry was posted in Assembler, Bash and tagged Assembly, development, nasm, ndisasm, offset, opcode, programming
. Bookmark the permalink
. Trackbacks are closed, but you can .