home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
pcmag
/
vol6n05.arc
/
THREECOM.ARC
/
FASTOFF.ASM
next >
Wrap
Assembly Source File
|
1987-02-22
|
768b
|
44 lines
; FASTOFF.ASM - Turns off diskette drive motors much quicker
; PC Magazine Vol 6 No 5 March 10, 1987 User-to-User
bios_seg segment at 40h
assume cs:bios_seg
org 0040h
motor_count: db ?
bios_seg ends
cseg segment
assume cs:cseg
org 100h
start: jmp short initialize
rom_int8 dd ?
int8 proc far
assume cs:cseg,ds:bios_seg
push ds
push ax
mov ax,bios_seg
mov ds,ax
cmp byte ptr motor_count,2
jb return
dec byte ptr motor_count
return:
pop ax
pop ds
jmp rom_int8
int8 endp
initialize:
assume cs:cseg,ds:cseg
mov ax,3508h
int 21h
mov word ptr [rom_int8],bx
mov word ptr [rom_int8+2],es
mov dx,offset int8
mov ax,2508h
int 21h
mov dx,offset initialize
int 27h
cseg ends
end start