This code is to perform a simple calculation, and then when I enter the second number to the code
The DATA SEGMENT
A DB?
B the DB?
C the DW?
D the DB?
The DATA ENDS
CODE SEGMENT
ASSUME CS: CODE, DS: DATA
MOV AH, 01 h
INT 21 h
MOV BL, AL
MOV AH, 01 h
INT 21 h
MOV D, AL
MOV AH, 01 h
INT 21 h
MOV B, AL
JUDGE: CMP D, 0
JE A1
CMP D, 1
JE A2
CMP D, 2
JE A3
CMP D, 3
JE A4
A1: MOV AX, DATA
MOV AL, A
The ADD AL, B
C, MOV AX
CX, MOV 0
JCXZ A5
A2: MOV AX, DATA
MOV AL, A
SUB AL, B
C, MOV AX
JMP A5
A3: MOV AX, DATA
MOV AL, A
MOV BL, B
The MUL BL
C, MOV AX
JMP A5
A4: MOV AX, DATA
MOV AL, A
CBW
MOV BL, B
DIV BL
C, MOV AX
A5: MOV AX, C
MOV AH, 09 h
INT 21 h
MOV AH, 4 ch;
INT 21 h
CODE ENDS
END