home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ZSYS
/
SIMTEL20
/
SYSLIB
/
STEST.LBR
/
STEST010.Z80
< prev
next >
Wrap
Text File
|
2000-06-30
|
896b
|
51 lines
;
; PROGRAM: STEST010
; AUTHOR: RICHARD CONN
; PURPOSE: This program tests the FSIZE routine. It creates a directory
; display (using DIRFS) and displays the name of each file with its size
; via the FSIZE routine.
;
ext dirfs,fsize
ext codend,retud
ext print,phldc
ext pfn1,crlf
;
; Begin
;
call print
db 'STEST010 - Testing FSIZE',0dh,0ah,0
call retud ; get disk/user in BC
call codend ; determine end of code and pt to fcb
ld de,fcb1
ld a,c ; get user in A
or 80h ; set non-sys in current user
call dirfs ; get files
loop:
push hl
ex de,hl
inc de
call pfn1
pop hl
call print
db ' - ',0
push hl
call fsize
ex de,hl
call phldc
pop hl
ld de,16
add hl,de
call crlf
dec bc
ld a,b
or c
jp nz,loop
ret
fcb1:
db 0
db '???????????'
end