gba/apu/apu.hpp
raw| 1 | struct APU : Thread, MMIO { |
| 2 | #include "registers.hpp" |
| 3 | |
| 4 | static void Enter(); |
| 5 | void main(); |
| 6 | void step(unsigned clocks); |
| 7 | |
| 8 | uint8 read(uint32 addr); |
| 9 | void write(uint32 addr, uint8 byte); |
| 10 | void power(); |
| 11 | |
| 12 | void runsequencer(); |
| 13 | |
| 14 | void serialize(serializer&); |
| 15 | }; |
| 16 | |
| 17 | extern APU apu; |