Difference between revisions of "Peripheral 1 Register"

From SpecNext official Wiki
Jump to: navigation, search
Line 3: Line 3:
 
|Readable=Yes
 
|Readable=Yes
 
|Writable=Yes
 
|Writable=Yes
|ShortDesc=Enables [[Joysticks]], [[Enhanced ULA]], video frequency, [[Scanlines]] and [[Scandoubler]].
+
|ShortDesc=Sets joystick mode, video frequency, [[Scanlines]] and [[Scandoubler]].
 
}}
 
}}
 +
 +
{|
 +
! Bit !! Function
 +
|-
 +
| 7-6 || Joystick 1 mode
 +
|-
 +
| 5-4 || Joystick 0 mode
 +
|-
 +
| 3 || Reserved
 +
|-
 +
| 2 || Enable 60hz mode
 +
|-
 +
| 1 || Enable Scanlines
 +
|-
 +
| 0 || Enable Scandoubler
 +
|}
 +
 +
The codes for joystick modes are as follows:
 +
 +
{|
 +
! Code ! Effect
 +
|-
 +
| 00 || Sinclair Joystick (Joystick 1 maps to keys 1,2,3,4,5; joystick 2 maps to keys 6,7,8,9,0)
 +
|-
 +
| 01 || Kempston Joystick (uses port {{PortNo|$xx1F}}). Only one joystick can be Kempston
 +
|-
 +
| 10 || Cursor Joystick (maps to keys 5,6,7,8,0). Only one joystick can be Cursor
 +
|}

Revision as of 01:52, 30 August 2017

Number $05
Readable Yes
Writable Yes
Short Description Sets joystick mode, video frequency, Scanlines and Scandoubler.


Bit Function
7-6 Joystick 1 mode
5-4 Joystick 0 mode
3 Reserved
2 Enable 60hz mode
1 Enable Scanlines
0 Enable Scandoubler

The codes for joystick modes are as follows:

Code ! Effect
00 Sinclair Joystick (Joystick 1 maps to keys 1,2,3,4,5; joystick 2 maps to keys 6,7,8,9,0)
01 Kempston Joystick (uses port Kempston Joystick ($xx1F / 31)). Only one joystick can be Kempston
10 Cursor Joystick (maps to keys 5,6,7,8,0). Only one joystick can be Cursor