We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JOYP_SGB_MLT_REQ
1 parent bdbc8cb commit 1eb6f61Copy full SHA for 1eb6f61
constants/misc_constants.asm
@@ -10,3 +10,6 @@ DEF TRUE EQU 1
10
11
; input
12
DEF NO_INPUT EQU 0
13
+
14
+; SGB command MLT_REQ can be used to detect SGB hardware
15
+DEF JOYP_SGB_MLT_REQ EQU %00000011
engine/gfx/palettes.asm
@@ -462,8 +462,8 @@ CheckSGB:
462
ei
463
call Wait7000
464
ldh a, [rJOYP]
465
- and $3
466
- cp $3
+ and JOYP_SGB_MLT_REQ
+ cp JOYP_SGB_MLT_REQ
467
jr nz, .isSGB
468
ld a, JOYP_SGB_ZERO
469
ldh [rJOYP], a
@@ -494,8 +494,8 @@ CheckSGB:
494
495
496
497
498
499
500
call SendMltReq1Packet
501
and a
0 commit comments