Using new IO Port
This commit is contained in:
@@ -33,15 +33,7 @@ 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();
|
||||
@@ -50,7 +42,7 @@ namespace SPU {
|
||||
clear_voice(voice);
|
||||
}
|
||||
|
||||
io_class__update_with(DataTransferControl::Register, (2 << 1));
|
||||
DataTransferControl::Register = (2 << 1);
|
||||
enable_control();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user