Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org 100h
- EntryPoint:
- mov ah, $0A
- mov dx, bufInput
- int 21h
- mov ah, 09
- mov dx, newLine
- int 21h
- mov ah, [bufInput+6]
- mov al, [bufInput+5]
- mov [bufInput+6], al
- mov [bufInput+5], ah
- mov al,[bufInput+7]
- sub al,[bufInput+9]
- add al,[bufInput+10]
- mov [bufInput+2], ah
- mov ah, 09h
- mov dx, bufInput+2
- int 21h
- mov ah, $08
- int 21h
- ret
- bufInput: db 9,0,9 dup(?), '$' ;
- newLine db 13,10, 36
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement