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 #52 background imageLoading...
Page #52 background image
Chapter
1
I
System
Calls
Example:
The following program prints the file names TEXTEILE.ASC
that is on the disk in Drive
B.
If
a partial record is in the buffer
at end
of
file, the routine that prints the partial record prints
characters until it encounters an end of file mark (ASCII
26,
or
CONTROL-Z).
fcb
buffer
func- 0FH:
read- line:
print-it:
check- more:
f ind-eof
:
all- done:
db 2, "TEXTFILEASC"
db
25
dup
(7)
db
128
dup
(7)
set-dta buffer
open fcb
read-5eq fcb
CmP
le
CmP
19
al, 02H
all-done
ai
,00H
check-more
mov
xor
print-
i
nc
loop
JmP
CmP
Jne
mov
xor
CmP
close
cx,128
char buffer
[
51
1
51,51
51
print-it
read-1 ine
al,03H
all- done
cx,128
bufferl5il,26
fcb
51,51
;see
Function
IAH
;THIS FUNCTION
;5ee
Function
14H
;end of file?
!yes,
o
home
,more
90
come?
;no, check for partial
;Record
!yes,
print the buffer
,set
index
to
0
;see
Function 05H
;bump index
;print next character
;read another record
!part. record to print?
,no
;ye5,
print
it
;set
index to
0
;end of file mark?
;5ee
Function 10H
50

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