From a2c864ccd46aa49ae166d7ff292fa59248265634 Mon Sep 17 00:00:00 2001 From: gameblabla Date: Sat, 25 Sep 2021 15:32:27 +0200 Subject: [PATCH] Fix CdlGetTD according to Mednafen's implementation. --- libpcsxcore/cdrom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index eaae938a..edd6c045 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -820,7 +820,9 @@ void cdrInterrupt() { cdr.Result[0] = cdr.StatP; cdr.Result[1] = itob(cdr.ResultTD[2]); cdr.Result[2] = itob(cdr.ResultTD[1]); - cdr.Result[3] = itob(cdr.ResultTD[0]); + /* According to Nocash's documentation, the function doesn't care about ff. + * This can be seen also in Mednafen's implementation. */ + //cdr.Result[3] = itob(cdr.ResultTD[0]); } break; -- 2.39.5