Support Push/Pop in DS

This commit is contained in:
Jaby
2024-06-01 16:37:00 +02:00
parent fb79f6dc8b
commit ee616849c0
6 changed files with 98 additions and 41 deletions

View File

@@ -50,8 +50,8 @@ namespace JabyEngine {
};
namespace IRQ {
void read_sector_to(uint32_t* dst, size_t bytes);
void resume_at(const BCDTimeStamp& cd_time);
void read_sector_to0(uint32_t* dst, size_t bytes);
void resume_at0(const BCDTimeStamp& cd_time);
}
static State read_current_state() {
@@ -67,6 +67,7 @@ namespace JabyEngine {
void enable_CDXA(bool double_speed);
static void pause() {
CD_IO::PortIndex0::change_to();
Command::send<CD_IO::PortIndex0>(CD_IO::Command::Pause);
}
}