Sony Playstation

Inside the PlayStation BIOS

Edit on Github | Updated: 5th December 2026

The Sony PlayStation BIOS is the firmware built into the console. It brings the hardware up from reset, runs the startup screens and built-in menus, loads the game from disc, and supplies routines that games can call after boot.

Press Power with a game in the drive. By the time the publisher’s logo appears, the console has already run a miniature operating system, played a tune, and read enough of the disc to find and launch a program. The US SCPH-5501, with BIOS v3.0, is our specimen. Gage Marshall’s PlayStation BIOS decompilation lets us follow the code from the first instruction to the handoff 1.


Pocket glossary

Four terms explain where the code lives and which part of the BIOS is in charge.

Term Meaning
ROM Read-only memory. The chip that stores the firmware when the console is off.
RAM Working memory. The BIOS copies some of its code here and loads the game here too.
Kernel The BIOS code that handles low-level jobs such as interrupts, events, and device access.
Shell The part of the BIOS that draws the startup screens and runs the built-in menu.

Power on at BFC00000

The first instruction comes from ROM. At reset the MIPS processor starts at virtual address 0xBFC00000, an uncached mapping of the firmware chip. The reset code sets the timing for ROM accesses and jumps to early startup code that configures the memory controller, cache, and RAM 2.

Original PlayStation motherboard with numbered labels marking its main components

Chip 2 in this annotated motherboard image holds the firmware. The MIPS processor, marked 1, fetches the first instructions from it. Image and component key.

Three jobs, three addresses

The BIOS contains code that runs from the chip and code that gets copied into working memory. These are the SCPH-5501’s landmarks 1 3.

Code Address Job
ROM routines 0xBFC00000 Reset, the boot loader, and routines for devices such as the CD drive and memory cards.
Kernel image 0x00000500 Low-memory code for dispatching calls and handling exceptions.
Shell 0x80030000 The startup presentation, disc checks, memory card manager, and CD player.

The addresses in the table tell you where code executes. For instance, the SCPH-5501 stores its shell at offset 0x18000 in the ROM image and runs it at 0x80030000 in RAM. Starting with BIOS v4.0, the project documents compressed shells that must be unpacked at boot 3.


Where do the two startup logos come from?

Switch on an SCPH-5501 with the lid open. You still get the orange Sony Computer Entertainment diamond and its chime. The multicoloured PlayStation mark on black is a second scene, and that one needs a game disc. The same shell runs both presentations 4.

Sony wordmark and orange Sony Computer Entertainment diamond on the first PS1 startup screen

The first screen uses artwork in the BIOS. Frame from the reconstruction project demonstration, whose changes affect the second screen.

PlayStation mark and regional licence text against a black background

The second screen as printed in the Sony SCPH-5501 manual, p. 8.


First logo - the console can make it on its own

The shell initializes the sound mixer, opens its built-in sound bank, and runs the Sony logo sequence. The artwork is stored in the BIOS as TIM images, the PlayStation’s native texture format. The logo routine builds the display and advances the jingle as it draws frames. The shell starts checking the disc after this sequence, which explains why the familiar opening plays even with an empty drive 3 4 5.


How the BIOS plays the startup chime

The shell opens a VAB sound bank containing the sounds it needs for startup. A separate list says when to play each note, which sound to use, and how loud and where in the stereo field to play it. At tick zero the first list triggers two notes together. At tick 30 it sends the same notes with zero volume to release them. As the logo scene advances, the shell sends the due commands to the sound processing unit. A second list accompanies the PlayStation logo 4 5 6.

PAL timing. The sound scripts count video updates. On a 50 Hz PAL system there are five updates for every six on a 60 Hz NTSC system. The shell multiplies the scheduled ticks in both scripts by five and divides by six, rounding down. The tick-30 release becomes tick 25, so it still falls about half a second into the sequence. The change is in the note schedule. The shell still plays the samples from the sound bank 4 6.


Second logo - the disc supplies the model

After the CD controller identifies a licensed disc, the shell reads the licence text from sector 4 and the logo data starting at sector 5. The intro routine unpacks a TMD polygon model from those disc bytes and renders the coloured PlayStation mark. The shell supplies the rendering code, the bitmap wordmark, and the sound. It draws the licence text from the disc alongside those pieces 4 7 8.

