Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab1: .data myMessage BYTE Hello This is Eddy Valenzuela, CIS250,0dh,0ah,0 intVal SDWORD ? .code main PROC call Clrscr mov edx,OFFSET myMessage call WriteString call dumpRegs

Lab1:

.data myMessage BYTE "Hello This is Eddy Valenzuela, CIS250",0dh,0ah,0 intVal SDWORD ? .code main PROC call Clrscr mov edx,OFFSET myMessage call WriteString call dumpRegs ;do 400 + 200 - 100 call ReadInt mov intVal, eax call dumpRegs call ReadInt add intVal, eax call dumpRegs call ReadInt sub intVal, eax mov eax, intVal call dumpRegs call ReadChar exit main ENDP END main 

using lab1.asm as your start, in assembly

ask the user for 2 different numbers

subtract them

if the difference is zero, print the numbers are equal

if the difference is positive, print the first number is greater than the second

if the difference is negative, print the second number is greater than the first one.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions