-
Notifications
You must be signed in to change notification settings - Fork 3
/
asm_credits.ccs
118 lines (96 loc) · 2.24 KB
/
asm_credits.ccs
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* Import ASM 65816 file */
import asm65816
/* Change Credits text for Paula's dad, Paula's dad and Poo's master */
/*Remove the RAM name call for Paula
ROM[0xC4E901] = "[EA EA EA EA]"
ROM[0xC4E915] = ASMLoadAddress12 (paula_dad) // Paula's dad at 0xC4E796
*/
paula_dad:
"Pap[C0] de [00]"
ROM[0xC4E8C7] = {
LDA_d (0x0A)
STA_d (0x0E)
LDA_d (0x0C)
STA_d (0x10)
ASMLoadAddress12 (paula_dad) //0xC4E796
JSL (0xC07C8A)
LDA_d (0x0A)
CLC
ADC_i (8) //Character length of previous text string. (6 original, 8 for translation)
STA_d (0x0E)
LDA_d (0x0C)
STA_d (0x10)
LDA_i (0x9A2D) //Paula's name from Character Stats Table.
STA_d (0x12)
PHB
SEP (0x20)
PLA
STA_d (0x14)
STZ_d (0x15)
REP (0x20)
LDA_i (5) //Maximum length of character names.
JSL (0xC08EED)
JMP_l (0xC4E923)
}
/*Remove the RAM name call for Paula
ROM[0xC4E9A3] = "[EA EA EA EA]"
ROM[0xC4E9B7] = ASMLoadAddress12 (paula_mom) // Paula's mom at 0xC4E79D
*/
paula_mom:
"Mam[C0] de [00]"
ROM[0xC4E980] = {
LDA_d (0x0A)
STA_d (0x0E)
LDA_d (0x0C)
STA_d (0x10)
ASMLoadAddress12 (paula_mom) //0xC4E79D
JSL (0xC07C8A)
LDA_d (0x0A)
CLC
ADC_i (8) //Character length of previous text string. (6 original, 8 for translation)
STA_d (0x0E)
LDA_d (0x0C)
STA_d (0x10)
LDA_i (0x9A2D) //Paula's name from Character Stats Table.
STA_d (0x12)
PHB
SEP (0x20)
PLA
STA_d (0x14)
STZ_d (0x15)
REP (0x20)
LDA_i (5) //Maximum length for character names.
JSL (0xC08EED)
JMP_l (0xC4E9C5)
}
/*Remove the RAM name call for Poo
ROM[0xC4EA4C] = "[EA EA EA EA]"
ROM[0xC4EA60] = ASMLoadAddress12 (poo_master) // Poo's master at 0xC4E7A4
*/
poo_master:
"Maestro de [00]"
ROM[0xC4EA22] = {
LDA_d (0x0A)
STA_d (0x0E)
LDA_d (0x0C)
STA_d (0x10)
ASMLoadAddress12 (poo_master) //0xC4E7A4
JSL (0xC07C8A)
LDA_d (0x0A)
CLC
ADC_i (11) //Character length of previous text string. (9 for original, 11 for translation)
STA_d (0x0E)
LDA_d (0x0C)
STA_d (0x10)
LDA_i (0x9AEB) //Poo's name from Character Stats Table.
STA_d (0x12)
PHB
SEP (0x20)
PLA
STA_d (0x14)
STZ_d (0x15)
REP (0x20)
LDA_i (5) //Maximum length for character names
JSL (0xC08EED)
JMP_l (0xC4EA6E)
}