The second logo is a useful milestone. At that point the shell has read the disc’s startup material and run its logo scene. The ROM loader takes over after the shell returns. Finding and loading the game’s executable is the next job 4 9.

%%{init: {"htmlLabels": false}}%%
flowchart TD
  A["Shell draws Sony logo"] --> B["Check the disc"]
  B -->|Menu or CD player| C["Shell keeps running"]
  C -->|Disc changes| B
  B -->|Game accepted| D["Shell draws PlayStation logo"]
  D --> E["ROM finds the boot file"]
  E --> F["Run the game"]

From spinning disc to running game

Once the shell has accepted a game disc and returned to the ROM boot code, the firmware still needs to find a program. For the retail path we’re following, it looks for SYSTEM.CNF;1 in the disc root. The file’s BOOT setting supplies the executable path. If the setup file is missing, the loader falls back to PSX.EXE;1 9 10.

Three settings hiding below BOOT

Here is the actual SYSTEM.CNF from the PlayStation build of REDRIVER2, a community project. Its disc build uses this file to launch DRIVER2.EXE 11.

BOOT = cdrom:\DRIVER2.EXE;1
TCB = 4
EVENT = 10
STACK = 801ffff0

The loader reads the three settings below BOOT as hexadecimal numbers, even without a 0x prefix. It uses them to configure the kernel and the game’s first stack 9 12.

Setting What the BIOS does
TCB = 4 Allocates four task control blocks, the records the kernel uses to track threads.
EVENT = 10 Allocates 16 event records. 10 in hex is 16 in decimal, and the BIOS itself uses entries for CD operations.
STACK = 801ffff0 Passes 0x801FFFF0 to the executable launcher as the initial stack address, 16 bytes below the end of the 2 MiB main RAM range.

The stack address and the program’s entry point serve different jobs. The address from STACK tells the processor where its stack starts. The entry point from the EXE header tells it which instruction to execute first 9 13.


The file tells the loader where to put it

The boot program uses the PS-X EXE format. The loader reads the first 0x800 bytes as a header and takes the destination address and payload size from that header. It reads the payload into RAM at the specified address and flushes the cache before execution. The boot code sets the stack address from the boot configuration, and Exec sets up registers before calling the program’s entry point 9 13.

File Lab shows an initial PC of 0x80010040 and a separate load destination of 0x80010000

An example PS-X EXE in File Lab, made for this article. The program begins 64 bytes into the loaded payload.

Try it on a disc you know

Open a disc image you own in File Lab and find the SYSTEM.CNF boot line in the Disc tab. Follow the BOOT path to the corresponding file and open its Executable tab. Look for the initial program counter and the load address. One tells the processor where to begin executing. The other tells the BIOS where to put the payload.


What happens when boot fails?

The last screen you saw tells you which code had a chance to run. On the SCPH-5501, most early disc problems leave the shell in control. A failure after the PlayStation logo can belong to the game loader 4 9.

When the shell keeps control

The shell tracks whether the lid is open, whether the disc has been identified, and whether the drive reports a licensed game or an audio CD. Those flags steer the menu as well as the boot sequence 4 14.

PlayStation main menu beside the screen requesting a PlayStation CD-ROM

The manual shows two different outcomes after the Sony opening. Left, the main menu. Right, the screen for an unplayable disc. Sony SCPH-5501 manual, p. 8.

What the console finds What the shell does
Lid open or no identifiable disc Shows the main menu. The memory card manager is available with an empty drive.
Audio CD with a readable track table Opens the CD player so you can select and play tracks.
Disc identified as neither a licensed game nor an audio CD Selects the screen asking for a PlayStation CD-ROM.
Game identified, then a read fails during the logo check Clears the licensed-disc state and falls back to the menu loop, which can check the drive again.

The menu is still a running program. The memory card manager reads save directories and headers, builds labels, and draws icons from the saves themselves. Copying can advance over successive frames while the shell keeps updating the display 4 15.


When the logo appears but the game never starts

The loader still needs a readable boot file after the PlayStation logo. If the ROM loader cannot open the chosen file or read its full header, the boot code reports 0x38A through its system error routine. A missing SYSTEM.CNF has its own fallback to PSX.EXE;1. The logo tells you the shell reached its second scene. The executable can still fail to load afterward 9 13.


What games call after boot

A game can still call firmware routines for jobs such as file access, memory card operations, event handling, and basic C library functions. The BIOS gives callers three fixed entry points in low RAM, at 0xA0, 0xB0, and 0xC0. A call stub puts a function number in the MIPS register $t1 and jumps to the appropriate entry. The dispatcher uses that number to look up the target routine 16.

That gives a disassembler a useful clue. A jump to 0xA0 with $t1 set to 0x43 identifies the Exec service. Look for the register assignment in the jump’s delay slot too. The MIPS processor executes the instruction in that slot before entering the dispatcher 13 16.

Drawing of two memory cards aligned with the console front slots

The two card slots have separate device names. The first is bu00: and the second is bu10:. Sony SCPH-5501 manual, p. 10.


How does the BIOS tell a game something happened?

A CD read finishes. The display reaches vertical blank. A timer reaches its target. Each can raise a hardware interrupt, which gets the processor’s attention. An event is the kernel’s way of passing news about a condition on to software that asked for it 17 18.

Ask for the news you want

Software calls OpenEvent with a class and a specification. Think of the class as the source, such as the CD subsystem, and the specification as the kind of news, such as data ready or command complete. The BIOS creates an entry and gives the caller a handle. EnableEvent makes that entry eligible to receive notifications 17 18.

Vertical blank is a good example. When the display reaches the interval between refreshes, the BIOS handler checks the corresponding interrupt and delivers a vertical-blank event. The dispatcher looks for enabled entries with the matching class and specification. What happens next depends on how each entry was opened 17.

%%{init: {"htmlLabels": false}}%%
flowchart TD
  A["Display reaches vertical blank"] --> B["BIOS handles the interrupt"]
  B --> C["Match the event entry"]
  C --> D["Call the registered function"]
  C --> E["Mark the event ready"]
  E --> F["TestEvent checks and clears it"]

Call me now, or leave a flag

For a callback event, the BIOS calls the registered function when it delivers the notification. For a polling event, it marks the entry ready. TestEvent checks that flag and clears it if it was set, so the same notification won’t be reported on the next check. A ready entry holds one pending notification. If another matching event arrives before you check it, the flag still just says “ready” 17.

The CD driver in the loading-screen walkthrough uses the flag route. It opens separate events for data ready, completion, and errors, then tests them while a read is in progress. That lets one read routine distinguish “the drive has reported progress” from “the drive hit a problem” 18.


What happens behind a loading screen?

Imagine a game asking for the next room’s data through the BIOS cdrom: device. The firmware’s CD filesystem looks up the path in the disc directory and remembers the first sector and the file size. If the game leaves off the version suffix, the BIOS appends ;1, the same suffix you see on names in File Lab 18.

This sketch follows a read through the BIOS CD filesystem 18.

%%{init: {"htmlLabels": false}}%%
flowchart TD
  A["Game opens a file"] --> B["Find its first sector"]
  B --> C["Read into the game buffer"]
  C --> D["BIOS checks drive events"]
  D --> E["Return the file bytes"]

For this BIOS file API, the read offset and requested byte count must line up on 2,048-byte boundaries. The firmware adds the file’s current position in sectors to the starting sector, then starts a transfer into the game’s RAM buffer. Internally the driver checks events for completion, data ready, and errors or a timeout. The game gets a byte count back from the read call. The loading screen itself is the game’s job 18.


What happens when you press Cross?

Hold Cross on a digital pad. The controller has changed a bit in the reply it will send the next time the console asks for button state. With BIOS pad polling enabled, the kernel asks around vertical blank, the interval between screen refreshes 19.

Sony digital controller with a D-pad, Start and Select, and four face buttons

The digital pad in the manual. Cross is the bottom button in the right-hand cluster. Sony SCPH-5501 manual, p. 12.

From the controller cable to a game buffer

A game using this BIOS service gives InitPAD2 a reply buffer for each port and calls StartPAD2 to install the interrupt handler. The handler selects a port, sends a poll command over the serial interface, and saves the reply in the game’s buffer in RAM. It repeats the poll for the other port 20 19.

Here’s what to look for in the buffer after a poll with a standard digital pad 19.

Part Meaning
Status byte The BIOS writes 0x00 for a successful poll or 0xFF if the poll fails.
Controller ID A standard digital pad replies with 0x41.
Button bytes Two bytes carry the current state. A pressed button clears its bit in the raw reply.

