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
- ; add your code here
- .data
- smallmsg db "AX is smallest $"
- bigmsg db "BX is greater then $"
- axgreatermsg db "Ax is greater then BX and CX $"
- .code
- mov ax,@data
- mov ds,ax
- mov ax,5
- mov bx,15
- mov cx,7
- cmp ax,bx
- jl bxcx
- jg axbx
- bxcx:
- cmp bx,cx
- jl smallDisplay
- jg greatDisplay
- smallDisplay:
- lea dx,smallmsg
- mov ah,9
- int 21h
- jmp finished
- greatDisplay:
- lea dx,bigmsg
- mov ah,9
- int 21h
- jmp finished
- axbx:
- lea dx,axgreatermsg
- mov ah,9
- int 21h
- jmp finished
- finished:
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement