Browse Source

Small changes over time

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

2
.lvimrc

@ -1,3 +1,3 @@
if expand("<afile>:e") ==? 'asm' || expand("<afile>:e") ==? 'inc' || expand("<afile>:e") ==? 'link'
setf rgbds
setf rgbds
endif

2
source/home/video.asm

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

2
source/main.asm

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

13
source/prog/ezflash_test.asm

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

7
source/prog/serial_test.asm

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

Loading…
Cancel
Save