The buffer answers “is Cross down?” A game can compare the latest state with the previous one to answer “did Cross just go down?” That distinction is what lets one press make a single menu selection while a held button can keep moving a character 19 21.


You can use a mouse in the PlayStation menu

You can click your way through the PlayStation memory card manager or CD player with Sony’s optional SCPH-1090 Mouse. It plugs into a controller port. On the SCPH-5501, the same shell that reads the pad can move a pointer across the screen and work out which menu button you clicked 22 23.

Original two-button Sony PlayStation Mouse with its controller-port cable

The PlayStation Mouse uses a controller port. Photo by Tom Gaudasinski, public domain via Wikimedia Commons.

A digital pad reports which buttons are down. The mouse reply has its own device ID, 0x12, and includes how far the mouse moved horizontally and vertically since the last poll. The shell uses those two values to move the pointer. It checks the pointer against the on-screen buttons to turn a click into a menu action. Behind both controls is the same polling mechanism, with a different reply for each device 19 23.


What the BIOS does with a memory card

The card driver works with files and sectors. The built-in manager uses that same storage to draw save icons, display titles, and copy files between cards 15 24.


Follow a save from the game to the card

Suppose a game has opened a save on the first memory card through the bu00: device. It can pass the resulting file descriptor, a buffer, and a byte count to write. BIOS entry B(35h) reaches the kernel file routine, which looks up the open file and passes the request to the memory-card driver’s write handler 20 24.

The card driver translates the file offset into card sectors and works in 128-byte chunks. A synchronous write waits for those transfers and returns the byte count on success. With an asynchronous file, the driver starts a transfer, keeps track of the sectors left, and advances the work as card events arrive. On completion it delivers an event the game can use to finish its save flow. The game’s byte buffer becomes a series of card operations through the same BIOS interface that exposes files 24 17.


Why does the save icon move?

Open the memory card manager with a game finished for the day and a save icon can still be doing its little dance. The save file carries the artwork. The BIOS shell reads it, uploads it, and runs the animation as part of its own menu 15 25.

Three enlarged blue and pink wave frames for the Sound Scope save icon

The three 16 by 16 frames that Sound Scope can write to a save. The pixels are enlarged and use the saved palette.

A tiny flipbook in the save file

The card manager reads the start of the save for its title and icon data. A header byte tells it whether to expect one, two, or three frames. Each frame is 16 by 16 pixels, with four bits per pixel. That’s 128 bytes per frame, and all the frames share a 16-colour palette. The pixel values select colours from that palette 15 25.

The shell turns the frames into sprites and puts them in one menu object’s animation list. Its regular frame loop advances the animation and draws the current sprite at the same spot. With just one picture, the sprite stays still. For a save made by the BIOS itself, look at Sound Scope on a compatible PAL v4.1 or later console. Its recorder writes a palette and three wave tiles into the save header, ready for the memory card manager to play back as an icon 15 26 25.


Where do Japanese save titles get their letters?

A save title stores character codes in Shift-JIS. When you highlight a save, the card manager passes its title to a font renderer. The renderer works out where each character’s bitmap lives in the BIOS ROM, reads the pixels, and assembles a label texture to draw under the card grid 15 27.

Enlarged one-bit bitmap of the hiragana character a from the PlayStation BIOS

Hiragana a, Shift-JIS 82 A0, drawn from the SCPH-5501 font bytes. The 16 by 15 pixel grid is enlarged ten times.

The glyph above occupies 30 bytes, with two bytes per row for 15 rows. Software can also use the BIOS service Krom2RawAdd to find a glyph by its character code. The save brings the text and the firmware brings the shapes, so every game using the card manager gets the same lettering 27.


What does Copy All actually copy?

Copy All works from the selected card’s list of saves. On the SCPH-5501, the memory card manager looks for save files whose names are absent from the destination card. It counts their blocks and starts the batch only if they fit in the destination’s 15-block capacity. If the other card already has a file with the same internal name, that save is skipped 15 22.

PlayStation memory card screen with two card grids, save icons, and the Copy All command

The two cards appear side by side. The moving icons double as progress cues while the shell copies the saves. Sony SCPH-5501 manual, p. 10.

Each selected save is copied as a file, including the title, icon, and game data. The shell creates a temporary file on the destination and transfers the data in 128-byte steps. Once a file is complete, the shell renames it to the save’s original name. The frame loop keeps drawing the two grids while it advances the copy, which is how the BIOS can show icons moving across the screen while the card is busy 4 15.


