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 #68 background imageLoading...
Page #68 background image
Chapter
1
I
System Calls
Curdsk
Current
Disk
Function Call
19H
Returns the code of the currently selected drive.
En try Conditions:
AH
=
19H
E
xi t Conditions:
AL
=
currently selected drive
(0
=
A,
1
=
B,
etc.)
Macro
Definition:
current-disk
macro
mov
ah,l9H
int
21
H
endm
Example:
The following program displays the currently selected (default)
drive in a 2-drive system.
message db
crlf db
"Current
disk
15
0"
;see Function 09H
1
3,l
0
,
"0"
;for explanationof
$
func-19H: display message ;see Function
09H
current-disk ;THIS FUNCTION
1
"e disk-b ;no, it's disk
B
display-char
"A"
;seeFunction 02H
JmP
all-done
disk-b:
d
i
sp
1
ay-c har
"E"
;seeFunction 02H
all-done:
display crlf ;5eeFunction 09H
CmP
al,00H
;I5
it
disk
A7
66

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