|
|
@ -58,8 +58,6 @@ prog_ezflash_test:: |
|
|
|
ld bc, ezf_write_end - ezf_write_ram |
|
|
|
call memcpy |
|
|
|
|
|
|
|
call ezf_unlock |
|
|
|
|
|
|
|
call update_write_addr |
|
|
|
call update_write_val |
|
|
|
call update_write2_addr |
|
|
@ -98,6 +96,7 @@ main: |
|
|
|
jr main |
|
|
|
|
|
|
|
.joy_a_write |
|
|
|
call ezf_unlock |
|
|
|
ld hl, w_write_addr |
|
|
|
ld a, [hl+] |
|
|
|
ld h, [hl] |
|
|
@ -107,12 +106,14 @@ main: |
|
|
|
jr main |
|
|
|
|
|
|
|
.joy_a_write2 |
|
|
|
call ezf_lock |
|
|
|
ld hl, w_write2_addr |
|
|
|
ld a, [hl+] |
|
|
|
ld h, [hl] |
|
|
|
ld l, a |
|
|
|
ld a, [w_write2_val] |
|
|
|
call ezf_write |
|
|
|
;ld [hl], a |
|
|
|
jr main |
|
|
|
|
|
|
|
.joy_right |
|
|
@ -318,6 +319,14 @@ update_read_view: |
|
|
|
jr nz, .loop |
|
|
|
ret |
|
|
|
|
|
|
|
ezf_lock: |
|
|
|
xor a |
|
|
|
ld hl, $7f31 |
|
|
|
call ezf_write |
|
|
|
xor a |
|
|
|
ld hl, $7f32 |
|
|
|
jp ezf_write |
|
|
|
|
|
|
|
ezf_unlock: |
|
|
|
xor a |
|
|
|
ld hl, $7f31 |
|
|
|