From c4a741a2e2e5a7648d7d9bda84ace5ffeb39d1fa Mon Sep 17 00:00:00 2001 From: Giuseppe Tomarchio Date: Wed, 13 Mar 2024 11:54:45 +0100 Subject: [PATCH 1/9] Update PSNee_V8.ino Fixed typo and better organised the indentation of #if for better readability --- PSNee_V8/PSNee_V8.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PSNee_V8/PSNee_V8.ino b/PSNee_V8/PSNee_V8.ino index cea6a86..eeb81c7 100644 --- a/PSNee_V8/PSNee_V8.ino +++ b/PSNee_V8/PSNee_V8.ino @@ -177,15 +177,15 @@ int main() uint16_t highs = 0, lows = 0; #if !defined(UC_ALL) && !defined(PAL_FAT) && !defined(SCPH_103) && \ - !defined(SCPH_102) && !defined(SCPH_100) && !defined(SCPH_7000_9000) && \ - !defined(SCPH_5500) && !defined(SCPH_3500_5000) && !defined(SCPH_3000) && \ - !defined(SCPH_1000) - #error "Console not selected! Please uncoment #define with SCPH model number." + !defined(SCPH_102) && !defined(SCPH_100) && !defined(SCPH_7000_9000) && \ + !defined(SCPH_5500) && !defined(SCPH_3500_5000) && !defined(SCPH_3000) && \ + !defined(SCPH_1000) + #error "Console not selected! Please uncomment #define with SCPH model number." #elif !(defined(UC_ALL) ^ defined(PAL_FAT) ^ defined(SCPH_103) ^ \ defined(SCPH_102) ^ defined(SCPH_100) ^ defined(SCPH_7000_9000) ^ \ defined(SCPH_5500) ^ defined(SCPH_3500_5000) ^ defined(SCPH_3000) ^ \ defined(SCPH_1000)) - #error "May be selected only one console! Please check #define with SCPH model number." + #error "May be selected only one console! Please check #define with SCPH model number." #endif #ifndef AUTOREGION From b7738fb13ec454d5cd7758d40d9c2f46b4e0ce01 Mon Sep 17 00:00:00 2001 From: victi Date: Thu, 14 Mar 2024 23:57:16 +0100 Subject: [PATCH 2/9] Fixed indentation --- PSNee_V8/PSNee_V8.ino | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/PSNee_V8/PSNee_V8.ino b/PSNee_V8/PSNee_V8.ino index eeb81c7..65fe752 100644 --- a/PSNee_V8/PSNee_V8.ino +++ b/PSNee_V8/PSNee_V8.ino @@ -24,7 +24,7 @@ // If a BIOS checksum is specified, it is more important than the SCPH model number! //------------------------------------------------------------------------------------------------ -//#define UC_ALL // Use for all NTSC-U/C models. No BIOS patching needed. +#define UC_ALL // Use for all NTSC-U/C models. No BIOS patching needed. //#define PAL_FAT // Use for all PAL FAT models. No BIOS patching needed. //#define SCPH_103 // No BIOS patching needed. //#define SCPH_102 // DX - D0, AX - A7. BIOS ver. 4.4e, CRC 0BAD7EA9 | 4.5e, CRC 76B880E5 @@ -40,15 +40,15 @@ //------------------------------------------------------------------------------------------------ #define AUTOREGION // If disable, send all SCEX codes, instead of the code selected model. -#define PATCH_SW // Enables hardware support for disabling BIOS patching. +//#define PATCH_SW // Enables hardware support for disabling BIOS patching. //------------------------------------------------------------------------------------------------ // Code section //------------------------------------------------------------------------------------------------ -#include "config.h" -#include "settings.h" -#include "patching.h" +#include "include/config.h" +#include "include/settings.h" +#include "include/patching.h" volatile uint8_t count_isr = 0; volatile uint32_t microsec = 0; @@ -177,16 +177,16 @@ int main() uint16_t highs = 0, lows = 0; #if !defined(UC_ALL) && !defined(PAL_FAT) && !defined(SCPH_103) && \ - !defined(SCPH_102) && !defined(SCPH_100) && !defined(SCPH_7000_9000) && \ + !defined(SCPH_102) && !defined(SCPH_100) && !defined(SCPH_7000_9000) && \ !defined(SCPH_5500) && !defined(SCPH_3500_5000) && !defined(SCPH_3000) && \ - !defined(SCPH_1000) - #error "Console not selected! Please uncomment #define with SCPH model number." - #elif !(defined(UC_ALL) ^ defined(PAL_FAT) ^ defined(SCPH_103) ^ \ - defined(SCPH_102) ^ defined(SCPH_100) ^ defined(SCPH_7000_9000) ^ \ - defined(SCPH_5500) ^ defined(SCPH_3500_5000) ^ defined(SCPH_3000) ^ \ - defined(SCPH_1000)) - #error "May be selected only one console! Please check #define with SCPH model number." - #endif + !defined(SCPH_1000) + #error "Console not selected! Please uncomment #define with SCPH model number." + #elif !(defined(UC_ALL) ^ defined(PAL_FAT) ^ defined(SCPH_103) ^ \ + defined(SCPH_102) ^ defined(SCPH_100) ^ defined(SCPH_7000_9000) ^ \ + defined(SCPH_5500) ^ defined(SCPH_3500_5000) ^ defined(SCPH_3000) ^ \ + defined(SCPH_1000)) + #error "May be selected only one console! Please check #define with SCPH model number." + #endif #ifndef AUTOREGION const char region[3] = {'e', 'a', 'i'}; From e45d796257174d4e86728b1180908ec845447546 Mon Sep 17 00:00:00 2001 From: victi Date: Thu, 14 Mar 2024 23:58:09 +0100 Subject: [PATCH 3/9] Add MOD_SWITCH functionality --- PSNee_V8/PSNee_V8.ino | 8 +++++++- PSNee_V8/include/config.h | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/PSNee_V8/PSNee_V8.ino b/PSNee_V8/PSNee_V8.ino index 65fe752..4065ef2 100644 --- a/PSNee_V8/PSNee_V8.ino +++ b/PSNee_V8/PSNee_V8.ino @@ -40,7 +40,8 @@ //------------------------------------------------------------------------------------------------ #define AUTOREGION // If disable, send all SCEX codes, instead of the code selected model. -//#define PATCH_SW // Enables hardware support for disabling BIOS patching. +//#define PATCH_SW // Enables hardware support for disabling BIOS patching. +//#define MOD_SW // Enables hardware support for disabling the entire modchip. //------------------------------------------------------------------------------------------------ // Code section @@ -194,6 +195,11 @@ int main() Init(); + #if defined(MOD_SW) + if (MOD_SW_CHECK == 0) + return 0; + #endif + #ifdef LED_USE LED_ON; #endif diff --git a/PSNee_V8/include/config.h b/PSNee_V8/include/config.h index ec24baf..cc6e9d8 100644 --- a/PSNee_V8/include/config.h +++ b/PSNee_V8/include/config.h @@ -38,6 +38,9 @@ #define SW_USE PORTD |= (1<<5) #define SW_CHECK (PIND & (1<<5)) +#define MOD_SW_USE PORTB |= (1<<2) +#define MOD_SW_CHECK (PINB & (1<<2)) + #define LED_USE DDRB |= (1<<5) #define LED_ON PORTB |= (1<<5) #define LED_OFF PORTB &= ~(1<<5) @@ -52,6 +55,10 @@ void Init() #ifdef PATCH_SW SW_USE; #endif + + #ifdef MOD_SW + MOD_SW_USE; + #endif LED_USE; sei(); From e6a33e2b7d4bfebf2210000b3478aa4d7043cfe4 Mon Sep 17 00:00:00 2001 From: victi Date: Fri, 15 Mar 2024 00:00:05 +0100 Subject: [PATCH 4/9] Restore PS type option --- PSNee_V8/PSNee_V8.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSNee_V8/PSNee_V8.ino b/PSNee_V8/PSNee_V8.ino index 4065ef2..d114366 100644 --- a/PSNee_V8/PSNee_V8.ino +++ b/PSNee_V8/PSNee_V8.ino @@ -24,7 +24,7 @@ // If a BIOS checksum is specified, it is more important than the SCPH model number! //------------------------------------------------------------------------------------------------ -#define UC_ALL // Use for all NTSC-U/C models. No BIOS patching needed. +//#define UC_ALL // Use for all NTSC-U/C models. No BIOS patching needed. //#define PAL_FAT // Use for all PAL FAT models. No BIOS patching needed. //#define SCPH_103 // No BIOS patching needed. //#define SCPH_102 // DX - D0, AX - A7. BIOS ver. 4.4e, CRC 0BAD7EA9 | 4.5e, CRC 76B880E5 From 1585a3ab38d620859c50c4c94922d875352123a8 Mon Sep 17 00:00:00 2001 From: Giuseppe Tomarchio Date: Fri, 15 Mar 2024 00:02:43 +0100 Subject: [PATCH 5/9] Update README.md || Add credits --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index aad58cb..86a1b6e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ The first stealth modchip supporting unlocking BIOS of Japanese versions Sony Pl ![Logo](images/PSNee_V8_logo.png) Developed by **brill** & **postal2201**, based on PSNee V7 open source project. - http://www.emu-land.net/forum/index.php/topic,85934.0.html +The MOD_SWITCH feature added by **Victini378**. ## Supported platforms PsNee V8 supports the following MCU's: From 105836818a423bf0222d6f552748ed9a166e1f64 Mon Sep 17 00:00:00 2001 From: Giuseppe Tomarchio Date: Fri, 15 Mar 2024 00:03:54 +0100 Subject: [PATCH 6/9] Fixed README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 86a1b6e..b655947 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ The first stealth modchip supporting unlocking BIOS of Japanese versions Sony Pl ![Logo](images/PSNee_V8_logo.png) Developed by **brill** & **postal2201**, based on PSNee V7 open source project. - http://www.emu-land.net/forum/index.php/topic,85934.0.html + The MOD_SWITCH feature added by **Victini378**. ## Supported platforms From abe6370b4ebd65240e15709653ce30fda81b8157 Mon Sep 17 00:00:00 2001 From: Giuseppe Tomarchio Date: Fri, 15 Mar 2024 00:07:01 +0100 Subject: [PATCH 7/9] Update README.md || Add credits of co-author --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b655947..cacbae1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# PSNee V8 +# PSNee V8.1 The first stealth modchip supporting unlocking BIOS of Japanese versions Sony PlayStation 1 @@ -6,7 +6,7 @@ The first stealth modchip supporting unlocking BIOS of Japanese versions Sony Pl Developed by **brill** & **postal2201**, based on PSNee V7 open source project. - http://www.emu-land.net/forum/index.php/topic,85934.0.html -The MOD_SWITCH feature added by **Victini378**. +The MOD_SWITCH feature added by **Victini378** and designed in cooperation with **SunAlphiusWu**. ## Supported platforms PsNee V8 supports the following MCU's: From 6aff9e1ab078eaf26289f11b03d3ecd30250bb00 Mon Sep 17 00:00:00 2001 From: Giuseppe Tomarchio Date: Fri, 15 Mar 2024 00:10:48 +0100 Subject: [PATCH 8/9] Update README.md | Added new feature info to intro --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cacbae1..b00a2d9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PSNee V8.1 -The first stealth modchip supporting unlocking BIOS of Japanese versions Sony PlayStation 1 +The first stealth modchip supporting unlocking BIOS of Japanese versions Sony PlayStation 1, and disabling the modchip itself. ![Logo](images/PSNee_V8_logo.png) Developed by **brill** & **postal2201**, based on PSNee V7 open source project. @@ -9,7 +9,7 @@ Developed by **brill** & **postal2201**, based on PSNee V7 open source project. The MOD_SWITCH feature added by **Victini378** and designed in cooperation with **SunAlphiusWu**. ## Supported platforms -PsNee V8 supports the following MCU's: +PsNee V8.1 supports the following MCU's: - ATmega328(A/P/PA) @16Mhz - ATmega168(A/P/PA) @16Mhz From de8b4df0eb996e8d76b649a1c05654a76c8e8877 Mon Sep 17 00:00:00 2001 From: Giuseppe Tomarchio Date: Fri, 15 Mar 2024 00:12:41 +0100 Subject: [PATCH 9/9] Fixed typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b00a2d9..7d478ce 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Example of correct setting for ATmega328P:\ ![ArduinoIDE](images/example.png) -After that select the type console - uncoment define in file project(*.ino) +After that select the type console - uncomment define in file project(*.ino) ![Console](images/console.png)