home *** CD-ROM | disk | FTP | other *** search
- ; Assembly language program to reset any parallel printer
- ;
- ; This can be assembed "as is" to make a .COM file, or
- ; the instructions can be incorporated into your program.
- ;
-
- cseg segment
- assume cs:cseg,ds:nothing
- prreset proc far
-
- mov dx,0040h
- mov ds,dx
- mov dx,ds:[0008h]
- add dx,2 ; port address is now in DX
-
- mov al,232
- out dx,al ; INIT line goes low
-
- mov cx,32767
- delay: loop delay ; wait about 0.1 second
-
- mov ax,236
- out dx,al ; INIT line back to normal
-
- int 20h ; return to DOS
-
- prreset endp
- cseg ends
- end prreset