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 #35 background imageLoading...
Page #35 background image
Chapter
1
I
System
Calls
StdC onInput
Keyboard Input Function Call
OIH
Waits for
a
character to be typed
at
the keyboard, then
echoes the character to the display and returns it in AL.
If the character is CONTROL-C, Interrupt
23H
is
executed.
Entry Conditions:
AH
=
OIH
E
xi
t
Conditions
:
AL
=
character typed
Macro Definition:
read-kbd-and-echo macro
mov
ah,
OIH
int 21H
endm
Example:
The following program displays and prints characters
as
they are typed.
If
[ENTER]
is
pressed, the program sends
a
Line-FeedKarriage-Return
to
both the display and the
printer.
func-OIH: read-kbd-and-echo
;THIS
FUNCTION
print-char
a1
;5ee
Function 05H
CmP al,0DH
;15
it
a
CR?
1ne func-OIH
;no, print
it
print-char
10
;5ee
Function 05H
display-char
10
;5ee
Function 02H
Imp
func-0lH
;get
another character
33

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