Browse Source

Small changes over time

master
mid-kid 2 years ago
parent
commit
ce5e1b1d7e
  1. 2
      source/home/video.asm
  2. 2
      source/main.asm
  3. 13
      source/prog/ezflash_test.asm
  4. 7
      source/prog/serial_test.asm

2
source/home/video.asm

@ -9,7 +9,7 @@ section "home/video.asm", rom0
lcd_vblank_wait:: lcd_vblank_wait::
ldh a, [r_ly] ldh a, [r_ly]
cp r_ly_vblank + 1 cp r_ly_vblank
jr nz, lcd_vblank_wait jr nz, lcd_vblank_wait
ret ret

2
source/main.asm

@ -4,7 +4,7 @@ include "video.inc"
section "main.asm", rom0 section "main.asm", rom0
main:: main::
;call prog_serial_test call prog_serial_test
call prog_ezflash_test call prog_ezflash_test
call lcd_disable call lcd_disable

13
source/prog/ezflash_test.asm

@ -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

7
source/prog/serial_test.asm

@ -23,10 +23,6 @@ main:
bit joy_a_f, a bit joy_a_f, a
jr nz, .send_shit jr nz, .send_shit
bgcoord hl, 7, 5
call lcd_blank_wait
ld [hl], " "
.continue .continue
call vblank_wait call vblank_wait
jr main jr main
@ -45,6 +41,9 @@ main:
call serial_finished call serial_finished
jr nz, .send_shit_wait jr nz, .send_shit_wait
bgcoord hl, 7, 5
call lcd_blank_wait
ld [hl], " "
jr .continue jr .continue
transfer_buffer: transfer_buffer:

Loading…
Cancel
Save