Question: 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
 There is a neel to write a peopran which compree the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!