Question: ( c ) Write the machine language code for following program. . MODEL SMALL . CODE START: MOV AX , 3 2 MOV DS ,

(c) Write the machine language code for following program.
. MODEL SMALL
.CODE
START: MOV AX,32
MOV DS, AX
MOV CX,[4010H]
AGAIN: IN AL,3010H
ADD AL,07H
JNC L1
MOV BL, AL
OUT 3012H, AL
L1: DEC CX
JNZ AGAIN
JMP START
END
Machine Language Coding Template
MOV - Move
\table[[Register/Memory to/from Register,100010dw,mod reg r/m,Add-low,Add-high,,],[Immediate to Register/Memory,1100011w,mod 000 r/m,data,data(d w=1),,],[Immediate to Register,1011w reg,data,datal(if w=1),,,],[Memory to Accumulator,1010000w,Add-low,Add-high,,,],[Accumulator to Memory,1010001w,Add-low,Add-high,,,],[Register/Memory to Segment Register,10001110,mod 0 SR rm,,,,],[Segment Register to Register/Memory,10001100,mod 0 SR r/m,,,,],[]]
ADD - Addition
\table[[Register/Memory with Register,000000dw,mod reg rm,,],[Im Register/Memory,100000s,mod000rm,data,data(if w=1
 (c) Write the machine language code for following program. . MODEL

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!