The following assembly program contains a number of assembly-time errors, as indicated to the right. Correct each error
The following assembly program contains a number of assembly-time errors, as indicated to the right. Correct each error (2 points credit each).
.MODEL SMALL
.STACK 64H
.DATA
DATA1 DB 25
DATA2 DB 280 ;1: Value out of range
DATA3 DB ?
.CODE
MOV AX,DATA ; 2: Improper operand type
MOV DS,AX
MOV AX,DATA1 ;3: Operand types must match
ADD AX,DATA2 ;4: Operand types must match
MOV DATA3,AX
MOV FX,4COOH ;5: Symbol not defined
INT 21H
END
Trending now
This is a popular solution!
Step by step
Solved in 2 steps