gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/targets/sm83/mv_spr.s
1 .include "global.s"
2
3 .area _HOME
4
5 ;; Move sprite number C at XY = DE
6 .mv_sprite::
7 LD HL,#_shadow_OAM ; Calculate origin of sprite info
8 SLA C ; Multiply C by 4
9 SLA C
10 LD B,#0x00
11 ADD HL,BC
12
13 LD A,E ; Set Y
14 LD (HL+),A
15
16 LD (HL),D ; Set X
17 RET
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.