Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100H
- .DATA
- .CODE
- INCLUDE 'EMU8086.INC'
- START:
- MOV AH, 1
- INT 21H
- MOV BH, AL
- INT 21H
- MOV BL, AL
- INT 21H
- MOV CL, AL
- ;
- CMP BL, BH
- JG CHECK1
- JL SEC1
- CHECK1:
- MOV CH, BH
- MOV BH, BL
- MOV BL, CH
- SEC1:
- CMP CL, AH
- JG CHECK2
- JL SEC2
- CHECK2:
- MOV CH, AH
- MOV AH, CL
- MOV CL, CH
- ;
- SEC2:
- CMP BL, CL
- JG CHECK3
- JL PRINT
- CHECK3:
- MOV CH, BL
- MOV BL, CL
- MOV CL, BL
- PRINT:
- MOV AH, 2
- MOV DL, BH
- INT 21H
- MOV DL, BL
- INT 21H
- MOV DL, CL
- INT 21H
- END_IF:
- MOV AH, 4CH
- INT 21H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement