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 #25 background imageLoading...
Page #25 background image
Chapter
1
I
System Calls
Example:
The following program copies the contents
of
a
single sided disk
in Drive
A
to the disk in Drive
B,
verifying
each
write.
It
uses
a
buffer of
32K
bytes.
off
equ
0
on
equ
1
prompt db "Source in
A,
target
in
B",13,10
db "Any key
to
start.
$"
start dw
0
buffer db
64
dup (512 dup(7));64 sectors
1nt-26H: display prompt
;see
Function 09H
read-kbd ;see Function 08H
verify on
;see
Function
2EH
mov CX,~ ;copy
5
groups of
64
;
sec
t
or5
copy: push
cx
;save the loop counter
abs_disk_read0,buffer,64,start
;see
INT25H
abs-disk-write
1,
buffer,64,5tart ;THIS
INTERRUPl
add start,64 ;do
the
next
64
sectors
POP
cx
;restore the loop counter
verify off
;see
Function ZEH
loop copy
23

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