Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #make com#
- Org 100h
- Jmp start
- a DB ?
- b DB ?
- c DB ?
- M1 DB 'a=', '$'
- M2 DB 13, 10, 'b=', '$'
- M3 DB 13, 10, 'c=', '$'
- M4 DB 13, 10, '$'
- M5 DB ,'+', '$'
- M6 DB ,'=', '$'
- start:
- lea dx, M1
- mov ah, 09h
- int 21h
- mov ah, 01h
- int 21h
- sub al, 48
- mov a, al
- lea dx, M2
- mov ah, 09h
- int 21h
- mov ah, 01h
- int 21h
- sub al, 48
- mov b, al
- lea dx, M3
- mov ah, 09h
- int 21h
- mov ah, 01h
- int 21h
- sub al, 48
- mov c, al
- lea dx, M4
- mov ah, 09h
- int 21h
- mov dl, a
- add dl, 48
- mov ah, 02h
- int 21h
- lea dx,M5
- mov ah, 09h
- int 21h
- mov dl, b
- add dl, 48
- mov ah, 02h
- int 21h
- lea dx,M5
- mov ah, 09h
- int 21h
- mov dl, c
- add dl, 48
- mov ah, 02h
- int 21h
- lea dx, M6
- mov ah, 09h
- int 21h
- mov dl, a
- add dl, b
- add dl, c
- add dl, 48
- mov ah, 02h
- int 21h
- mov ah, 4Ch
- int 21h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement