home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
MNUM416D.SZH
/
DISK_ASM.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-03-08
|
4KB
|
164 lines
;
; Message Base Renumberer
;
; This module was originally written by Bob Hartman
; Sysop of FidoNet node 1:132/101
;
; Spark Software, 427-3 Amherst St, CS 2032, Suite 232, Nashua, NH 03061
;
; This program source code is being released with the following provisions:
;
; 1. You are free to make changes to this source code for use on your own
; machine, however, altered source files may not be distributed without the
; consent of Spark Software.
;
; 2. You may distribute "patches" or "diff" files for any changes that you
; have made, provided that the "patch" or "diff" files are also sent to Spark
; Software for inclusion in future releases of the entire package. A "diff"
; file for the source archives may also contain a compiled version, provided
; it is clearly marked as not being created from the original source code.
; No other executable versions may be distributed without the consent of
; Spark Software.
;
; 3. You are free to include portions of this source code in any program you
; develop, providing: a) Credit is given to Spark Software for any code that
; may is used, and b) The resulting program is free to anyone wanting to use
; it, including commercial and government users.
;
; 4. There is NO technical support available for dealing with this source
; code, or the accompanying executable files. This source code is provided
; as is, with no warranty expressed or implied (I hate legalease). In other
; words, if you don't know what to do with it, don't use it, and if you are
; brave enough to use it, you're on your own.
;
; Spark Software may be contacted by modem at (603) 888-8179 (node 1:132/101)
; on the public FidoNet network, or at the address given above.
;
.xlist
page 64,132
title DiskIO
subttl by Bob Hartman
name DiskIO
;
;
;
; The following macro files come with the MicroSoft "C" compiler
;
include version.inc
include msdos.inc
include cmacros.inc
.sall
.list
sBegin code
assumes cs,code
assumes ds,data
cProc read_sect,<PUBLIC>
parmDP sect_ptr
parmW sector
parmW disk
cBegin
mov ax,disk
mov cx,1
mov dx,sector
mov bx,sect_ptr
push bp
int 25h
jc rs_exit
xor ax,ax
rs_exit:
add sp,2
pop bp
cEnd
cProc write_sect,<PUBLIC>
parmDP sect_ptr
parmW sector
parmW disk
cBegin
mov ax,disk
mov cx,1
mov dx,sector
mov bx,sect_ptr
push bp
int 26h
jc ws_exit
xor ax,ax
ws_exit:
add sp,2
pop bp
cEnd
cProc get_dir_entry,<PUBLIC>
parmDP extfcb
parmDP dta
cBegin
mov ah,1ah
mov dx,dta
int 21h
jc gde_exit
mov ah,11h
mov dx,extfcb
int 21h
or al,al
jnz gde_exit
xor ax,ax
gde_exit:
xor ah,ah
cEnd
cProc curr_drive,<PUBLIC>
cBegin
mov ah,19h
int 21h
cEnd
cProc disk_reset,<PUBLIC>
cBegin
mov ah,0dh
int 21h
cEnd
cProc fcb_delete,<PUBLIC>
parmDP fcb
cBegin
mov ah,13h
mov dx,fcb
int 21h
cEnd
sEnd
end