Professional Documents
Culture Documents
Section 8 Quiz 04
Section 8 Quiz 04
Section 8 Quiz 04
ID: 1631556042
Ans 1: SP = 0.100
Q2: Write assembly code for the following decision structure: (5)
IF DX > 0
THEN
PUT -1 in AX
ELSE
PUT 1 in AX
Ans 2:
Ans 3:
(a) Opcode- DX:BX = BX x Source
(b) Destination- Destination- CL
Q4: Identify the error/s and then write the correct instructions. (2)
INPUT:
MOV AL, 20H
PUSH AL
INC CL
JMP INPUT
Ans 4:
MOV AL ,20H
PUSH AL
JMP INPUT
INC CL