WolPSX
Loading...
Searching...
No Matches
bios.hpp
1#ifndef BIOS_HPP
2#define BIOS_HPP
3
4#include <stdint.h>
5#include <string>
6#include <vector>
7
8#define BIOS_SIZE 512 * 1024
9
15class BIOS
16{
17public:
18 BIOS(std::string path);
19 uint32_t read32_cpu(uint32_t offset);
20 uint8_t read8_cpu(uint32_t offset);
21
22private:
27 std::vector<uint8_t> data;
28};
29
30#endif
Class to emulate the BIOS.
Definition bios.hpp:16
uint32_t read32_cpu(uint32_t offset)
Reads a 32-bit word from the BIOS.
Definition bios.cpp:40
uint8_t read8_cpu(uint32_t offset)
Reads a 8-bit word from the BIOS.
Definition bios.cpp:54
std::vector< uint8_t > data
Data of the BIOS.
Definition bios.hpp:27
BIOS(std::string path)
Construct a new BIOS:: BIOS object.
Definition bios.cpp:12