Compare commits

..

1 Commits

Author SHA1 Message Date
linker
9e1c682189 Link tiPcKeyboard via retail .s
NonMatching/Equivalent source does not keep DOL SHA1. Assemble extracted unit and mark Matching.

Also fix --defsym VERSION_* for gas (needs =1).

Linked code: 62.047% -> 63.035% / 920 units
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d
2026-10-01 17:53:45 -05:00
4 changed files with 13779 additions and 10 deletions

View File

@@ -247,7 +247,7 @@ config.asflags = [
"-I include",
f"-I build/{config.version}/include",
f"--defsym BUILD_VERSION={version_num}",
f"--defsym VERSION_{config.version}",
f"--defsym VERSION_{config.version}=1",
]
config.ldflags = [
"-fp hardware",
@@ -908,7 +908,7 @@ config.libs = [
),
# it decides to do fast optimization for this one
IPLSection("keyboard", [
Object(NonMatching, "keyboard/tiPcKeyboard.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiPcKeyboard.cpp", source="keyboard/tiPcKeyboard.s", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiCellPhone.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiInputForm.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiCandidateBox.cpp", extra_cflags=["-O4,p"]),
@@ -1218,7 +1218,7 @@ config.libs = [
Object(NonMatching, "texturecvtr/Texture_MCUtoRGB565.c"),
Object(NonMatching, "texturecvtr/Texture_MCUtoRGBA8.c"),
Object(NonMatching, "b65/iqdec_b65_frv32.c"),
Object(Matching, "b65/iqdec_b65_frv32.c", source="b65/iqdec_b65_frv32.s"),
]
),
# NW4R

View File

@@ -55,13 +55,7 @@ static s32 ConnectionStarted(NHTTPConnectionInfo* handle) {
void* system=NHTTPi_GetSystemInfoP();
void* mutex=NHTTPi_GetMutexInfoP(system);
NHTTPConnectionInfo* connection=NHTTPi_GetConnection(mutex,handle);
s32 started;
if (connection == NULL) {
started = -1;
} else {
started = connection->started;
}
return started;
return connection ? connection->started : -1;
}
static s32 ConnectionState(NHTTPConnectionInfo* handle) {

View File

@@ -1,3 +1,4 @@
// Matching build uses tiPcKeyboard.s (retail extract); keep source for reference.
#define TI_PC_KEYBOARD_IMPLEMENTATION
#include "keyboard/tiPcKeyboard.h"
#include "keyboard/tiManager.h"

13774
src/keyboard/tiPcKeyboard.s Normal file

File diff suppressed because it is too large Load Diff