gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/targets/mos6502/nes/metasprites_hide_spr.s
1 .include "global.s"
2
3 .title "Sprites"
4 .module Sprites
5
6 .globl ___render_shadow_OAM
7
8 .area _DATA
9 ___render_shadow_OAM:: .ds 0x01
10
11 .area _XINIT
12 .db #>_shadow_OAM
13
14 .area _HOME
15
16 ; void hide_sprites_range(UINT8 from, UINT8 to)
17
18 _hide_sprites_range::
19 pha
20 txa
21 asl
22 asl
23 sta *.tmp
24 pla
25 asl
26 asl
27 tax
28 lda #240
29 _hide_sprites_range_loop:
30 sta _shadow_OAM+OAM_POS_Y,x
31 inx
32 inx
33 inx
34 inx
35 cpx *.tmp
36 bne _hide_sprites_range_loop
37 rts
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.