File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,6 @@ DEF HOF_MASTER_COUNT EQU 200
5757
5858; card flip
5959DEF CARDFLIP_DECK_SIZE EQU 4 * 6
60+
61+ ; SGB command MLT_REQ can be used to detect SGB hardware
62+ DEF JOYP_SGB_MLT_REQ EQU %00000011
Original file line number Diff line number Diff line change @@ -908,8 +908,8 @@ PushSGBBorderPalsAndWait:
908908 call _PushSGBPals
909909 call SGBDelayCycles
910910 ldh a , [ rJOYP ]
911- and $ 3
912- cp $ 3
911+ and JOYP_SGB_MLT_REQ
912+ cp JOYP_SGB_MLT_REQ
913913 jr nz , .carry
914914 ld a , JOYP_SGB_ZERO
915915 ldh [ rJOYP ], a
936936 call SGBDelayCycles
937937 call SGBDelayCycles
938938 ldh a , [ rJOYP ]
939- and $ 3
940- cp $ 3
939+ and JOYP_SGB_MLT_REQ
940+ cp JOYP_SGB_MLT_REQ
941941 jr nz , .carry
942942 call .FinalPush
943943 and a
You can’t perform that action at this time.
0 commit comments