Difference between revisions of "Ports Template"

From WikiTI
Jump to: navigation, search
 
m (Synopsis)
Line 2: Line 2:
 
'''Port Number:''' 06h
 
'''Port Number:''' 06h
  
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 controls what page is swapped into the 4000h to 7FFFh range. ('''DO NOT''' take this template page as real documentation on port 6!)
  
 
=== Read Values ===
 
=== Read Values ===

Revision as of 19:23, 26 March 2005

Synopsis

Port Number: 06h

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!)

Read Values

  • [00h - FFh]: The current port mapped to the memory range 4000h through 7FFFh.

Write Values

  • [00h - FFh]: The new page to swap in to the memory range 4000h through 7FFFh

Note: if you would have bitwise flags for your port, label them "bit X".

Comments

The behavior of this port changes in different memory map modes.

Example

push af
in a,(6)
ld (oldMemPage),a
ld a,1
out (6),a
; do stuff that needs page 1 swapped in
ld a,(oldMemPage)
out (6),a
pop af

Credits and Contributions

  • /dev/urandom: Because of your randomness, this project is possible.