Hand assemble following SIM86 assembly program (generate all addresses and provide the machine code both in Binary and i
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Hand assemble following SIM86 assembly program (generate all addresses and provide the machine code both in Binary and i
Hand assemble following SIM86 assembly program (generate all addresses and provide the machine code both in Binary and in HEX): section .data x db 8 i db 0 section .text _start: do: exit: global start mov eax, 100 mov edx, 0 mov ecx, [x+edx] mov ebx, [i+edx] add ebx, 1 add ecx, ecx mov [x+edx], ecx cmp ebx, eax je exit jmp do mov [x+edx], ecx hlt