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 #90 background imageLoading...
Page #90 background image
Chapter
1
I
System
Calls
GetTime
Get Time Function
Call
2CH
Returns the current time set in the operating system as
binary numbers.
Entry Conditions:
AH
=
2CH
Exit Conditions:
CH
=
hour (0-23)
CL
=
minutes (0-59)
DH
=
seconds (0-59)
DL
=
hundredths
of
a
second (0-99)
Macro Definition:
get-time macro
mov ah ,2CH
int
21H
endm
Example:
The following program continuously displays the time until
any key is pressed.
time db
ten db 10
"00
:
0 0
:
00. OB",
1
3,l
0
,
"$"
func-2CH: get-time
convert ch,ten,time
convert cl,ten,time[31
convert dh,ten,time[61
convert dl,ten,time[91
display time
check-tbd-status
CmP a1,BFFH
le all-done
Imp func-2CH
all-done: ret
;THIS
FUNCTION
;5ee end of chapter
;5ee end of chapter
;5ee end of chapter
;5ee end of chapter
;5ee
Function 09H
;5ee Function 0BH
;ha5
a
key been pressed?
;yes, terminate
;no, display time
88

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