Question: Write an Assembly Language program that will swap the values from two different variables and display the registers these two values are in. For example,
Write an Assembly Language program that will swap the values from two different variables and display the registers these two values are in. For example, if A = 2 and B = 3 then, once the program executes the values should be A = 3 and B = 2.
MASM Irvine32
TITLE MASM template
INCLUDE Irvine32.inc
.data A DWORD 5, 0 B DWORD 9,
.code main proc
mov eax, A mov ebx, B
mov A, ebx mov B, eax
mov eax, A mov ebx, B
call WriteDec A call crlf call WriteDec B call crlf
exit
main endp end main
Having trouble getting this code to work. Giving me errors on line (22)(24) saying "missing operator in expression"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
