Question: Assembly Language Modify Lab #3 and print the original array backwards. Please leave the beginning of the program intact. DO NOT USE A SECON D
Assembly Language
Modify Lab #3 and print the original array backwards.
Please leave the beginning of the program intact.
DO NOT USE A SECOND ARRAY
DO NOT USE PUSH and POP FOR THIS EXERCISE. WE WILL USE THAT IN LAB #7.
OUTPUT/ Somewhere in the program, PRINT:
1) The original Array
2) The Reversed Array
3) include comment
4) do not include PROCEDURE
5) using this program
TITLE Addition and Subtraction(addsub.asm)
;Addition and Subtraction.
INCLUDE Irvine32.inc
.data
RVAL SDWORD ?
XVAL SDWORD 50
YVAL SDWORD 60
ZVAL SDWORD 70
.code
main PROC
MOV EAX, XVAL
SUB EAX, YVAL
MOV EDX, ZVAL
ADD EDX, 3
ADD EDX, XVAL
SUB EDX, 10
SUB EDX, ZVAL
SUB EAX, EDX
MOV RVAL, EAX
CALL DumpRegs
CALL WRITEINT
MOV ESI, OFFSET RVAL
MOV EBX, SIZEOF RVAL
MOV ECX, 4
CALL DumpMem
exit
main ENDP
END main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
