Using new IO Port

This commit is contained in:
Jaby
2022-08-31 23:02:40 +02:00
parent f056972b15
commit bcb6191431
3 changed files with 9 additions and 16 deletions

View File

@@ -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();
}
}