Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started