Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; You may customize this and other start-up templates;
- ; The location of this template is c:\emu8086\inc\0_com_template.txt
- org 100h
- .data
- a db ?
- b db ?
- r db ?
- m1 db "Digita il primo numero",13,10,"$"
- m2 db "Digita il secondo numero",13,10,"$"
- m3 db " e' maggiore di $"
- m4 db "",13,10,"$"
- m5 db " e' minore di $"
- m6 db "I due numeri sono uguali",13,10,"$"
- .code
- mov dx,offset m1
- mov ah,9
- int 21h
- mov ah,1
- int 21h
- mov a,al
- mov dx,offset m4
- mov ah,9
- int 21h
- mov dx,offset m2
- mov ah,9
- int 21h
- mov ah,1
- int 21h
- mov b,al
- mov dx,offset m4
- mov ah,9
- int 21h
- mov al,a
- CMP al,b
- JG primomaggiore
- JE uguali
- mov ah,2
- mov dl,a
- int 21h
- mov dx,offset m5
- mov ah,9
- int 21h
- mov ah,2
- mov dl,b
- int 21h
- JMP exit
- primomaggiore:
- mov ah,2
- mov dl,a
- int 21h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement