home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast.iso
/
pcmag
/
vol6n05.zip
/
THREECOM.ZIP
/
FFEED.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-02-22
|
1KB
|
53 lines
; FFEED.ASM - resident printer support utility adds a form feed
; to the end of a print screen if right shift key was used. If
; left shift was used, no form feed is sent. Also checks printer
; status before beginning print screen and aborts if not ready.
; PC Magazine Vol 6 No 5 Mar 10, 1987 User-to-User
cseg segment
assume cs:cseg
org 100h
start: jmp short initialize
oldint5 dd ?
newint5 proc far
sti
push ax
push dx
mov ah,02
mov dx,0
int 17h
test ah,80h
jz ret
mov ah,02h
int 16h
and al,01h
mov dl,al
pushf
call cs:oldint5
cmp dl,0
je ret
mov ax,000Ch
xor dx,dx
int 17h
ret: pop dx
pop ax
iret
newint5 endp
assume ds:cseg
initialize: mov ax,3505h
int 21h
mov word ptr [oldint5], bx
mov word ptr [oldint5+2],es
mov dx,offset newint5
mov ax,2505h
int 21h
mov dx,offset initialize
int 27h
cseg ends
end start