Question: Problem # 1 : Write an 8 0 8 6 assembly code for the following: A ) Print out on the console screen main _
Problem # : Write an assembly code for the following:
A Print out on the console screen mainmenu. PTS
B Print out on the console screen MSG allow the input of a character
A S C or D and then store it in choice. PTS
C Print out on the console screen MSG allow the input of first number
between and and then store it in number PTS
D Print out on the console screen MSG allow the input of the second number
between and and then store it in number PTS
E Perform the arithmetic operation on the two numbers stored on number and
number and then store the result on result. PTS
ORG h
HLT
mainmenu db dhah
db Enter A for Addition dhah
db Enter S for Subtraction dhah
db Enter D for Division dhah
db Enter M for Multiplication dhah
db Enter B for setting background and foreground colors to cyan and light
red respectively dhah
db Enter D to Clear screen and then display a pattern in screen
middle",dhah
db dhahdhah$
MSG db dhah"Enter your Choice:",dhah$
MSG db dhah"Enter First number:",dhah$
MSG db dhah"Enter Second number:",dhahdhah$
choice db
number db
number db
result db
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
