Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There is a neel to write a peopran which compree the cube of the namber aurerad from the keyboard. The manles caa be any nomber

There is a neel to write a peopran which compree the cube of the namber aurerad from the
keyboard. The manles caa be any nomber between 0 and 9. For example, if the nouber caterel from
and9, the programslould recheck the key jres. The compasation should be bared on the LOOK-UP
TABLE approoch. The program ahould alio store the seault into the date seperent area with veriable
mamed a "Oupur", lntermpt servises of and 60 should be used to check key prese and get the
charketer, respectively. The ASCI codes of sumbers 0,1.dots.9 se 30H,31H.39H, respectively.
Semise Ol MOV RH, ol Serrice (O) MOV AR200
INT 16
INT 1 EAI
Servige 01: When a key is prewed, 2F=0. Otherwise. ZF=1.
Servise 00: The ASCII sode of loy is stoed into AL.
Complete the following progrien so schiere this rsak.
.MODEL SMAL
.DATA
DATAI DE
DATA2 DW 0,1,8,27,64,125,216,343,512,729
OUTPUT DE
MOV AK, BDATA
MON DS,Ax
Agsin:
INT 16H
IZ Again
MON AH, O
JB Again
CMP AL,39H
Lut: MOV BX,CC
CMP AL,[EX + Offset DATA1]
JAE EXVT
Evi: MONAXC, [EX + OHfset DATAZ]
MOVAH, ACH
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

What is an accounting entity?

Answered: 1 week ago