home *** CD-ROM | disk | FTP | other *** search
- %TITLE "PUSH/POP instructions demo"
-
- IDEAL
- DOSSEG
- MODEL small
- STACK 256
-
- DATASEG
-
- exitCode DB 0 ;if you want comments
-
- CODESEG
-
- Start:
- mov ax,@data
- mov ds,ax
-
- push ax
- push bx
-
- mov ax,-1
- mov bx,-2
- mov cx,0
- mov dx,0
-
- push ax
- push bx
- pop cx
- pop dx
-
- pop bx
- pop ax
-
- Exit:
- mov ah,04Ch
- mov al,[exitCode]
- int 21h
-
- End Start