for(;;){ run next instruction }
b8 cd ab 16-bit CPU, AX <- 0xabcd b8 34 12 cd ab 32-bit CPU, EAX <- 0xabcd1234 66 b8 cd ab 32-bit CPU, AX <- 0xabcd
AT&T syntax | "C"-ish equivalent | |
movl %eax, %edx | edx = eax; | register mode |
movl $0x123, %edx | edx = 0x123; | immediate |
movl 0x123, %edx | edx = *(int32_t*)0x123; | direct |
movl (%ebx), %edx | edx = *(int32_t*)ebx; | indirect |
movl 4(%ebx), %edx | edx = *(int32_t*)(ebx+4); | displaced |