Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IDEAL
- MODEL small
- STACK 100h
- INCLUDE "gvahim.mac"
- DATASEG
- ; -------------------------- tar2
- ; Your variables here
- a dw ?
- b dw ?
- ; --------------------------
- CODESEG
- start:
- mov ax, @data
- mov ds, ax
- ; --------------------------
- ; Your code here
- ; --------------------------
- call SCAN_NUM
- mov [a], dx
- call SCAN_NUM
- mov [b], dx
- mov ax, [a]
- add ax, [b]
- cmp ax, 100
- jbe lessequal
- mov [a], 50
- mov [b], 50
- jmp exit
- lessequal:
- mov [a], 0
- mov [b], 0
- exit:
- mov ax, 4c00h
- int 21h
- INCLUDE "gvahim.asm"
- END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement