Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- format MZ
- stack stk:256
- entry codseg:main
- ;-------segment danych
- segment sdat use16
- w db 'Hello ',0dh,0ah,24h
- segment sdat2 use16
- z db 'World!',0dh,0ah,24h
- ;-------segment programu
- segment codseg use16
- main:
- push ds
- push bx
- push dx
- mov bx,sdat
- mov ds,bx
- mov ah,9
- mov dx,w
- int 21h
- mov ah,1
- int 21h
- mov bx, sdat2
- mov ds,bx
- mov ah,9
- mov dx,w
- int 21h
- mov ah,1
- int 21h
- pop dx
- pop bx
- pop ds
- mov ax,4c00h
- int 21h
- ret
- ;----segment stosu
- segment stk use16
- db 256 dup(?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement