mirror of
https://github.com/pret/pokered.git
synced 2026-04-26 01:11:14 -05:00
Some checks failed
CI / build (push) Has been cancelled
- Use `OBJ_SIZE` and `TILE_SIZE` from hardware.inc. - `SPRITESTATEDATA1_LENGTH`, `NUM_SPRITESTATEDATA_STRUCTS` and `TILE_1BPP_SIZE` are used in some places. - Highlight an oversight in `OakSpeech` where several direct MBC bank switches are requested. - Remove redundant comments in home/overworld.asm. - Add unreferenced `FillBgMap` function to avoid a byte of dead code. - Some constants added in wram.asm. - Correctly separate the commented code in `SaveMainData`.
22 lines
294 B
NASM
22 lines
294 B
NASM
ClearSprites::
|
|
xor a
|
|
ld hl, wShadowOAM
|
|
ld b, wShadowOAMEnd - wShadowOAM
|
|
.loop
|
|
ld [hli], a
|
|
dec b
|
|
jr nz, .loop
|
|
ret
|
|
|
|
HideSprites::
|
|
ld a, SCREEN_HEIGHT_PX + OAM_Y_OFS
|
|
ld hl, wShadowOAMSprite00YCoord
|
|
ld de, OBJ_SIZE
|
|
ld b, OAM_COUNT
|
|
.loop
|
|
ld [hl], a
|
|
add hl, de
|
|
dec b
|
|
jr nz, .loop
|
|
ret
|