Difference between revisions of "Trinity"

From C256 Foenix Wiki
Jump to navigation Jump to search
(Registers)
 
Line 8: Line 8:
 
|-
 
|-
 
| $AF:E800 || JOYSTICK0 || Joystick 0 -- J7, next to the SD card
 
| $AF:E800 || JOYSTICK0 || Joystick 0 -- J7, next to the SD card
 +
{| class="wikitable"
 +
|-
 +
!7
 +
!6
 +
!5
 +
!4
 +
!3
 +
!2
 +
!1
 +
!0
 +
|-
 +
| BUTTON2 || BUTTON1 || || BUTTON || RIGHT || LEFT || DOWN || UP
 +
|}
 +
 
|-
 
|-
 
| $AF:E801 || JOYSTICK1 || Joystick 1 -- J8
 
| $AF:E801 || JOYSTICK1 || Joystick 1 -- J8
 +
{| class="wikitable"
 +
|-
 +
!7
 +
!6
 +
!5
 +
!4
 +
!3
 +
!2
 +
!1
 +
!0
 +
|-
 +
| BUTTON2 || BUTTON1 || || BUTTON || RIGHT || LEFT || DOWN || UP
 +
|}
 +
 
|-
 
|-
 
| $AF:E802 || JOYSTICK2 || Joystick 2 -- J9
 
| $AF:E802 || JOYSTICK2 || Joystick 2 -- J9
 +
{| class="wikitable"
 +
|-
 +
!7
 +
!6
 +
!5
 +
!4
 +
!3
 +
!2
 +
!1
 +
!0
 +
|-
 +
| || || || BUTTON || RIGHT || LEFT || DOWN || UP
 +
|}
 +
 
|-
 
|-
 
| $AF:E803 || JOYSTICK3 || Joystick 3 -- J10, next to the buzzer
 
| $AF:E803 || JOYSTICK3 || Joystick 3 -- J10, next to the buzzer
 +
{| class="wikitable"
 +
|-
 +
!7
 +
!6
 +
!5
 +
!4
 +
!3
 +
!2
 +
!1
 +
!0
 +
|-
 +
| || || || BUTTON || RIGHT || LEFT || DOWN || UP
 +
|}
 +
 
|-
 
|-
 
| $AF:E804 || JOYSTICK_MODE ||
 
| $AF:E804 || JOYSTICK_MODE ||

Latest revision as of 17:17, 3 February 2021

Registers

Address Register Name Additional Info
$AF:E800 JOYSTICK0 Joystick 0 -- J7, next to the SD card
7 6 5 4 3 2 1 0
BUTTON2 BUTTON1 BUTTON RIGHT LEFT DOWN UP
$AF:E801 JOYSTICK1 Joystick 1 -- J8
7 6 5 4 3 2 1 0
BUTTON2 BUTTON1 BUTTON RIGHT LEFT DOWN UP
$AF:E802 JOYSTICK2 Joystick 2 -- J9
7 6 5 4 3 2 1 0
BUTTON RIGHT LEFT DOWN UP
$AF:E803 JOYSTICK3 Joystick 3 -- J10, next to the buzzer
7 6 5 4 3 2 1 0
BUTTON RIGHT LEFT DOWN UP
$AF:E804 JOYSTICK_MODE
Bit Mask Bit Name Additional Info
$01 NES_SNES_EN0 Enable the NES/SNES mode on port 0
$02 NES_SNES_EN1 Enable the NES/SNES mode on port 1
$04 NES_SNES_JOY 0 = NES, 1 = SNES
$40 NES_SNES_DONE Poll to see if the deserializer is done
$80 NES_SNES_TRIG Set to start the deserializer
$AF:E805 REVOFPCB_C First character of board ID (should be "C")
$AF:E806 REVOFPCB_4 Second character of board ID (should be "4")
$AF:E807 REVOFPCB_A Third character of board ID
$AF:E808 NES_SNES0_DAT_LO Contains 8 bits of NES/SNES controller for port 0
7 6 5 4 3 2 1 0
B Y SELECT START UP DOWN LEFT RIGHT
$AF:E809 NES_SNES0_DAT_HI Contains hi 4 bits of SNES controller for port 0
7 6 5 4 3 2 1 0
A X L R
$AF:E80A NES_SNES1_DAT_LO Contains 8 bits of NES/SNES controller for port 1
7 6 5 4 3 2 1 0
B Y SELECT START UP DOWN LEFT RIGHT
$AF:E80B NES_SNES1_DAT_HI Contains hi 4 bits of SNES controller for port 1
7 6 5 4 3 2 1 0
A X L R
$AF:E80C CFP9301_REV Hardware revision of the CPLD Code
$AF:E80D DIP_USER DIP switches 3, 4, and 5, which can be user defined.
$AF:E80E DIP_BOOTMODE
Bits Bit Name Additional Info
$01 BOOT_MODE0 Boot mode low bit (DIP1)
$02 BOOT_MODE1 Boot mode high bit (DIP2)
$80 HD_INSTALLED IDE drive is installed (DIP8)

Boot Mode Bits

DIP2 DIP1 Bit values Boot mode
OFF OFF 1,1 Boot on BASIC
OFF ON 1,0 Boot from SD CARD
ON OFF 0,1 Boot from Floppy (Illegal if MachineID doesn't specify a Floppy)
ON ON 0,0 Boot from HDD (Illegal if Dip switch 8 is OFF (1))