Note: this is x86 32 bit (not 64 bit)
1. What is the integer value in %eax?
movl $0x41000000, %eax
movl $0x420000, %ebx
movl $0x4300, %ecx
xor %ebx, %eax
xor %ecx, %eax
2. What will be printed to the screen?
pushl %eax // move value of eax onto stack
movl $0x04, %eax // syscall number for write into eax
movl $0x01, %ebx // file descriptor for stdout into ebx
movl %esp, %ecx // address of stack (what was in eax before)
movl $0x04, %edx // number of bytes to write
int $0x80 // syscall
Get Answers For Free
Most questions answered within 1 hours.