Difference between revisions of "83Plus:Ports:0D"
From WikiTI
m |
(Just realized the original example code was laughable.) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | [[Category:83Plus:Ports:By_Address|0D - Link Assist Output Buffer]] [[Category:83Plus:Ports:By_Name|Link Assist Output Buffer]] | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
== Synopsis == | == Synopsis == | ||
| − | '''Port Number:''' | + | '''Port Number:''' 0Dh |
| − | '''Function:''' | + | '''Function:''' Link Assist Output Buffer |
| − | This port | + | This port allows you to write data to be sent by the link assist. |
=== Read Values === | === Read Values === | ||
| − | + | ''None'' | |
=== Write Values === | === Write Values === | ||
| − | * [00h - FFh]: The | + | * [00h - FFh]: The byte to be written |
| − | + | == Comments == | |
| + | This port only exists on the 83+ SE and the 84+. | ||
| − | + | Check [[83Plus:Ports:09|port 9]] before you write this port, to be sure that the assist is ready. | |
| − | + | ||
== Example == | == Example == | ||
| − | + | SendByteSE: | |
| + | ld b,a | ||
| + | WaitToSend: | ||
| + | in a,[[83Plus:Ports:04|(4)]] | ||
| + | and 8 | ||
| + | jr z,LinkError | ||
| + | in a,[[83Plus:Ports:09|(9)]] | ||
| + | bit 5,a | ||
| + | jr nz,SendByteSE_OK | ||
| + | bit 6,a | ||
| + | jr z,WaitToSend | ||
| + | LinkError: | ||
| + | scf | ||
| + | ret | ||
| + | SendByteSE_OK: | ||
| + | ld a,b | ||
| + | out (0Dh),a | ||
| + | or a | ||
| + | ret | ||
== Credits and Contributions == | == Credits and Contributions == | ||
| − | * ''' | + | * '''Michael Vincent:''' Original documentation of the link assist |
Latest revision as of 01:25, 31 March 2006
Contents
Synopsis
Port Number: 0Dh
Function: Link Assist Output Buffer
This port allows you to write data to be sent by the link assist.
Read Values
None
Write Values
- [00h - FFh]: The byte to be written
Comments
This port only exists on the 83+ SE and the 84+.
Check port 9 before you write this port, to be sure that the assist is ready.
Example
SendByteSE: ld b,a WaitToSend: in a,(4) and 8 jr z,LinkError in a,(9) bit 5,a jr nz,SendByteSE_OK bit 6,a jr z,WaitToSend LinkError: scf ret SendByteSE_OK: ld a,b out (0Dh),a or a ret
Credits and Contributions
- Michael Vincent: Original documentation of the link assist