1
0
mirror of https://github.com/UzixLS/pacemuzx.git synced 2025-07-18 23:01:36 +03:00

Hard mode key tweak

Moved key read to before the DIP it affects, for clarity.
This commit is contained in:
Simon Owen
2012-01-08 01:27:48 +00:00
parent 39ec3604b8
commit a1def8fa66

View File

@ -191,14 +191,15 @@ clear_io: ld (hl),a ; zero fill it
inc l
jr nz,clear_io
ld a,&bf
in a,(keyboard)
bit 4,a ; Z if H pressed
ld a,(dip_5000) ; set hardware dips to our defaults
ld (&5000),a
ld a,(dip_5040)
ld (&5040),a
ld a,&bf
in a,(keyboard)
bit 4,a ; Z if H pressed
ld a,(dip_5080)
jr nz,not_hard
and %10111111 ; set Hard difficulty