Description
Hello, I need someone to help finish this homework. please, before begin with my homework, I want you to read my homework very well especially the three red stars. And, if you would like use comment in the program or word program to insert table with three rows ( what is the command ) , ( what is the register ) , ( what is in the memory) and all of them need to be fill for each command. the program that we use it for our book was visual studio in 32-bit.
I uploaded with my homework, the picture of the book and the pictures of the pages 40 and 41.
please, if you have any question before beginning in my homework, ask me. Thanks
Unformatted Attachment Preview
Purchase answer to see full attachment
Explanation & Answer
I add an image to each instruction. Please check it.
; Name:
; Class and Section: CS 245 02
; Assignment: Program Assignment 01
; Due date: Tuesday, February 21, 2017
; Date Turned in:
; Program description: This program reserve storage for data in memory, NUMBER1, NUMBER2
and SUM. It makes the sum between NUMBER1 and NUMBER2 and stores the result in SUM.
.586
.MODEL FLAT
.STACK 4096
.DATA
; Reserve storage for data
NUMBER1 DWORD -105
; Variable with -105
NUMBER2 DWORD 205
; Variable with value 205
SUM DWORD ?
.CODE
MAIN PROC
MOV EAX, NUMBER1 ; Move NUMBER1 which has the value -105 to EAX
ADD EAX, NUMBER2 ; Add EAX...