Create new IO Port
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <PSX/System/IOPorts/SPU_IO.hpp>
|
||||
#include <PSX/System/IOPorts/IOPort.hpp>
|
||||
|
||||
namespace SPU {
|
||||
static void clear_main_volume() {
|
||||
@@ -32,7 +33,15 @@ namespace SPU {
|
||||
io_class__update_with(Control::Register, Control());
|
||||
}
|
||||
|
||||
void test() {
|
||||
static __always_inline volatile auto& Dino = *reinterpret_cast<IOPort<uint16_t>*>(0x120);
|
||||
|
||||
while(Dino.is_bit_set(0));
|
||||
}
|
||||
|
||||
void setup() {
|
||||
test();
|
||||
|
||||
clear_main_volume();
|
||||
clear_keys();
|
||||
disable_control();
|
||||
|
Reference in New Issue
Block a user