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