1
0
mirror of https://github.com/kalymos/PsNee.git synced 2026-02-27 17:14:06 +00:00

Optimized Sector Filtering:

This commit is contained in:
kalymos
2026-02-25 22:26:48 +01:00
parent 0077acf94f
commit 9fcaeb719c
2 changed files with 2 additions and 8 deletions

Binary file not shown.

View File

@@ -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.