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 #92 background imageLoading...
Page #92 background image
Chapter
1
I
System Calls
Example:
The following program sets the system clock
to
0
and
continuously displays the time. When a character is typed,
the display freezes; when another character
is
typed, the
clock
is reset
to
0
and
the display starts again.
time db
"00: 00:
00
I
00",
13,10
,"$"
ten db
10
f
unc-2DH
:
5et-time 0,0,0,0
read-clock: get-time
convert ch,ten,time
convert cl,ten,time[31
convert dh,ten,time[61
convert dl,ten,time[91
display time
TH15 FUNCTION
5ee
Function 2CH
5ee
end
of
chapter
5ee
end
of
chapter
5ee
end
of
chapter
5ee
end
of
chapter
5ee
Function 09H
dir-console-io EFFH
;see
Function 06H
CmP al,00H
;wa5
a
char. typed?
1ne
5tOP
;yes, 5top the timer
Imp read-clock ;no keep timer on
stop: read-k bd
;5ee
Function 08H
Imp
f
unc-2DH ;keep displaying time
90

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