-
Notifications
You must be signed in to change notification settings - Fork 0
/
intro_aux.asm
81 lines (77 loc) · 1.42 KB
/
intro_aux.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;Airaki! - FSE 2014
;Released under the GPL V3, see LICENSE.TXT
rendersword:
ld a,(ISWORD_Y) ;Tip of sword
ldi (hl),a
ld a,d
ldi (hl),a
ld a,T_ISWORD
ldi (hl),a
ld a,%10000000+PALETTE_SWORD
ldi (hl),a
ld a,(ISWORD_Y)
ldi (hl),a
ld a,d
add 8
ldi (hl),a
ld a,T_ISWORD+2
ldi (hl),a
ld a,%10000000+PALETTE_SWORD
ldi (hl),a
ld b,5 ;Core
ld a,(ISWORD_Y)
add 16
ld c,a
-:
ld a,c
ldi (hl),a
ld a,d
ldi (hl),a
ld a,T_ISWORD+4
ldi (hl),a
ld a,%10000000+PALETTE_SWORD
ldi (hl),a
ld a,c
ldi (hl),a
add 16
ld c,a
ld a,d
add 8
ldi (hl),a
ld a,T_ISWORD+6
ldi (hl),a
ld a,%10000000+PALETTE_SWORD
ldi (hl),a
dec b
jr nz,-
ld a,(ISWORD_Y) ;Handguard
add 96
ldi (hl),a
ld a,d
sub 4
ldi (hl),a
ld a,T_ISWORD+8
ldi (hl),a
ld a,PALETTE_SWORD
ldi (hl),a
ld a,(ISWORD_Y)
add 96
ldi (hl),a
ld a,d
add 4
ldi (hl),a
ld a,T_ISWORD+10
ldi (hl),a
ld a,PALETTE_SWORD
ldi (hl),a
ld a,(ISWORD_Y)
add 96
ldi (hl),a
ld a,d
add 12
ldi (hl),a
ld a,T_ISWORD+12
ldi (hl),a
ld a,PALETTE_SWORD
ldi (hl),a
ret