Page 1 of 1

Hand assemble following SIM86 assembly program (generate all addresses and provide the machine code both in Binary and i

Posted: Thu Jun 02, 2022 8:20 am
by answerhappygod
Hand Assemble Following Sim86 Assembly Program Generate All Addresses And Provide The Machine Code Both In Binary And I 1
Hand Assemble Following Sim86 Assembly Program Generate All Addresses And Provide The Machine Code Both In Binary And I 1 (39.92 KiB) Viewed 25 times
using NASM
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