mirror of
https://github.com/UzixLS/pacemuzx.git
synced 2025-07-19 07:11:20 +03:00
Added key press to delay emulation start
As a temporary work-around for SpectraNet not working, you can now hold a key on the keyboard to delay the emulation starting. With your other free hand you can change the jumper to disable traps!
This commit is contained in:
12
pacemuzx.asm
12
pacemuzx.asm
@ -191,7 +191,7 @@ scrinit_lp: push bc
|
|||||||
ld bc,&0300
|
ld bc,&0300
|
||||||
ld (hl),attr_colour ; set display attrs
|
ld (hl),attr_colour ; set display attrs
|
||||||
ldir
|
ldir
|
||||||
|
|
||||||
ld bc,&00e4
|
ld bc,&00e4
|
||||||
ld (hl),l ; clear sprite restore data
|
ld (hl),l ; clear sprite restore data
|
||||||
ldir
|
ldir
|
||||||
@ -234,6 +234,12 @@ clear_io: ld (hl),a ; zero fill it
|
|||||||
ld a,(dip_5080)
|
ld a,(dip_5080)
|
||||||
ld (&5080),a
|
ld (&5080),a
|
||||||
|
|
||||||
|
wait_no_key: xor a
|
||||||
|
in a,(keyboard)
|
||||||
|
cpl
|
||||||
|
and %00011111 ; check for any key
|
||||||
|
jr nz,wait_no_key ; loop until all released, as temporary SpectraNet work-around
|
||||||
|
|
||||||
ld sp,&4c00 ; stack in spare RAM
|
ld sp,&4c00 ; stack in spare RAM
|
||||||
jp 0 ; start the ROM! (and page in DivIDE, if present)
|
jp 0 ; start the ROM! (and page in DivIDE, if present)
|
||||||
|
|
||||||
@ -1725,7 +1731,7 @@ do_score1: inc h
|
|||||||
do_score2: inc h
|
do_score2: inc h
|
||||||
inc h
|
inc h
|
||||||
inc h ; advance to header area containing score
|
inc h ; advance to header area containing score
|
||||||
|
|
||||||
ld ixl,26 ; screen offset for left edge
|
ld ixl,26 ; screen offset for left edge
|
||||||
|
|
||||||
ld l,&c7
|
ld l,&c7
|
||||||
@ -1773,7 +1779,7 @@ chk_digit: ld d,&43
|
|||||||
cp (hl)
|
cp (hl)
|
||||||
ret z
|
ret z
|
||||||
ld (hl),a
|
ld (hl),a
|
||||||
|
|
||||||
ex af,af'
|
ex af,af'
|
||||||
push hl
|
push hl
|
||||||
call draw_tile_x
|
call draw_tile_x
|
||||||
|
Reference in New Issue
Block a user