gambatte/test/hwtests/oamdma/late_sp01x_1_dmg08_cgb04c_out0.asm

154 lines
1.9 KiB
NASM
Raw Normal View History

.size 8000
.data@0
2013-02-20 20:02:06 +01:00
01
2013-12-07 10:03:13 +01:00
.text@48
jp ff81
.data@9c
2013-02-20 20:02:06 +01:00
02 03 04 05
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 00 00 00 1a 00 03
2013-12-07 10:03:13 +01:00
.text@150
2013-12-02 02:24:23 +01:00
lbegin:
ld de, 1028
ld hl, ffa8
2013-12-02 02:24:23 +01:00
lbegin_copydmaroutine:
dec e
ld a, (de)
ld(hl--), a
2013-12-02 02:24:23 +01:00
jrnz lbegin_copydmaroutine
ld b, 90
2013-12-07 10:23:38 +01:00
call lwaitly_b
ld a, 0a
ld(0000), a
ld hl, fea0
ld a, a0
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 b, 90
2013-12-07 10:23:38 +01:00
call lwaitly_b
ld hl, c09f
ld c, a0
ld a, 10
2013-12-02 02:24:23 +01:00
lbegin_fillwram:
dec c
ld(hl--), a
2013-12-02 02:24:23 +01:00
jrnz lbegin_fillwram
ld a, 10
ld(fe04), a
ld a, 02
ldff(45), a
ld a, 40
ldff(41), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
ld a, 93
ldff(40), a
2013-12-07 10:03:13 +01:00
.text@1000
ld c, 18
l1002:
dec c
jrnz l1002
nop
nop
ld a, c0
ldff(46), a
ld c, 0f
l100d:
dec c
jrnz l100d
nop
nop
ldff a, (41)
ld b, 03
and a, b
ldff(80), a
ld c, 28
l101b:
dec c
jrnz l101b
2013-12-02 02:24:23 +01:00
jp lprintff80
2013-12-07 10:03:13 +01:00
.text@7000
2013-12-02 02:24:23 +01:00
lprintff80:
ld b, 91
2013-12-07 10:23:38 +01:00
call lwaitly_b
xor a, a
ldff(40), a
ld bc, 7a00
ld hl, 8000
ld d, a0
2013-12-02 02:24:23 +01:00
lprintff80_copytiles:
ld a, (bc)
inc bc
ld(hl++), a
dec d
2013-12-02 02:24:23 +01:00
jrnz lprintff80_copytiles
ld a, c0
ldff(47), a
ld a, 80
ldff(68), a
ld a, ff
ldff(69), a
ldff(69), a
ldff(69), a
ldff(69), a
ldff(69), a
ldff(69), a
ld a, 00
ldff(69), a
ldff(69), a
2013-12-02 02:24:23 +01:00
ldff a, (80)
ld(9800), a
xor a, a
ldff(43), a
ld a, 91
ldff(40), a
2013-12-02 02:24:23 +01:00
lprintff80_limbo:
jr lprintff80_limbo
2013-12-07 10:23:38 +01:00
.text@7400
lwaitly_b:
ld c, 44
lwaitly_b_loop:
ldff a, (c)
cmp a, b
jrnz lwaitly_b_loop
ret
2013-12-02 02:24:23 +01:00
.data@7a00
00 00 7f 7f 41 41 41 41
2013-02-20 20:02:06 +01:00
41 41 41 41 41 41 7f 7f
2013-12-02 02:24:23 +01:00
00 00 08 08 08 08 08 08
08 08 08 08 08 08 08 08
00 00 7f 7f 01 01 01 01
2013-02-20 20:02:06 +01:00
7f 7f 40 40 40 40 7f 7f
2013-12-02 02:24:23 +01:00
00 00 7f 7f 01 01 01 01
3f 3f 01 01 01 01 7f 7f
00 00 41 41 41 41 41 41
7f 7f 01 01 01 01 01 01
00 00 7f 7f 40 40 40 40
7e 7e 01 01 01 01 7e 7e
00 00 7f 7f 40 40 40 40
2013-02-20 20:02:06 +01:00
7f 7f 41 41 41 41 7f 7f
2013-12-02 02:24:23 +01:00
00 00 7f 7f 01 01 02 02
04 04 08 08 10 10 10 10
00 00 3e 3e 41 41 41 41
3e 3e 41 41 41 41 3e 3e
00 00 7f 7f 41 41 41 41
7f 7f 01 01 01 01 7f 7f