Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100
- .DATA
- MSG DB "ENTER YOUR POINT: $"
- A DB 10,13,"YOUR GRADE IS A$"
- B DB 10,13,"YOUR GRADE IS B$"
- C DB 10,13,"YOUR GRADE IS C$"
- VAL DB 10, 13, "ENTER VALID POINT$"
- .CODE
- MAIN PROC
- MOV AX, @DATA
- MOV DS, AX
- LEA DX, MSG
- MOV AH, 9
- INT 21H
- MOV AH, 1
- INT 21H
- CMP AL, '0'
- JE VALID
- CMP AL, '3'
- JLE SEGC
- CMP AL, '6'
- JLE SEGB
- JMP SEGA
- SEGC: LEA DX, C
- JMP PRINT
- SEGB: LEA DX, B
- JMP PRINT
- SEGA: LEA DX, A
- JMP PRINT
- VALID: LEA DX, VAL
- JMP PRINT
- PRINT: MOV AH, 9
- INT 21H
- MOV AH, 4CH
- INT 21H
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement