Commit ee5da01
committed
GBA tester variant + screensaver; fix joybus reset path.
gba/source/main_tester.c is a new Doridian-handshake payload that runs
the GBA in console mode showing live button state, falling through to a
Mode-4 page-flipped screensaver after 30 s of zero input. The
screensaver renders gen_logo.h's 64x54 logo mask through the same
7-colour cycle as the GC version (red/green/yellow/blue/magenta/cyan/
white), bounces at 60 Hz, and exits on any button press.
gba/Makefile now builds two variants from one source tree — joypad/
(eyes, for joypad-os to consume via submodule) and tester/ (embedded
into the GameCube host).
Joybus reset fixes:
- REG_JOYCNT polled inside the GBA payload's wait-vblank busy loop so
a host cmd 0xFF triggers SystemCall(0x26) within microseconds —
fixes hot-swap + host-reboot re-multiboot, which had stalled because
the payload reacted too slowly to the reset.
- JOYCNT register address corrected in main_tester.c (0x4000140; was
pointing at JOYSTAT, 0x4000158).
- Host (gamecube/ppc/gba.c): cmd 0xFF sent once then status polled
until PSF0 instead of resetting every iteration; ready timeout
bumped to 4 s for joypad-gba's full re-init; handshake-complete
write made unconditional so the post-multiboot stall path matches
joypad-os's "proceed anyway" behaviour.
Host main loop: wheel detection sticky-cached the same way Keyboard
is, so transient SI_GetType states during disconnect no longer flicker
the port style to "Wheel". First multiboot attempt deferred ~30 frames
so the UI draws before the blocking upload kicks in.
Adds .github/FUNDING.yml mirroring joypad-os.1 parent b3f00d6 commit ee5da01
12 files changed
Lines changed: 10425 additions & 1849 deletions
File tree
- .github
- gamecube/ppc
- gba
- build
- joypad
- tester
- source
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
169 | 176 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | | - | |
177 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
454 | 459 | | |
455 | 460 | | |
456 | 461 | | |
| |||
470 | 475 | | |
471 | 476 | | |
472 | 477 | | |
| 478 | + | |
473 | 479 | | |
474 | 480 | | |
475 | 481 | | |
| |||
482 | 488 | | |
483 | 489 | | |
484 | 490 | | |
485 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
486 | 494 | | |
487 | 495 | | |
488 | 496 | | |
| |||
532 | 540 | | |
533 | 541 | | |
534 | 542 | | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
535 | 550 | | |
536 | 551 | | |
537 | | - | |
| 552 | + | |
| 553 | + | |
538 | 554 | | |
539 | 555 | | |
540 | 556 | | |
541 | | - | |
542 | | - | |
| 557 | + | |
543 | 558 | | |
544 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
545 | 567 | | |
546 | 568 | | |
547 | 569 | | |
| |||
666 | 688 | | |
667 | 689 | | |
668 | 690 | | |
669 | | - | |
| 691 | + | |
670 | 692 | | |
671 | 693 | | |
672 | 694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
9 | 7 | | |
10 | | - | |
11 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
| |||
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
25 | | - | |
26 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
27 | 44 | | |
28 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
29 | 65 | | |
30 | 66 | | |
31 | 67 | | |
| |||
36 | 72 | | |
37 | 73 | | |
38 | 74 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 75 | + | |
43 | 76 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 77 | + | |
| 78 | + | |
47 | 79 | | |
48 | | - | |
49 | | - | |
| 80 | + | |
50 | 81 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
58 | 86 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
64 | 91 | | |
65 | 92 | | |
66 | 93 | | |
67 | | - | |
| 94 | + | |
68 | 95 | | |
69 | 96 | | |
70 | 97 | | |
71 | | - | |
72 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
73 | 101 | | |
74 | 102 | | |
75 | 103 | | |
76 | 104 | | |
77 | | - | |
78 | | - | |
| 105 | + | |
79 | 106 | | |
80 | 107 | | |
81 | 108 | | |
82 | 109 | | |
83 | | - | |
| 110 | + | |
84 | 111 | | |
85 | 112 | | |
Binary file not shown.
0 commit comments