From b633d7cdac778095157bc2fce9aad4c8ab2a4473 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Sat, 23 May 2026 01:41:19 -0700 Subject: [PATCH 1/2] Add sgb-ext-test Resolves #80 --- testroms/cpp.py | 2 ++ testroms/cpp/sgb-ext-test.gb | Bin 0 -> 32768 bytes 2 files changed, 2 insertions(+) create mode 100644 testroms/cpp/sgb-ext-test.gb diff --git a/testroms/cpp.py b/testroms/cpp.py index 634240c..be11ab5 100644 --- a/testroms/cpp.py +++ b/testroms/cpp.py @@ -8,4 +8,6 @@ description="Writes random values to RTC regs, reports them back, then latches the RTC using a single write to the 0x6000-0x7FFF region."), Test("cpp/ramg-mbc3-test.gb", rom="cpp/ramg-mbc3-test.gb", runtime=0.5, description="Tests the width of the MBC3's RAM gate register."), + Test("cpp/sgb-ext-test.gb", rom="cpp/sgb-ext-test.gb", runtime=0.5, model=SGB, url="https://github.com/CasualPokePlayer/test-roms/tree/sgb-ext-test" + description="Tests the SGB packet protocol, doing various \"stress tests\" which cannot be passed without correctly emulating the SGB packet protocol. (See repository for passing reference)"), ] diff --git a/testroms/cpp/sgb-ext-test.gb b/testroms/cpp/sgb-ext-test.gb new file mode 100644 index 0000000000000000000000000000000000000000..b2aed064b1a79595f994f2530fa7350d6d87cdad GIT binary patch literal 32768 zcmeHPe^3HlP

R_`n!d>i>h7m7G^629($~Q}r#)So2x`uB z>6>8TmfFzMlJ*5ehIV{>8XJuFcG~d$N~B3G>z$v2$KSc_8csf4)mO**USsLfwV^o1;O6tvwxi!nB9$2%~d_Y>gIv;|b3y4T}i zuUT(xa3;Fa(xtC=o=U4Nj?BybQof)*Bfp}SsZBx0?|W8wR#dInx2dJ7*|Y1^0_TqY z2b|mc6=zjL|B`x7@SH7oegBtRwwz68Gc0w?$I@6jOR>#uZei9>&u$w&fButKjvcFc zc$@Xo+4G;ia_HFmZuve>`Q7(#{ONk-fqOUJecwj5rrd%fbF&xU>Qf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0$TBJZpx)R>ZSr2yCs1g+ZGkbYzAQ{7!tZ8A7lb zLh!ZtU^9eZGlbw36^1|%>bqsKI4Mjz9F4|9Ov=<^&Tc%H*F88|oCyn@y|ENM#ne%J&lK2ORBuek_e}vRZj|E2&*CuIadW{@;WrlywT`gijB^>%S4k`} zI@;)&NJCIvExYcLz775W>z_y|91so&2ZRH{0pWmfKsX>A5Do|jgag6>;ec>JI3OGl z4hRQ?1Hu8}fN(%KARG`52nU1%!U5rca6mX991so&2ZRH{0pWmfKsX>A5Do|jgag6> e;ec>JI3OGl4hRQ?1Hu8}fN(%KARPFAa^T;cXR(+7 literal 0 HcmV?d00001 From c59681f8bcc520c3b86f88313bd0ce36e3035956 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Sat, 23 May 2026 01:44:31 -0700 Subject: [PATCH 2/2] Try fixing syntax --- testroms/cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testroms/cpp.py b/testroms/cpp.py index be11ab5..c80bbde 100644 --- a/testroms/cpp.py +++ b/testroms/cpp.py @@ -8,6 +8,6 @@ description="Writes random values to RTC regs, reports them back, then latches the RTC using a single write to the 0x6000-0x7FFF region."), Test("cpp/ramg-mbc3-test.gb", rom="cpp/ramg-mbc3-test.gb", runtime=0.5, description="Tests the width of the MBC3's RAM gate register."), - Test("cpp/sgb-ext-test.gb", rom="cpp/sgb-ext-test.gb", runtime=0.5, model=SGB, url="https://github.com/CasualPokePlayer/test-roms/tree/sgb-ext-test" + Test("cpp/sgb-ext-test.gb", rom="cpp/sgb-ext-test.gb", runtime=0.5, model=SGB, url="https://github.com/CasualPokePlayer/test-roms/tree/sgb-ext-test", description="Tests the SGB packet protocol, doing various \"stress tests\" which cannot be passed without correctly emulating the SGB packet protocol. (See repository for passing reference)"), ]