Fix CDXA sector count bug

This commit is contained in:
Jaby
2024-05-26 17:03:42 +02:00
committed by Jaby
parent 5319ede54c
commit 7966f5794b
4 changed files with 38 additions and 26 deletions

View File

@@ -33,7 +33,6 @@ namespace JabyEngine {
Command::send_wait<CD_IO::PortIndex0>(CD_IO::Command::SetLoc, loc.get_min_cd(), loc.get_sec_cd(), loc.get_sector_cd());
Command::send<CD_IO::PortIndex0>(desc);
current_state = State::Reading;
printf("Done??\n");
}
static void read_sector_dma(CD_IO::DataSector& sector) {
@@ -160,7 +159,6 @@ namespace JabyEngine {
}
void read_s(uint32_t lba) {
printf("Now ReadS %i\n", lba);
read_cd(lba, CD_IO::Command::ReadS);
}