Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
83 lines (77 sloc) 1.39 KB
at da84, executed by glitch item ws l' m:
init:
F3 - di
3E 00 - lda,0
e0 26 - ldh FF26, a
3E 80 - lda,0x80
e0 26 - ldh FF26, a
3E F0 - lda,0xF0
e0 13 - ldh FF13, a
e0 12 - ldh FF12, a
3E 80 - lda,0x80
e0 11 - ldh FF11, a
3E 87 - lda,0x87
e0 14 - ldh FF14, a
3E 10 - lda,0x10
e0 00 - ldh FF00, a
waitpress:
f0 00 - ldh a, FF00
e6 08 - and 8
20 fa - jr nz, waitpress
regprep:
26 00 - ld h,0
2e 00 - ld l,0
16 db - ld d,0xdb //vollut addr high 0xdb
0e 00 - ld c,0
testsend:
3E 0F - lda,0xF
cd e1 da - call subfunc1
3E 0A - lda,0xA
cd e1 da - call subfunc1
3E 05 - lda,5
cd e1 da - call subfunc1
3E 00 - lda,0
cd e1 da - call subfunc1
loop:
2A - ld a,(hl+)
47 - ld b,a
cd e1 da - call subfunc1
78 - ld a,b
cb 37 - swap a
cd e1 da - call subfunc1
2c - inc l
2d - dec l
20 f1 - jr nz, loop
7c - ld a,h
e6 3f - and 0x3F
20 ec - jr nz, loop
0c - inc c
cb 71 - bit 6,c
end:
20 fe - jr nz, end
26 20 - ld h,0x20
71 - ld (hl),c
26 40 - ld h,0x40
18 e0 - jr loop
subfunc1:
e6 0F - and 0xF
c6 00 - add a,0x00 //vollut addr low 0x00
5f - ld e,a
3E 11 - lda,0x11
e0 25 - ldh FF25, a
1a - ld a,(de)
e0 24 - ldh FF24, a
cd fa da - call subfunc2
3E 00 - lda,0
e0 24 - ldh FF24, a
e0 25 - ldh FF25, a
cd fa da - call subfunc2
c9 - ret
subfunc2:
3E 1e - lda,0x1E
sf2dec:
3D - dec a
20 FD - jr nz, sf2dec
c9 - ret
vollut at DB00:
11 13 15 17 31 33 35 37 51 53 55 57 71 73 75 77
You can’t perform that action at this time.