Storage sidebar - what formatting a memory card writes

Format a card and the BIOS gives it the layout the save manager expects. It writes an MC header, marks 15 directory entries free, and initializes an empty bad-sector replacement list. The firmware writes checksums for those management records. The card menu can then show 15 free blocks because the directory says they are available 24 22.

The diagram shows the management records that the format routine writes 24.

%%{init: {"htmlLabels": false}}%%
flowchart TD
  A["Frame 0 - MC header"] --> B["Frames 1-15 - free entries"]
  B --> C["Frames 16-35 - empty remap list"]

Formatting replaces the directory that tells the BIOS where the saves are. The routine writes those management frames and leaves the save data area alone. The menu shows an empty card because there are no allocated directory entries to follow 24.


How do memory cards handle bad sectors?

A PlayStation save is written in 128-byte sectors. When the card reports a bad sector during a write, the BIOS driver can put the data into a spare sector and record the substitution on the card. It keeps a list of replacements for each card and checks that list before reading or writing a sector 24.

In this simplified example, the save still refers to the original sector. The driver redirects the access to the spare 24.

%%{init: {"htmlLabels": false}}%%
flowchart TD
  A["Save asks for sector 80"] --> B["Check the card's remap list"]
  B -->|No entry| C["Read sector 80"]
  B -->|80 maps to 36| D["Read spare sector 36"]

There are 20 replacement slots. The driver writes the data to a spare first, then writes a record of the mapping with a checksum. If there is no spare it can use, the write can fail. A successful replacement keeps the bad sector out of the way without changing the save’s name or where it appears in the memory card menu 24.


How does the PlayStation play audio CDs?

Put a music CD in a PlayStation and the shell can turn into a CD player. The shell keeps track of what you selected and tells the drive what to do. The drive handles audio playback, while the sound chip controls what comes out of the speakers 4 28 29.

Sony CD player screen with transport buttons, track numbers, playback modes, and elapsed time

The US SCPH-5501 CD player. The transport and timer sit beside the track grid. Sony SCPH-5501 manual, p. 12.

From the Play button to the speakers

The player reads the disc’s table of contents to find the track range and builds a play order. Choose a track and the shell sends a play command for that track to the CD controller. As the disc plays, position reports from the drive let the shell update the track number and clock on screen. Shuffle and programmed play change the shell’s track list, and Pause sends a command back to the drive 28.

The drive’s audio goes into the PlayStation sound chip. On shells with the reverb panel, choosing Hall or Church changes the sound chip’s reverb preset. The disc keeps playing the same track while the sound chip changes how it sounds. On compatible v4.x consoles, Sound Scope can also copy samples from the sound chip’s capture buffers and use them to drive the graphics while the music keeps playing 26 29.


What happens when you open the lid mid-song?

Start an audio CD, then press Open while it plays. The music cuts out, but the shell is still running. When the CD controller reports the lid open, the player clears pending drive commands, drops the old disc state, and resets the controls and track display 28.

Sony instruction drawing showing the open PlayStation disc lid, disc spindle, and front Open button

The top-loading drive and Open button in Sony’s illustration. After pressing Open, let the disc stop before lifting it off the spindle. Sony SCPH-5501 manual, p. 8.

Close the lid and the shell can ask the drive to identify the disc again. An audio CD gets a fresh track list. An accepted game can take the shell down the game boot route. The old song position belongs to the disc that was playing before the lid opened 4 14 28.


The CD player hides a visualizer

Put an audio CD in a compatible v4.x console and press Select from the CD player. Sound Scope takes over the frame loop. The firmware copies samples from the sound chip’s capture buffers for the graphics, and the controller lets you change the display while the music plays 3 26.

There’s even a replay feature. Cross + R1 records your controller input and Cross + L1 plays it back. You can save the sequence with Cross + R2 and load it with Cross + L2. The memory card holds your button choreography, so bring the audio CD again when you want to replay the show 26.


The model that plays movies

The SCPH-5903 is a branch of the v2.2 family sold in Hong Kong and Taiwan. Its shell can recognise a Video CD and call a playback module that talks to the console’s Video CD decoder. That means two consoles that both report v2.2 can offer different things when you close the lid on a movie disc 1 3.

