gambatte/test/hwtests/sprites/late_disable_group_image_6.asm

93 lines
922 B
NASM
Raw Normal View History

.size 8000
2013-12-07 10:03:13 +01:00
.text@48
2013-12-02 02:24:23 +01:00
jp lstatint
2013-12-07 10:03:13 +01:00
.text@100
2013-12-02 02:24:23 +01:00
jp lbegin
2013-12-07 10:03:13 +01:00
.text@150
2013-12-02 02:24:23 +01:00
lbegin:
2013-12-07 10:23:38 +01:00
ld a, ff
ldff(45), a
ld c, 44
ld b, 91
2013-12-02 02:24:23 +01:00
lbegin_waitly91:
ldff a, (c)
cmp a, b
2013-12-07 13:52:14 +01:00
jrnz lbegin_waitly91
xor a, a
ldff(40), a
ld hl, 8000
2013-12-02 02:24:23 +01:00
lbegin_fillvramff:
ld a, ff
ld(hl++), a
ld a, a0
cmp a, h
2013-12-02 02:24:23 +01:00
jrnz lbegin_fillvramff
ld a, ff
ldff(47), a
ld a, 55
ldff(49), a
xor a, a
ldff(48), a
ld hl, fea0
2013-12-02 02:24:23 +01:00
lbegin_fill_oam:
dec l
ld(hl), a
2013-12-02 02:24:23 +01:00
jrnz lbegin_fill_oam
ld hl, fe98
ld d, 10
ld a, d
ld(hl), a
inc l
ld a, 08
ld(hl), a
inc l
inc l
ld a, d
ld(hl), a
inc l
ld(hl), a
inc l
ld a, 0c
ld(hl), a
ld a, 97
ldff(40), a
2013-12-02 02:24:23 +01:00
lbegin_waitly91_2:
ldff a, (c)
cmp a, b
2013-12-02 02:24:23 +01:00
jrnz lbegin_waitly91_2
ld a, 20
ldff(41), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ei
ld c, 40
ld d, 97
2013-12-07 10:03:13 +01:00
.text@1000
2013-12-02 02:24:23 +01:00
lstatint:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld a, 95
ldff(c), a
ld a, d
ldff(c), a
ld sp, fffe
ei