A82: Re: Port Instructions


[Prev][Next][Index][Thread]

A82: Re: Port Instructions



 The functions do the same things as the string instructions except that
they read/write from/to the port.

OUTD : Output value at HL to port C, Dec HL Dec B
OUTI : Output value at HL to port C, Inc HL Dec B
OTIR/OTDR : Same as above except that they repeat it untill B=0

IND : Read value from port C and store it at HL, Dec HL Dec B
INI : Read value from port C and store it at HL, Inc HL Dec B
INIR/INDR : Same as above except that they repeat it untill B=0

The instructions which repeats are not very useful on the TI82, but the
other ones are very good when you are writing a block of data to the display
controller. For examples on how to use them see the spritelib that i posted
on this list or some of the other programs which uses the display
controller.

Dines

BTW If you do not have a Z80 book i recommend Programming the Z80 by Rodney
Zaks, it is the best one out there. You can get it at amazon.com for app.
$22.

-----Original Message-----
From: Matt Maurano <maurano@best.com>
To: Assembly-82 Submition <assembly-82@lists.ticalc.org>
Date: 9. oktober 1997 06:49
Subject: A82: Port Instructions



>In the last (text) page on the Zshell school, it briefly mentions OUTI,
>OUTD, OTIR, OTDR, INI, IND, INIR and INDR as analagous to the string
>instructions. Could someone give a more exact definition of what they do
>(Most importantly the out ones).
>
>