RyanUKAus shows the white SCPH-5903, demonstrates its Video CD software on original hardware, and compares it with an aftermarket adapter.


What changed across PlayStation BIOS revisions?

Take the game out of a PlayStation and the firmware has the whole screen to itself. On an early Japanese console that means labelled buttons and a green cursor. On a late PS one, the menu has a different set of icons, and the CD player can turn music into animated graphics. The shell is where most of these differences show up 1 3.

Original Sony startup wordmark tiles from SCPH-5501 BIOS v3.0 and SCPH-7000 BIOS v4.0

The original wordmark tiles shown at the same scale. The SCPH-7000 uses the smaller tile. BIOS artwork sources.

Five stops through the system menu

These examples compare specific models. The two v3.0 entries show how much could change between regions even at the same version number 1 3 5.

Model and BIOS What you see or can do
SCPH-1000, Japan, v1.0 Japanese text on the menu buttons and a green cursor. The memory card manager and audio CD player are already there.
SCPH-5501, US, v3.0 English menu artwork. This is the console used in the boot walkthrough above.
SCPH-5502, Europe, v3.0 Icons take the place of text on the main menu buttons. The CD player has a panel for reverb effects.
SCPH-7000, Japan, v4.0 The first boot screen gets smaller grey artwork. The CD player gains a Sound Scope visualizer.
SCPH-101, US PS one, v4.4 or v4.5 The compact PS one has redesigned CD player and memory card icons. It keeps Sound Scope.

Hardware sidebar - the rear expansion port

Flip an early PlayStation around and look for the wide socket marked Parallel I/O. An accessory connected there could carry its own ROM. On the SCPH-5501 boot path, the firmware checks for supported expansion code at two points. It can call an early entry before the normal CD boot routine, and it checks for a separate expansion entry after the built-in shell returns, before looking up the game’s boot file 9.

Rear panels of three PlayStation revisions, with wide Parallel I/O sockets on the middle and bottom consoles

From top to bottom, SCPH-9001, SCPH-5001, and SCPH-1001. The wide Parallel I/O socket is at the left on the two lower models. The top console still has the smaller Serial I/O socket. Evan-Amos, CC0, via Wikimedia Commons.


What fits on a 512 KiB BIOS chip?

The SCPH-5501’s BIOS ROM holds 524,288 bytes. That’s 512 KiB, enough room for the boot and kernel routines, the menus, their artwork, a sound bank, and a bitmap font. The specialised SCPH-5903 Video CD model has a 1 MiB ROM window, so the chart below sticks to the SCPH-5501 1 2 30.

SCPH-5501 BIOS ROM

524,288 bytes (512 KiB)

Boot and kernel region
98,304 B
Shell code and libraries
175,168 B
Menu and logo images
59,564 B
Startup sound bank
47,744 B
Font region
114,688 B
Other shell data and padding
28,820 B

Share of the SCPH-5501 ROM occupied by each category. The boot and kernel region includes its own data and padding. The image count uses stored bytes for the 15 texture assets, including packed images.

The boot and kernel region takes the first 96 KiB. The shell follows it and mixes executable code with artwork, sound, and tables. Finally, the font region takes 112 KiB at the end of the chip. It occupies nearly twice the space of the 15 stored menu and logo textures, and the save title renderer can read glyphs straight from it 3 27 30.


How much was written in C?

On the US SCPH-5501, about 93% of the mapped code bytes belong to C-labelled ranges and 7% to assembly-labelled ranges. Most of the menu, CD driver, memory card logic, and kernel services fall on the C side. Assembly shows up at the places where the firmware deals most directly with the machine, from the first instructions at reset and exception entry to BIOS call stubs and some geometry routines 30.

C and assembly in the SCPH-5501 ROM map

258,048 bytes (252 KiB)

C-labelled ranges
239,392 B
Assembly-labelled ranges
18,656 B

Estimate by mapped byte range. Separately labelled data and the font are outside this count. Some code ranges contain tables or padding. The labels describe the reconstructed build and give an approximate view of Sony’s source split.

The two coloured segments add up to 258,048 bytes. That is the span of the ROM map’s C and assembly ranges across the boot, kernel, and shell. Sony’s original source split is unknown 30.


Count routines instead of bytes

