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 #63 background imageLoading...
Page #63 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-size equ
fcbl
fcb2
buffer
func-15H:
wr
i
te-i
t
:
all-done:
db
db
db
db
db
set-dta
search-first
CmP
Je
create
mov
wri
te-5eq
search-next
CmP
le
J
mP
close
14
2,"DIR
TMP"
25
dup
(7)
25 dup
(7)
l28dup
(7)
2,
"7 7
7
7 7 77 7 7 7
7"
;offset of Recordsize
:field inFCB
buffer ;see Function
1AH
fcb2 ;see Function
11H
a1
,BFFH ;directoryentry found?
all-done
;no,
no filesondisk
fcbl
;5ee
Function 16H
fcbl [record_sizel,l2
fcbl ;THISFUNCTION
fcb2 5ee Function 12H
a1
,EFFH directoryentry found?
a1
I-done
no,
go
home
wr
i
te-i
t
fcbl 5ee Function
1EH
;set recordsize to12
ye5,writethe record
61

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