WolPSX
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
BIOS Class Reference

Class to emulate the BIOS. More...

#include <bios.hpp>

Public Member Functions

 BIOS (std::string path)
 Construct a new BIOS:: BIOS object.
 
uint32_t read32_cpu (uint32_t offset)
 Reads a 32-bit word from the BIOS.
 
uint8_t read8_cpu (uint32_t offset)
 Reads a 8-bit word from the BIOS.
 

Private Attributes

std::vector< uint8_t > data
 Data of the BIOS.
 

Detailed Description

Class to emulate the BIOS.

Implements the BIOS of the PSX.

Definition at line 15 of file bios.hpp.

Constructor & Destructor Documentation

◆ BIOS()

BIOS::BIOS ( std::string path)

Construct a new BIOS:: BIOS object.

Parameters
pathPath to the BIOS file
Exceptions
std::runtime_errorIf the BIOS size is invalid

Definition at line 12 of file bios.cpp.

Member Function Documentation

◆ read32_cpu()

uint32_t BIOS::read32_cpu ( uint32_t offset)

Reads a 32-bit word from the BIOS.

Parameters
offsetOffset to read from
Returns
uint32_t Data read

Definition at line 40 of file bios.cpp.

◆ read8_cpu()

uint8_t BIOS::read8_cpu ( uint32_t offset)

Reads a 8-bit word from the BIOS.

Parameters
offsetOffset to read from
Returns
uint8_t Data read

Definition at line 54 of file bios.cpp.

Member Data Documentation

◆ data

std::vector<uint8_t> BIOS::data
private

Data of the BIOS.

Definition at line 27 of file bios.hpp.


The documentation for this class was generated from the following files: