From 9fcaeb719c678466321c113d1bc3d1fe8468fdc3 Mon Sep 17 00:00:00 2001 From: kalymos Date: Wed, 25 Feb 2026 22:26:48 +0100 Subject: [PATCH] Optimized Sector Filtering: --- PSNee/.settings.h.kate-swp | Bin 77 -> 0 bytes PSNee/PSNee.ino | 10 ++-------- 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 PSNee/.settings.h.kate-swp diff --git a/PSNee/.settings.h.kate-swp b/PSNee/.settings.h.kate-swp deleted file mode 100644 index ecf0c537eeb53137db333f179899f89c175fe8e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 77 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?VnSyU6~G^sZwXW3m5cY{Fldc{i<%YuV| TGJ!xW2E^j7!JbH5Mq^h15kL`2 diff --git a/PSNee/PSNee.ino b/PSNee/PSNee.ino index b81f684..f1af915 100644 --- a/PSNee/PSNee.ino +++ b/PSNee/PSNee.ino @@ -6,7 +6,7 @@ // MCU // Arduino //------------------------------------------------------------------------------------------------ -#define ATmega328_168 // Nano, Pro Mini, Uno +//#define ATmega328_168 // Nano, Pro Mini, Uno //#define ATmega32U4_16U4 // Micro, Pro Micro //#define ATtiny85_45_25 // ATtiny @@ -23,7 +23,7 @@ //#define SCPH_xxx1 // NTSC U/C | America. //#define SCPH_xxx2 // PAL | Europ. //#define SCPH_xxx3 // NTSC J | Asia. -#define SCPH_5903 // NTSC J | Asia VCD. +//#define SCPH_5903 // NTSC J | Asia VCD. // Models that require a BIOS patch. @@ -470,7 +470,6 @@ void Init() { Serial.begin(500000); // 60 bytes in 12ms (expected data: ~26 bytes / 12ms) // update: this is actually quicker #endif - board_detection(); } @@ -500,11 +499,6 @@ int main() { While the laser lens moves to correct for the error, they can pick up a few TOC sectors. -------------------------------------------------------------------------------*/ - //This variable initialization macro is to replace (0x41) with a filter that will check that only the three most significant bits are correct. 0x001xxxxx - //uint8_t isDataSector = (((scbuf[0] & 0x40) == 0x40) && - // (((scbuf[0] & 0x10) == 0) && - // ((scbuf[0] & 0x80) == 0))); - // Optimized Sector Filtering: // Masking bits 7, 6, and 4 simultaneously using 0xD0 (binary 11010000). // This verifies that the "Data/TOC" bit (0x40) is SET, while bits 7 and 4 are CLEARED.