Difference between revisions of "83Plus:Ports:0D"

From WikiTI
Jump to: navigation, search
m
 
(Just realized the original example code was laughable.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''Note:''' Do not take the information on this template page as actual documentation!
+
[[Category:83Plus:Ports:By_Address|0D - Link Assist Output Buffer]] [[Category:83Plus:Ports:By_Name|Link Assist Output Buffer]]
 
+
The Ports are named by their number, in hexadecimal. An example is [[83Plus:Ports:00]].
+
 
+
You also must put a variation on the following code into your page to have it categorized:
+
NaodW29-nowiki605b15f223c35f2d00000001
+
 
+
----
+
 
+
 
== Synopsis ==
 
== Synopsis ==
'''Port Number:''' 06h
+
'''Port Number:''' 0Dh
  
'''Function:''' Flash Memory Paging
+
'''Function:''' Link Assist Output Buffer
  
This port controls what page is swapped into the 4000h to 7FFFh range. ('''DO NOT''' take this template page as real documentation on port 6!)
+
This port allows you to write data to be sent by the link assist.
  
 
=== Read Values ===
 
=== Read Values ===
* [00h - FFh]: The current port mapped to the memory range 4000h through 7FFFh.
+
''None''
  
 
=== Write Values ===
 
=== Write Values ===
* [00h - FFh]: The new page to swap in to the memory range 4000h through 7FFFh
+
* [00h - FFh]: The byte to be written
  
''Note: if you would have bitwise flags for your port, label them "bit X".''
+
== Comments ==
 +
This port only exists on the 83+ SE and the 84+.
  
== Comments ==
+
Check [[83Plus:Ports:09|port 9]] before you write this port, to be sure that the assist is ready.
The behavior of this port changes in different memory map modes.
+
  
 
== Example ==
 
== Example ==
  NaodW29-nowiki605b15f223c35f2d00000002
+
  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 ==
* '''/dev/urandom:''' Because of your randomness, this project is possible.
+
* '''Michael Vincent:''' Original documentation of the link assist

Latest revision as of 00:25, 31 March 2006

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