Skip to content

Commit

Permalink
Merge pull request #76 from spicyjpeg/cache
Browse files Browse the repository at this point in the history
Add/improve documentation for BIU registers, clean up CD-ROM register info
  • Loading branch information
spicyjpeg authored Jan 9, 2025
2 parents 93c3787 + bfe9f80 commit 44501ec
Show file tree
Hide file tree
Showing 10 changed files with 2,807 additions and 2,577 deletions.
2,290 changes: 252 additions & 2,038 deletions docs/cdromdrive.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/cdromfileformats.md
Original file line number Diff line number Diff line change
Expand Up @@ -8038,7 +8038,7 @@ The file header, the first some Folder headers (those in first quarter or so),
and (all?) File Data is unencrypted (aka XORed with 0000h).<br/>
The Folder headers at higher offsets are encrypted with a 16bit XOR value. That
XOR value is derived from Subchannel Q via LibCrypt:<br/>
[CDROM Protection - LibCrypt](cdromdrive.md#cdrom-protection-libcrypt)<br/>
[CDROM Protection - LibCrypt](cdromformat.md#cdrom-protection-libcrypt)<br/>
When not having the Subchannel data (or when not knowing which Folders are
encrypted or unencrypted), one can simply obtain the encryption key from one of
these entries (which will be key=0000h when unencrypted):<br/>
Expand Down Expand Up @@ -8489,7 +8489,7 @@ ISO data in Sector 10h-16h, followed by Hidden stuff in Sector 17h and up:<br/>
Note: Like normal files, all hidden entries have their last sector flagged as
SM=89h (that applies to all three Hidden ID, Directory, Unknown entries, and to
all Hidden Files). For details, see:<br/>
[CDROM XA Subheader, File, Channel, Interleave](cdromdrive.md#cdrom-xa-subheader-file-channel-interleave)<br/>
[CDROM XA Subheader, File, Channel, Interleave](cdromformat.md#cdrom-xa-subheader-file-channel-interleave)<br/>

#### Xenogears (2 discs, 1998)
```
Expand Down Expand Up @@ -8990,7 +8990,7 @@ As shown above, interval 1:2 and 1:4 are grouped as 4:8 and 2:8 (ie. 4 or 2
continous sectors per 8 sectors).<br/>
The Subheader's Channel number is specified in the above directory entries,
Subheader's File number is fixed (0 for BPB, and 1 for SPB).<br/>
[CDROM XA Subheader, File, Channel, Interleave](cdromdrive.md#cdrom-xa-subheader-file-channel-interleave)<br/>
[CDROM XA Subheader, File, Channel, Interleave](cdromformat.md#cdrom-xa-subheader-file-channel-interleave)<br/>
The SPB file is about 520Mbyte in both US and Japan, however, the Japanese
version does reportedly contain more movies and some storyline that is missing
in US/EU versions.<br/>
Expand Down
1,824 changes: 1,824 additions & 0 deletions docs/cdromformat.md

Large diffs are not rendered by default.

21 changes: 20 additions & 1 deletion docs/controllersandmemorycards.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
[Controllers - Analog Buttons (Dualshock2)](controllersandmemorycards.md#controllers-analog-buttons-dualshock2)<br/>
[Controllers - Dance Mats](controllersandmemorycards.md#controllers-dance-mats)<br/>
[Controllers - Pop'n Controllers](controllersandmemorycards.md#controllers-popn-controllers)<br/>
[Controllers - Taiko Controllers (Tatacon)](controllersandmemorycards.md#controllers-taiko-controllers-tatacon)<br/>
[Controllers - Densha de Go! / Jet de Go! Controllers](controllersandmemorycards.md#controllers-densha-de-go-jet-de-go-controllers)<br/>
[Controllers - Fishing Controllers](controllersandmemorycards.md#controllers-fishing-controllers)<br/>
[Controllers - PS2 DVD Remote](controllersandmemorycards.md#controllers-ps2-dvd-remote)<br/>
Expand Down Expand Up @@ -1549,7 +1550,7 @@ enable/disable Reply bytes in the controller read command (Command 42h).<br/>
5 LeftJoyY (0=No, 1=Yes) 9th byte
6 DPAD Right (0=No, 1=Yes) button 00h 10th byte
7 DPAD Left (0=No, 1=Yes) button 01h 11th byte
8 DPAD Uup (0=No, 1=Yes) button 02h 12th byte
8 DPAD Up (0=No, 1=Yes) button 02h 12th byte
9 DPAD Down (0=No, 1=Yes) button 03h 13th byte
10 Button /\ (0=No, 1=Yes) button 04h 14th byte
11 Button () (0=No, 1=Yes) button 05h 15th byte
Expand Down Expand Up @@ -1720,6 +1721,24 @@ is connected and will change the in-game controls accordingly if so.



## Controllers - Taiko Controllers (Tatacon)
Drum controllers made by Namco and used by the Taiko no Tatsujin series on the
PS2 (but compatible with the PS1, even though no PS1 Taiko game was ever made).
These controllers behave like standard digital pads (ID 41h) and contain four
hit sensors mapped to the following buttons:<br/>

| Sensor | Button | Bit |
| :----------------- | :--------- | --: |
| Left ka (rim) | L1 | 10 |
| Right ka (rim) | R1 | 11 |
| Left don (center) | D-pad left | 7 |
| Right don (center) | Circle | 13 |

Dedicated start and select buttons are also present. Unlike Pop'n Controllers,
no additional buttons are hardcoded to be always pressed.<br/>



## Controllers - Densha de Go! / Jet de Go! Controllers
Controllers used for Taito's Densha de Go! and Jet de Go! series. Unknown what
method is being used by Densha de Go! and Jet de Go! games for detecting these
Expand Down
2 changes: 1 addition & 1 deletion docs/cpuspecifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ handler at 80000080h (not 80000040h).<br/>
The debug registers are mis-used by "Legacy of Kain: Soul Reaver" (and maybe
also other games) for storing libcrypt copy-protection related values (ie. just
as a "hidden" location for storing data, not for actual debugging purposes).<br/>
[CDROM Protection - LibCrypt](cdromdrive.md#cdrom-protection-libcrypt)<br/>
[CDROM Protection - LibCrypt](cdromformat.md#cdrom-protection-libcrypt)<br/>

#### Note (Cheat Devices/Expansion ROMs)
The Expansion ROM header supports only Pre-Boot and Post-Boot vectors, but no
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ To discuss the contents of this document, or hang out with likely minded people
[DMA Channels](dmachannels.md)<br/>
[Timers](timers.md)<br/>
[CDROM Drive](cdromdrive.md)<br/>
[CDROM Format](cdromformat.md)<br/>
[CDROM File Formats](cdromfileformats.md)<br/>
[Controllers and Memory Cards](controllersandmemorycards.md)<br/>
[Pocketstation](pocketstation.md)<br/>
Expand Down
Loading

0 comments on commit 44501ec

Please sign in to comment.