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.s
1 .include "global.s"
2
3 .title "Metasprites"
4 .module Metasprites
5
6 .globl ___current_metasprite, ___render_shadow_OAM
7
8 .area _HOME
9
10 ; void __hide_metasprite(uint8_t id)
11
12 ___hide_metasprite::
13 asl
14 asl
15 tax
16 ldy #0
17 ___hide_metasprite_loop:
18 lda [*___current_metasprite],y
19 cmp #0x80
20 beq ___hide_metasprite_end
21 iny
22 iny
23 iny
24 iny
25 lda #240
26 sta _shadow_OAM+OAM_POS_Y,x
27 inx
28 inx
29 inx
30 inx
31 bne ___hide_metasprite_loop
32 ___hide_metasprite_end:
33 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.