This commit is contained in:
jaby 2024-06-14 20:58:57 +02:00
parent f74be026e0
commit 8bda21f045
1 changed files with 7 additions and 1 deletions

View File

@ -155,7 +155,13 @@ namespace JabyEngine {
void data_ready_handler(uint32_t data) {
while(true) {
printf("Data: %i\n", data);
if(current_state == State::XAMode) {
if(data == CD_IO::Interrupt::DataReady) {
printf("Scree...\n");
IRQ::resume_at0(BCDTimeStamp::from(221));
NewCommand::send(CD_IO::Command::ReadS);
}
}
data = Callback::internal::CD::resume();
}
}