gambatte/test/hwtests/scy/scy_during_m3_spx0B_4.asm

155 lines
1.6 KiB
NASM
Raw Normal View History

.size 8000
2013-12-07 10:03:13 +01:00
.text@48
ei
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
.data@143
2013-02-20 20:02:06 +01:00
80
2013-12-07 10:03:13 +01:00
.text@150
2013-12-02 02:24:23 +01:00
lbegin:
ld c, 44
ld b, 90
2013-12-02 02:24:23 +01:00
lbegin_waitvblank:
ldff a, (c)
cmp a, b
2013-12-07 13:52:14 +01:00
jrnz lbegin_waitvblank
xor a, a
ldff(40), a
ld hl, 8000
xor a, a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld hl, 8010
ld a, ff
ld(hl++), a
ld(hl++), a
ld a, 01
ld b, 32
ld hl, 9a40
2013-12-02 02:24:23 +01:00
lbegin_settilemap:
ld(hl++), a
dec b
2013-12-07 13:52:14 +01:00
jrnz lbegin_settilemap
ld a, e4
ldff(47), a
ld a, ff
ldff(48), a
ld a, 80
ldff(68), a
ld a, ff
ld c, 69
ldff(c), a
ldff(c), a
ld a, aa
ldff(c), a
ldff(c), a
ld a, 55
ldff(c), a
ldff(c), a
xor a, a
ldff(c), a
ldff(c), a
ld a, 80
ldff(6a), a
ld a, 00
ld c, 6b
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ld hl, fea0
xor a, a
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 a, 10
ld(hl), a
inc l
ld a, 0b
ld(hl), a
ld a, 97
ldff(40), a
ld c, 41
ld b, 03
2013-12-02 02:24:23 +01:00
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
2013-12-07 13:52:14 +01:00
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ld c, 42
ld b, 90
ei
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
ldff a, (44)
ld d, a
ld a, b
sub a, d
ldff(c), a
pop hl
xor a, a
2013-12-07 10:03:13 +01:00
.text@102a
ldff(c), a