You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Merge pull request #186 from kanzure/yenatch-master
rename a bunch of bad labels and split out tilesets
This commit is contained in:
@@ -283,6 +283,9 @@ SCREEN_HEIGHT EQU 18
|
|||||||
SCREEN_WIDTH_PX EQU 160
|
SCREEN_WIDTH_PX EQU 160
|
||||||
SCREEN_HEIGHT_PX EQU 144
|
SCREEN_HEIGHT_PX EQU 144
|
||||||
|
|
||||||
|
BG_MAP_WIDTH EQU 32
|
||||||
|
BG_MAP_HEIGHT EQU 32
|
||||||
|
|
||||||
TILE_WIDTH EQU 8
|
TILE_WIDTH EQU 8
|
||||||
|
|
||||||
|
|
||||||
|
@@ -248,13 +248,13 @@ Request2bpp: ; eba
|
|||||||
|
|
||||||
.asm_edc
|
.asm_edc
|
||||||
ld a, e
|
ld a, e
|
||||||
ld [$cf68], a
|
ld [Requested2bppSource], a
|
||||||
ld a, d
|
ld a, d
|
||||||
ld [$cf69], a
|
ld [Requested2bppSource + 1], a
|
||||||
ld a, l
|
ld a, l
|
||||||
ld [$cf6a], a
|
ld [Requested2bppDest], a
|
||||||
ld a, h
|
ld a, h
|
||||||
ld [$cf6b], a
|
ld [Requested2bppDest + 1], a
|
||||||
|
|
||||||
.asm_eec
|
.asm_eec
|
||||||
ld a, c
|
ld a, c
|
||||||
@@ -262,10 +262,10 @@ Request2bpp: ; eba
|
|||||||
cp [hl]
|
cp [hl]
|
||||||
jr nc, .asm_f08
|
jr nc, .asm_f08
|
||||||
|
|
||||||
ld [$cf67], a
|
ld [Requested2bpp], a
|
||||||
.wait
|
.wait
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld a, [$cf67]
|
ld a, [Requested2bpp]
|
||||||
and a
|
and a
|
||||||
jr nz, .wait
|
jr nz, .wait
|
||||||
|
|
||||||
@@ -281,10 +281,10 @@ Request2bpp: ; eba
|
|||||||
|
|
||||||
.asm_f08
|
.asm_f08
|
||||||
ld a, [$ffd3]
|
ld a, [$ffd3]
|
||||||
ld [$cf67], a
|
ld [Requested2bpp], a
|
||||||
.asm_f0d
|
.asm_f0d
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld a, [$cf67]
|
ld a, [Requested2bpp]
|
||||||
and a
|
and a
|
||||||
jr nz, .asm_f0d
|
jr nz, .asm_f0d
|
||||||
ld a, c
|
ld a, c
|
||||||
@@ -322,23 +322,23 @@ Request1bpp: ; f1e
|
|||||||
|
|
||||||
.asm_f40
|
.asm_f40
|
||||||
ld a, e
|
ld a, e
|
||||||
ld [$cf6d], a
|
ld [Requested1bppSource], a
|
||||||
ld a, d
|
ld a, d
|
||||||
ld [$cf6e], a
|
ld [Requested1bppSource + 1], a
|
||||||
ld a, l
|
ld a, l
|
||||||
ld [$cf6f], a
|
ld [Requested1bppDest], a
|
||||||
ld a, h
|
ld a, h
|
||||||
ld [$cf70], a
|
ld [Requested1bppDest + 1], a
|
||||||
.asm_f50
|
.asm_f50
|
||||||
ld a, c
|
ld a, c
|
||||||
ld hl, $ffd3
|
ld hl, $ffd3
|
||||||
cp [hl]
|
cp [hl]
|
||||||
jr nc, .asm_f6c
|
jr nc, .asm_f6c
|
||||||
|
|
||||||
ld [$cf6c], a
|
ld [Requested1bpp], a
|
||||||
.wait
|
.wait
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld a, [$cf6c]
|
ld a, [Requested1bpp]
|
||||||
and a
|
and a
|
||||||
jr nz, .wait
|
jr nz, .wait
|
||||||
|
|
||||||
@@ -354,10 +354,10 @@ Request1bpp: ; f1e
|
|||||||
|
|
||||||
.asm_f6c
|
.asm_f6c
|
||||||
ld a, [$ffd3]
|
ld a, [$ffd3]
|
||||||
ld [$cf6c], a
|
ld [Requested1bpp], a
|
||||||
.asm_f71
|
.asm_f71
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld a, [$cf6c]
|
ld a, [Requested1bpp]
|
||||||
and a
|
and a
|
||||||
jr nz, .asm_f71
|
jr nz, .asm_f71
|
||||||
ld a, c
|
ld a, c
|
||||||
|
@@ -119,9 +119,9 @@ VBlank0: ; 2b1
|
|||||||
call UpdateBGMap
|
call UpdateBGMap
|
||||||
|
|
||||||
; these have their own timing checks
|
; these have their own timing checks
|
||||||
call SafeLoadTiles
|
call Serve2bppRequest
|
||||||
call SafeLoadTiles2
|
call Serve1bppRequest
|
||||||
call SafeTileAnimation
|
call AnimateTileset
|
||||||
|
|
||||||
.doneframeaction
|
.doneframeaction
|
||||||
; oam update off?
|
; oam update off?
|
||||||
@@ -131,8 +131,8 @@ VBlank0: ; 2b1
|
|||||||
|
|
||||||
; update oam by dma transfer
|
; update oam by dma transfer
|
||||||
call hPushOAM
|
call hPushOAM
|
||||||
; 403f:
|
; @PushOAM:
|
||||||
; ld a, $c4
|
; ld a, Sprites >> 8
|
||||||
; ld [rDMA], a
|
; ld [rDMA], a
|
||||||
; ld a, $28
|
; ld a, $28
|
||||||
; .loop
|
; .loop
|
||||||
@@ -230,11 +230,11 @@ VBlank1: ; 337
|
|||||||
|
|
||||||
; these have their own timing checks
|
; these have their own timing checks
|
||||||
call UpdateBGMap
|
call UpdateBGMap
|
||||||
call LoadTiles
|
call Serve2bppRequest@VBlank
|
||||||
; update oam by dma transfer
|
; update oam by dma transfer
|
||||||
call hPushOAM
|
call hPushOAM
|
||||||
; 403f:
|
; @PushOAM:
|
||||||
; ld a, $c4
|
; ld a, Sprites >> 8
|
||||||
; ld [rDMA], a
|
; ld [rDMA], a
|
||||||
; ld a, $28
|
; ld a, $28
|
||||||
; .loop
|
; .loop
|
||||||
@@ -338,12 +338,12 @@ VBlank3: ; 396
|
|||||||
jr c, .vblankoccurred
|
jr c, .vblankoccurred
|
||||||
; else
|
; else
|
||||||
call UpdateBGMap
|
call UpdateBGMap
|
||||||
call LoadTiles
|
call Serve2bppRequest@VBlank
|
||||||
|
|
||||||
; update oam by dma transfer
|
; update oam by dma transfer
|
||||||
call hPushOAM
|
call hPushOAM
|
||||||
; 403f:
|
; @PushOAM:
|
||||||
; ld a, $c4 ; Sprites / $100
|
; ld a, Sprites >> 8
|
||||||
; ld [rDMA], a
|
; ld [rDMA], a
|
||||||
; ld a, $28
|
; ld a, $28
|
||||||
; .loop
|
; .loop
|
||||||
@@ -410,12 +410,12 @@ VBlank4: ; 3df
|
|||||||
ld [$ff8a], a
|
ld [$ff8a], a
|
||||||
|
|
||||||
call UpdateBGMap
|
call UpdateBGMap
|
||||||
call SafeLoadTiles
|
call Serve2bppRequest
|
||||||
|
|
||||||
; update oam by dma transfer
|
; update oam by dma transfer
|
||||||
call hPushOAM
|
call hPushOAM
|
||||||
; 403f:
|
; @PushOAM:
|
||||||
; ld a, $c4
|
; ld a, Sprites >> 8
|
||||||
; ld [rDMA], a
|
; ld [rDMA], a
|
||||||
; ld a, $28
|
; ld a, $28
|
||||||
; .loop
|
; .loop
|
||||||
@@ -465,7 +465,7 @@ VBlank5: ; 400
|
|||||||
jr c, .vblankoccurred
|
jr c, .vblankoccurred
|
||||||
|
|
||||||
call UpdateBGMap
|
call UpdateBGMap
|
||||||
call SafeLoadTiles
|
call Serve2bppRequest
|
||||||
|
|
||||||
.vblankoccurred
|
.vblankoccurred
|
||||||
; tell other fns vblank happened
|
; tell other fns vblank happened
|
||||||
@@ -521,8 +521,8 @@ VBlank6: ; 436
|
|||||||
call UpdateCGBPals
|
call UpdateCGBPals
|
||||||
jr c, .vblankoccurred
|
jr c, .vblankoccurred
|
||||||
|
|
||||||
call SafeLoadTiles
|
call Serve2bppRequest
|
||||||
call SafeLoadTiles2
|
call Serve1bppRequest
|
||||||
call DMATransfer
|
call DMATransfer
|
||||||
|
|
||||||
.vblankoccurred
|
.vblankoccurred
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user