Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .model small
- .stack 32
- .data
- head1 db "cybernauts",10,'$'
- date db "6/24/19////////////////////////////",10,'$'
- errorMessage db "Error not in string",10,'$'
- mock db "+----+"
- copy4 db 24 DUP(' '), '$'
- .code
- main proc far
- mov ax, @data
- mov ds, ax
- mov es, ax
- cld
- mov cx, 12 ; mov cx, 24 but then --> = rep movsB
- ; mov si, 24 // pre-seting the register doesn't work you must remove the '$' because that
- ; limits the size of the string variable
- lea si, mock
- lea di, copy4
- rep movsW
- ;lea dx, mock
- ;mov ah, 09h
- ;int 21h
- lea dx, copy4
- mov ah, 09h
- int 21h
- mov ax,4c00h
- int 21h
- main endp
- end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement