Playstation Specifications - Psx-Spx
Total Page:16
File Type:pdf, Size:1020Kb
PlayStation Specifications - psx-spx None None None Table of contents Table of contents 1. Home 10 2. Memory Map 11 3. I/O Map 15 4. Graphics Processing Unit (GPU) 21 4.1 GPU I/O Ports, DMA Channels, Commands, VRAM 21 4.2 GPU Render Polygon Commands 24 4.3 GPU Render Line Commands 26 4.4 GPU Render Rectangle Commands 27 4.5 GPU Rendering Attributes 28 4.6 GPU Memory Transfer Commands 31 4.7 GPU Other Commands 33 4.8 GPU Display Control Commands (GP1) 34 4.9 GPU Status Register 40 4.10 GPU Versions 41 4.11 GPU Depth Ordering 44 4.12 GPU Video Memory (VRAM) 46 4.13 GPU Texture Caching 48 4.14 GPU Timings 50 4.15 GPU (MISC) 52 5. Geometry Transformation Engine (GTE) 56 5.1 GTE Overview 56 5.2 GTE Registers 58 5.3 GTE Saturation 62 5.4 GTE Opcode Summary 63 5.5 GTE Coordinate Calculation Commands 65 5.6 GTE General Purpose Calculation Commands 66 5.7 GTE Color Calculation Commands 68 5.8 GTE Division Inaccuracy 70 6. Macroblock Decoder (MDEC) 72 6.1 MDEC I/O Ports 72 6.2 MDEC Commands 74 6.3 MDEC Decompression 75 6.4 MDEC Data Format 79 7. Sound Processing Unit (SPU) 83 7.1 SPU Overview 83 - 2/663 - Table of contents 7.2 SPU ADPCM Samples 85 7.3 SPU ADPCM Pitch 87 7.4 SPU Volume and ADSR Generator 90 7.5 SPU Voice Flags 93 7.6 SPU Noise Generator 94 7.7 SPU Control and Status Register 94 7.8 SPU Memory Access 95 7.9 SPU Interrupt 99 7.10 SPU Reverb Registers 100 7.11 SPU Reverb Formula 102 7.12 SPU Reverb Examples 103 7.13 SPU Unknown Registers 105 7.14 SPU Internal State Machine from SPU RAM Timing 106 8. Interrupts 110 9. DMA Channels 112 10. Timers 117 11. CDROM Drive 119 11.1 CDROM Controller I/O Ports 120 11.2 CDROM Controller Command Summary 127 11.3 CDROM - Control Commands 129 11.4 CDROM - Seek Commands 132 11.5 CDROM - Read Commands 134 11.6 CDROM - Status Commands 137 11.7 CDROM - CD Audio Commands 141 11.8 CDROM - Test Commands 145 11.9 CDROM - Test Commands - Version, Switches, Region, Chipset, SCEx 145 11.10 CDROM - Test Commands - Test Drive Mechanics 147 11.11 CDROM - Test Commands - Prototype Debug Transmission 150 11.12 CDROM - Test Commands - Read/Write Decoder RAM and I/O Ports 151 11.13 CDROM - Test Commands - Read HC05 SUB-CPU RAM and I/O Ports 152 11.14 CDROM - Secret Unlock Commands 156 11.15 CDROM - Video CD Commands 157 11.16 CDROM - Mainloop/Responses 160 11.17 CDROM - Response Timings 162 11.18 CDROM - Response/Data Queueing 163 11.19 CDROM Disk Format 170 11.20 CDROM Subchannels 173 11.21 CDROM Sector Encoding 180 - 3/663 - Table of contents 11.22 CDROM XA Subheader, File, Channel, Interleave 182 11.23 CDROM XA Audio ADPCM Compression 185 11.24 CDROM ISO Volume Descriptors 190 11.25 CDROM ISO File and Directory Descriptors 193 11.26 CDROM ISO Misc 196 11.27 CDROM File Formats 198 11.28 CDROM Protection - SCEx Strings 200 11.29 CDROM Protection - Bypassing it 201 11.30 CDROM Protection - Modchips 203 11.31 CDROM Protection - Chipless Modchips 207 11.32 CDROM Protection - LibCrypt 208 11.33 CDROM Disk Images CCD/IMG/SUB (CloneCD) 210 11.34 CDROM Disk Images CDI (DiscJuggler) 213 11.35 CDROM Disk Images CUE/BIN/CDT (Cdrwin) 215 11.36 CDROM Disk Images MDS/MDF (Alcohol 120%) 218 11.37 CDROM Disk Images NRG (Nero) 221 11.38 CDROM Disk Image/Containers CDZ 224 11.39 CDROM Disk Image/Containers ECM 226 11.40 CDROM Subchannel Images 228 11.41 CDROM Disk Images Other Formats 230 12. Controllers and Memory Cards 234 12.1 Controller and Memory Card I/O Ports 235 12.2 Controller and Memory Card Misc 238 12.3 Controller and Memory Card Signals 240 12.4 Controller and Memory Card Multitap Adaptor 241 12.5 Controllers - Communication Sequence 244 12.6 Controllers - Standard Digital/Analog Controllers 245 12.7 Controllers - Mouse 248 12.8 Controllers - Racing Controllers 252 12.9 Controllers - Lightguns 256 12.10 Controllers - Lightguns - Namco (GunCon) 257 12.11 Controllers - Lightguns - Konami Justifier/Hyperblaster (IRQ10) 260 12.12 Controllers - Lightguns - PSX Lightgun Games 263 12.13 Controllers - Rumble Configuration 264 12.14 Controllers - Dance Mats 270 12.15 Controllers - Pop'n Controllers 272 12.16 Controllers - Densha de Go! / Jet de Go! Controllers 273 12.17 Controllers - Fishing Controllers 273 - 4/663 - Table of contents 12.18 Controllers - Stepper Controller 277 12.19 Controllers - I-Mode Adaptor (Mobile Internet) 277 12.20 Controllers - Additional Inputs 278 12.21 Controllers - Misc 279 12.22 Memory Card Read/Write Commands 280 12.23 Memory Card Data Format 283 12.24 Memory Card Images 286 12.25 Memory Card Notes 288 13. Pocketstation 291 13.1 Pocketstation Overview 292 13.2 Pocketstation I/O Map 293 13.3 Pocketstation Memory Map 297 13.4 Pocketstation IO Video and Audio 299 13.5 Pocketstation IO Interrupts and Buttons 301 13.6 Pocketstation IO Timers and Real-Time Clock 302 13.7 Pocketstation IO Infrared 304 13.8 Pocketstation IO Memory-Control 306 13.9 Pocketstation IO Communication Ports 309 13.10 Pocketstation IO Power Control 312 13.11 Pocketstation SWI Function Summary 315 13.12 Pocketstation SWI Misc Functions 316 13.13 Pocketstation SWI Communication Functions 317 13.14 Pocketstation SWI Execute Functions 320 13.15 Pocketstation SWI Date/Time/Alarm Functions 322 13.16 Pocketstation SWI Flash Functions 323 13.17 Pocketstation SWI Useless Functions 324 13.18 Pocketstation BU Command Summary 325 13.19 Pocketstation BU Standard Memory Card Commands 326 13.20 Pocketstation BU Basic Pocketstation Commands 327 13.21 Pocketstation BU Custom Pocketstation Commands 329 13.22 Pocketstation File Header/Icons 335 13.23 Pocketstation File Images 338 13.24 Pocketstation XBOO Cable 339 14. Serial Port (SIO) 343 15. Expansion Port (PIO) 349 15.1 EXP1 Expansion ROM Header 350 15.2 EXP2 Dual Serial Port (for TTY Debug Terminal) 351 15.3 EXP2 DTL-H2000 I/O Ports 358 - 5/663 - Table of contents 15.4 EXP2 Post Registers 360 15.5 EXP2 Nocash Emulation Expansion 361 16. Memory Control 362 17. Unpredictable Things 368 18. CPU Specifications 373 18.1 CPU Registers 373 18.2 CPU Opcode Encoding 374 18.3 CPU Load/Store Opcodes 376 18.4 CPU ALU Opcodes 378 18.5 CPU Jump Opcodes 380 18.6 CPU Coprocessor Opcodes 381 18.7 CPU Pseudo Opcodes 382 18.8 COP0 - Register Summary 384 18.9 COP0 - Exception Handling 385 18.10 COP0 - Misc 389 18.11 COP0 - Debug Registers 390 19. Kernel (BIOS) 393 19.1 BIOS Overview 394 19.2 BIOS Memory Map 395 19.3 BIOS Function Summary 397 19.4 BIOS File Functions 404 19.5 BIOS File Execute and Flush Cache 409 19.6 BIOS CDROM Functions 412 19.7 BIOS Memory Card Functions 415 19.8 BIOS Interrupt/Exception Handling 420 19.9 BIOS Event Functions 424 19.10 BIOS Event Summary 428 19.11 BIOS Thread Functions 429 19.12 BIOS Timer Functions 431 19.13 BIOS Joypad Functions 432 19.14 BIOS GPU Functions 434 19.15 BIOS Memory Allocation 436 19.16 BIOS Memory Fill/Copy/Compare (SLOW) 438 19.17 BIOS String Functions 439 19.18 BIOS Number/String/Character Conversion 443 19.19 BIOS Misc Functions 445 19.20 BIOS Internal Boot Functions 449 19.21 BIOS More Internal Functions 450 - 6/663 - Table of contents 19.22 BIOS PC File Server 452 19.23 BIOS TTY Console (std_io) 453 19.24 BIOS Character Sets 457 19.25 BIOS Control Blocks 458 19.26 BIOS Versions 459 19.27 BIOS Patches 461 20. Arcade Cabinets 475 21. Cheat Devices 476 21.1 Cheat Devices - Datel I/O 477 21.2 Cheat Devices - Datel DB25 Comms Link Protocol 478 21.3 Cheat Devices - Datel Chipset Pinouts 479 21.4 Cheat Devices - Datel Cheat Code Format 482 21.5 Cheat Devices - Xplorer Memory and I/O Map 484 21.6 Cheat Devices - Xplorer DB25 Parallel Port Function Summary 485 21.7 Cheat Devices - Xplorer DB25 Parallel Port Command Handler 486 21.8 Cheat Devices - Xplorer DB25 Parallel Port Low Level Transfer Protocol 488 21.9 Cheat Devices - Xplorer Versions 491 21.10 Cheat Devices - Xplorer Chipset Pinouts 492 21.11 Cheat Devices - Xplorer Cheat Code Format 495 21.12 Cheat Devices - Xplorer Cheat Code and ROM-Image Decryption 496 21.13 Cheat Devices - FLASH/EEPROMs 497 22. PSX Dev-Board Chipsets 501 23. Hardware Numbers 509 24. Pinouts 518 24.1 Pinouts - Controller Ports and Memory-Card Ports 519 24.2 Pinouts - Audio, Video, Power, Expansion Ports 520 24.3 Pinouts - SIO Pinouts 522 24.4 Pinouts - Chipset Summary 525 24.5 Pinouts - CPU Pinouts 529 24.6 Pinouts - GPU Pinouts (for old 160-pin GPU) 530 24.7 Pinouts - GPU Pinouts (for new 208-pin GPU) 532 24.8 Pinouts - SPU Pinouts 535 24.9 Pinouts - DRV Pinouts 539 24.10 Pinouts - VCD Pinouts 543 24.11 Pinouts - HC05 Pinouts 547 24.12 Pinouts - MEM Pinouts 551 24.13 Pinouts - CLK Pinouts 554 24.14 Pinouts - PWR Pinouts 556 - 7/663 - Table of contents 24.15 Pinouts - Component List and Chipset Pin-Outs for Digital Joypad, SCPH-1080 558 24.16 Pinouts - Component List and Chipset Pin-Outs for Analog Joypad, SCPH-1150 560 24.17 Pinouts - Component List and Chipset Pin-Outs for Analog Joypad, SCPH-1200 563 24.18 Pinouts - Component List and Chipset Pin-Outs for Analog Joypad, SCPH-110 567 24.19 Pinouts - Component List and Chipset Pin-Outs for Namco Lightgun, NPC-103 571 24.20 Pinouts - Component List and Chipset Pin-Outs for Multitap, SCPH-1070 572 24.21 Pinouts - Memory Cards 575 24.22 Mods - Nocash PSX-XBOO Upload 577 24.23 Mods - PAL/NTSC Color Mods 579 25.