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 #89 background imageLoading...
Page #89 background image
Chapter
1
I
System Calls
Example:
The following program gets the date, increments the day,
increments the month
or
year, if necessary, and sets the
new date.
month db 31,28,31 ,30,31
,30,31
,31
,3%
,31
,30,31
func-2BH: get-date
i
nc
xor
mov
dec
CmP
1le
mov
inc
CmP
J'e
mov
i
nc
month-ok: set-date
dl
bx, bx
bl ,dh
bx
dl,month[bxl
month-ok
dl,1
dh
dh,l2
mon
t
h-o
k
dh,l
cx
cx,dh,dl
;see Function 2AH
;increment day
;so
EL
can be used
as
;index
;move month to index
;
reg1 ster
;month table starts with
0
;past end
of
month?
;no, set the new date
;yes, set day to
1
;and increment month
;past end
of
year?
;no, set the new date
;ye5, set the month
;to
1
;increment year
;THIS
FUNCTION
87

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