New concept for IOPorts

This commit is contained in:
2023-03-14 22:33:49 +01:00
parent d8e7772ee5
commit 46aedaa067
3 changed files with 34 additions and 5 deletions

View File

@@ -16,7 +16,17 @@ namespace JabyEngine {
void setup() {
__syscall_EnterCriticalSection();
Memory_IO::COM_DELAY.write(Memory_IO::COM_DELAY::SetupValue);
Memory_IO::COM_DELAY.setup();
Memory_IO::COM_DELAY.setup();
Memory_IO::COM_DELAY.setup();
Memory_IO::COM_DELAY_t b{Memory_IO::COM_DELAY.value};
b.setup();
b.setup();
b.setup();
//Memory_IO::COM_DELAY.write(Memory_IO::COM_DELAY::SetupValue);
Memory_IO::CD_DELAY.write(Memory_IO::CD_DELAY::SetupValue);
__syscall_SysEnqIntRP(CdromIoIrq, &::JabyEngine::CD::internal::callback);