I have two tasks:
- Printing the length of
ar2
- Move the elements from
ar1
toar2
, incrementing each item by 1
and I need help in Assembly Language x86 Irvine32. I have to do these two things which are described above. I got the first one correct, but I'm sort of lost in the second one. How do you do this? Here's what I have so far:
INCLUDE Irvine32.inc
.data
ar1 WORD 1,2,3
ar2 DWORD 3 DUP(?)
.code
main PROC
mov eax, 0
mov eax, LENGTHOF ar2
mov bx, ar1
mov ebx, ar2
inc ebx
call DumpRegs
exit
main ENDP
END main