diff cdimage.c @ 2142:d9151d0894c7

Fix some CD-ROM emulation issues
author Michael Pavone <pavone@retrodev.com>
date Thu, 24 Mar 2022 23:43:43 -0700
parents 6d0de02a068a
children 67f20f9188b0
line wrap: on
line diff
--- a/cdimage.c	Tue Mar 22 20:20:25 2022 -0700
+++ b/cdimage.c	Thu Mar 24 23:43:43 2022 -0700
@@ -124,10 +124,10 @@
 
 static uint8_t fake_read(uint32_t sector, uint32_t offset)
 {
-	if (!offset || (offset >= 16)) {
+	if (!offset || offset == 11 || (offset >= 16)) {
 		return 0;
 		//TODO: error detection and correction bytes
-	} else if (offset < 12) {
+	} else if (offset < 11) {
 		return 0xFF;
 	} else if (offset == 12) {
 		uint32_t minute = (sector / 75) / 60;