Release 2026-11-04-r2 · SHA256 9b0d94319d8d349ae96bfcaa878cf138aadf79a5d4dd2adcb00829d6e7bc7a54 · Click a line number for a direct link.
1"""Main-menu lifetime, exact faster checksums and local directional repeat."""2ORIGIN=0x25C0003def install(data,assemble,patch):4 code=assemble('main_menu',ORIGIN)5 assert len(code)==0xA00 and code[16:20]==b'MM01'6 patch(ORIGIN,b'\xff'*len(code),code)7 for at,old,new in [8 (0xF739E,'4eb9000fe660','4eb90025c000'),9 (0xF843E,'4ef9002e6000','4ef90025c004'),10 (0x2340AA,'d0c7343cffff','4ef90025c008'),11 (0x256250,'41f90020a000','4ef90025c00c'),12 (0x17C62,'5278b03e4eb90001a50a','4ef90025c0184e714e71'),13 (0x2AA698,'d010548851c9fffa','4eb90025c01c4e71'),14 (0x2AA6F2,'d010548851c9fffa','4eb90025c01c4e71')]:patch(at,bytes.fromhex(old),bytes.fromhex(new))15 for at in [0x22013E,0x221460,0x222432,0x223402,0x224184,0x22609C,0x2DE1C0,0x2DE50A,0x2DE74A,0x2E6D52,0x2E84CC,0x2EB252,0x2EB7CA]:16 patch(at,bytes.fromhex('d010548851c9fffa'),bytes.fromhex('4eb90025c01c4e71'))17 for at in [0x2AA562,0x2AA57C]:18 patch(at,bytes.fromhex('12905488548951c8fff8'),bytes.fromhex('4eb90025c0204e714e71'))19 for at in [0x25604C,0x25609E]:20 patch(at,bytes.fromhex('12905488548951cafff8'),bytes.fromhex('4eb90025c0244e714e71'))21 patch(0x2AA434,bytes.fromhex('4210548851c8fffa'),bytes.fromhex('4eb90025c0284e71'))22 for at in [0xF832C,0xF835C,0xF8384,0xF83A4]:23 patch(at,bytes.fromhex('4eb900011318'),bytes.fromhex('4eb90025c014'))24