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 #61 background imageLoading...
Page #61 background image
Chapter
1
I
System
Calls
Example:
The following program displays the file named TEXTFILE.ASC
that
is
on the disk in Drive
B;
its
function is similar to the
MS-
DOS TYPE command. If a partial record is in the buffer at end
of file, the routine that displays the partial record displays char-
acters until
it
encounters an end
of
file mark (ASCII
26,
or
CONTROL-Z).
fcb
buffer
func-14H:
read-line:
check-more:
f
ind-eof
:
a1 1-done
:
db
db 25 dup
(7)
db 128dup
(7),"$"
2
,
"T
E
X
T
F
I
LE
AS
C
"
set-dta buffer
open fcb
read-seq fcb
CmP al,0ZH
Je
all-done
CmP al,02H
19
check-more
display buffer
JmP
read-
I
i
ne
CmP al,03H
1
ne all-done
CmP
bufferLsil26
le
a1
1-done
display-char buffer
[si1
xor
51,51
inc
51
Imp
f
ind-eof
close fcb
;see Function
IAH
;seeFunction
0FH
;THIS FUNCTION
;endof file?
;endof filewith
;partial record?
;see
Function 09H
;get another record
;partial record inbuffer?
;no,
gohome
;set index
to0
;is
character
EOF?
;yes, nomore todisplay
;see Function 02H
;bump index
to
next
;character
;check next character
;seeFunctionlBH
;ye5
;ye5
59

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