The same SCPH-5501 build has 1,294 counted functions. These are the text symbols the reconstruction’s progress tool counts in the linked objects. Splitting the shell at its library objects shows how much work sits behind the menu itself 1 31.

Part of the BIOS Functions What the code does
Boot and resident ROM code 325 Reset, the game loader, ROM routines, and device drivers.
RAM kernel 190 Exceptions, events, file I/O, and controller services.
Shell application 358 Startup screens, the memory card manager, and the CD player.
Shell libraries and call stubs 421 Graphics, geometry, sound, disc access, and calls back into the BIOS.
Total 1,294 The three code regions in the SCPH-5501 build.

The 421 library and stub routines include 119 in geometry, 102 in graphics, 65 in CD access, and 52 BIOS call stubs. Sound and the other support libraries account for the rest 3 31.


What compiler did Sony use?

Sony used the MIPS 2.11 C compiler shipped with NEWS-OS 4.2.1R on its NEWS workstations. The compiler produced MIPS instructions from the C, and the toolchain’s assembler built the hand-written routines. The reconstruction uses the same compiler to check that its output matches the SCPH-5501 ROM byte for byte 1 31.


How do you know the reconstruction matches?

The decompilation project reports byte-for-byte builds for 25 BIOS images, from the DTL-H2000 development board to the PS one’s v4.5. It checks each complete output against its expected SHA-1 hash. The published progress percentage measures functions rebuilt with matching C or assembly 1.

Matching the full image and matching every C function are separate milestones. Where a C reconstruction still produces different instructions, the build assembles the original instruction words from the project’s assembly files. That lets the complete ROM match while those C drafts are still being refined 1.


References

  1. Gage Marshall, PlayStation BIOS decompilation README. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10

  2. Reset vector and early hardware initialization. ↩ ↩2

  3. Decompilation notes on the shell layout and assets. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9

  4. Shell initialization, disc checks, and frame loop. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12

  5. First-logo artwork and renderer. ↩ ↩2 ↩3

  6. Startup note scripts, sound bank, and PAL timing. ↩ ↩2

  7. Shell disc reads and licence checks. ↩

  8. PlayStation logo scene and model unpacker and Wordmark and licence text rendering. ↩

  9. ROM boot and kernel setup. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8

  10. Sony Computer Entertainment Europe, PlayStation Developers Guide, section 5.5.1b. ↩

  11. REDRIVER2 PlayStation disc build SYSTEM.CNF. ↩

  12. Sony Run-Time Library Overview, system designation file and BIOS configuration parser. ↩

  13. Executable loader and Exec implementation. ↩ ↩2 ↩3 ↩4

  14. CD drive status and disc classification. ↩ ↩2

  15. Memory card manager reconstruction. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8

  16. BIOS entry vectors and call-stub convention. ↩ ↩2

  17. Kernel event handling. ↩ ↩2 ↩3 ↩4 ↩5

  18. BIOS CD filesystem, file reads, and drive-event handling. ↩ ↩2 ↩3 ↩4 ↩5 ↩6

  19. BIOS controller polling and reply buffers. ↩ ↩2 ↩3 ↩4 ↩5

  20. Kernel B-table and file call slots. ↩ ↩2

  21. Shell input handling across frames. ↩

  22. Sony SCPH-5501 instruction manual, memory card operation and Copy All. ↩ ↩2 ↩3

  23. Shell mouse packet decoding and menu pointer handling. ↩ ↩2

  24. Kernel file I/O dispatch and Memory card file operations and event delivery. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9

  25. Shell sprite animation and frame updates. ↩ ↩2 ↩3

  26. Sound Scope controls, recording, and memory card save and sound-chip sample capture. ↩ ↩2 ↩3 ↩4

  27. Shell font renderer and BIOS Shift-JIS glyph lookup. ↩ ↩2 ↩3

  28. CD player track order, commands, and position reports. ↩ ↩2 ↩3 ↩4

  29. CD player reverb controls and Shell mixer and reverb presets. ↩ ↩2

  30. SCPH-5501 ROM segment map and stored shell asset inventory. Chart totals use the stored bytes in the listed asset initializers and the ROM segment boundaries. ↩ ↩2 ↩3 ↩4

  31. Function-counting rules and build-symbol method. The counts come from the verified SCPH-5501 v0.9.2 build. Objects under src/shell/lib* were counted separately from the shell application. ↩ ↩2 ↩3