Difference between revisions of "83:Ports:02"

From WikiTI
Jump to: navigation, search
(Write Values: - corrected an error; some bits were swapped)
(memory mapping)
 
Line 1: Line 1:
 +
[[Category:83:Ports:By Address|02 - ROM/RAM Pager / Memory Map Control]] [[Category:83:Ports:By Name|ROM/RAM Pager / Memory Map Control]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Port Number:''' 02h
 
'''Port Number:''' 02h
  
'''Function:''' ROM and RAM Pager
+
'''Function:''' ROM and RAM Pager and Memory Map Control
  
This port controls what page is swapped into the 4000h to 7FFFh range.
+
This port controls what page is swapped into the swappable memory range which depends on the current [[83:OS:Memory Mapping|mapping mode]].
  
 
=== Read Values ===
 
=== Read Values ===
Always the last value output is read back.
+
Always the last value written.
  
 
=== Write Values ===
 
=== Write Values ===
 
* Bits 0 to 2: The lower 3 bits of the desired ROM page (bit 3 can be set through bit 4 of the [[83:Ports:00|link port]])
 
* Bits 0 to 2: The lower 3 bits of the desired ROM page (bit 3 can be set through bit 4 of the [[83:Ports:00|link port]])
* Bit 3: Must be 1, otherwise the the calculator crashes
+
* Bit 3 controls the [[83:OS:Memory Mapping|memory mapping mode]]. The default value for this bit is 1.
 
* Bit 4: Unknown, harmless
 
* Bit 4: Unknown, harmless
 
* Bit 5: Unknown, harmless
 
* Bit 5: Unknown, harmless
* Bit 6: 0 - the specified ROM page is swapped in, 1 - the RAM page specified by bit 0 swapped in (0 causes it to mirror the page at C000h, 1 mirrors the page at 8000h)
+
* Bit 6: 0 - the specified ROM page is swapped in, 1 - the RAM page specified by bit 0 swapped in.
* Bit 7: Must be 1, otherwise the the calculator crashes
+
* Bit 7 controls the [[83:OS:Memory Mapping|memory mapping mode]]. The default value for this bit is 1.
  
 
== Credits and Contributions ==
 
== Credits and Contributions ==
 
* created by CoBB
 
* created by CoBB
 
[[Category:83:Ports:By Address|02 - ROM and RAM pager]]
 
[[Category:83:Ports:By Name|ROM and RAM pager]]
 

Latest revision as of 12:48, 28 April 2005

Synopsis

Port Number: 02h

Function: ROM and RAM Pager and Memory Map Control

This port controls what page is swapped into the swappable memory range which depends on the current mapping mode.

Read Values

Always the last value written.

Write Values

  • Bits 0 to 2: The lower 3 bits of the desired ROM page (bit 3 can be set through bit 4 of the link port)
  • Bit 3 controls the memory mapping mode. The default value for this bit is 1.
  • Bit 4: Unknown, harmless
  • Bit 5: Unknown, harmless
  • Bit 6: 0 - the specified ROM page is swapped in, 1 - the RAM page specified by bit 0 swapped in.
  • Bit 7 controls the memory mapping mode. The default value for this bit is 1.

Credits and Contributions

  • created by CoBB