我有以下汇编代码:
global _start
section .text
_start:
add byte [eax], al
Run Code Online (Sandbox Code Playgroud)
编译和链接后,我尝试看到操作码:
$ objdump -d eax.o
eax.o: file format elf32-i386
Disassembly of section .text:
00000000 <_start>:
...
$
Run Code Online (Sandbox Code Playgroud)
为什么我得到一个空操作码?
我有一个像这样的示例代码:
global _start
section .text
_start:
div eax
int 0x80
Run Code Online (Sandbox Code Playgroud)
在编译并运行它之后,输出为:
Floating point exception (core dumped)
Run Code Online (Sandbox Code Playgroud)
我的问题是:
eax != 0 and eax == 0?Floating point exception (core dumped)什么?