gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 05ba3b4dc5c035b436da4d83759bc7cdfa7573f9 parent 572c129995e70c7f338bbf5ee6698737274dce79 Author: Toxa <untoxa@mail.ru> Date: Sat, 23 Jan 2021 11:31:33 +0300 simplify .refresh_OAM Diffstat:
| M | gbdk-lib/libc/gb/crt0.s | 11 | ++++++----- |
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/gbdk-lib/libc/gb/crt0.s b/gbdk-lib/libc/gb/crt0.s @@ -95,7 +95,11 @@ __standard_VBL_handler:: INC HL INC (HL) 2$: - JP .refresh_OAM + CALL .refresh_OAM + + LD A, #1 + LDH (.vbl_done),A + RET ;; GameBoy Header @@ -286,16 +290,13 @@ _set_interrupts:: .start_refresh_OAM: LDH A,(__shadow_OAM_base) OR A - JR Z, 2$ + RET Z LDH (.DMA),A ; Put A into DMA registers LD A,#0x28 ; We need to wait 160 ns 1$: DEC A JR NZ,1$ -2$: - INC A - LDH (.vbl_done),A RET .end_refresh_OAM:
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.