Question: TITLE Add & Subtract ; This program adds and subtracts 32-bit integers ; 3/6/2018 INCLUDE Irvine32.inc .code main PROC MOV eax, 300 ; EAX =

TITLE Add & Subtract

; This program adds and subtracts 32-bit integers

; 3/6/2018

INCLUDE Irvine32.inc

.code

main PROC

MOV eax, 300 ; EAX = 300

ADD eax, 200 ; EAX = 500

SUB eax, 400 ; EAX = 100

CALL DumpRegs ; DUMPS in hexadecimal

; The number displayed will be in decial (not hexa)

exit

main ENDP

END main

-------------------------------------:::::::::::::::::::::::::::::::::::

This is a program written in Assembly Language (MASM 615)

Modify original program to move DATA into EAX instead. What would the program look like if I did this (DATA meaning BYTE, WORD, etc.)?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!