EasyManuals Logo

Tandy 1000 Programmer's Reference Guide

Default Icon
251 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #65 background imageLoading...
Page #65 background image
Chapter
1
I
System Calls
Example:
The following program creates a file named
DIR.TMP
on the
disk in Drive
B
that contains the disk number
(0
=
A,
1
=
B,
etc.) and filename from each directory entry on the disk.
record-5ize
fcbl
fcb2
buffer
func-16H:
wri
te-i
t
:
all-done:
db
db
db
db
db
set-dta
search-first
CmP
le
create
mow
write-seq
search-next
CmP
le
Imp
close
14
2,"DIR
TMP"
25 dup(7)
25 dup
(7)
128dup(7)
2
,
"
7
7
7
7
7 7
7 7 7 7
7"
;offset of Recordsize
;fieldof
FCB
buffer ;seeFunctionlAH
fcb2 ;seeFunctionllH
a1,BFFH ;directoryentry found?
a1 I-done ;no,nofiles ondisk
fcbl
;THIS
FUNCTION
fcbl[record-sizel,l2
fcbl ;seeFunctionlSH
fcb2 ;see Function l2H
a1,EFFH ;directoryentry found7
a1
I-done ;no,go
home
wr
i
te-i
t
fcbl :seeFunction
10H
;set record size
to
12
;yes,writethe record
63

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals