From 7dde9157793fb2c6ebe497b2138dcfad5586fbba Mon Sep 17 00:00:00 2001 From: Romain Dolbeau Date: Sun, 5 Oct 2025 15:29:51 +0200 Subject: [PATCH] also change the UART 'time const' value (stored in usecmd.c::uart_init) to adapt to a different UART clock --- RomPatcher/Sun2_FastBoot/input.txt | 1 + RomPatcher/Sun2_FastBoot/rompatch.s | 5 +++++ RomPatcher/Sun2_FastBoot/sun2-multi-rev-R.bin | Bin 32768 -> 32768 bytes 3 files changed, 6 insertions(+) diff --git a/RomPatcher/Sun2_FastBoot/input.txt b/RomPatcher/Sun2_FastBoot/input.txt index f9513f8..2ab7b35 100644 --- a/RomPatcher/Sun2_FastBoot/input.txt +++ b/RomPatcher/Sun2_FastBoot/input.txt @@ -1,3 +1,4 @@ 0x0001b6, 0, diagret 0x000b80, 2, loweritercount 0x000e80, 4, Mconstop +0x0070e9, 1, uart_time_const diff --git a/RomPatcher/Sun2_FastBoot/rompatch.s b/RomPatcher/Sun2_FastBoot/rompatch.s index 95c3107..37c5b41 100644 --- a/RomPatcher/Sun2_FastBoot/rompatch.s +++ b/RomPatcher/Sun2_FastBoot/rompatch.s @@ -9,3 +9,8 @@ loweritercount: Mconstop: jmp (%pc,diagret) + .section .text.uart_time_const +uart_time_const: + .byte 0x1e + + diff --git a/RomPatcher/Sun2_FastBoot/sun2-multi-rev-R.bin b/RomPatcher/Sun2_FastBoot/sun2-multi-rev-R.bin index 6fa1476f3a4e1fc626f1e8d6ad95a80674a4e334..b81ada55320d26a21a4cb2f6c6cb0e55b5901d0b 100644 GIT binary patch delta 16 XcmZo@U}|V!+VHY~QEv0A0x^C7I6wwp delta 16 XcmZo@U}|V!+VHY~k#F;>0x^C7H{b?O