revert '_' prefix to some macro_names
This commit is contained in:
@@ -1501,8 +1501,8 @@ class Command:
|
|||||||
def to_asm(self):
|
def to_asm(self):
|
||||||
#start with the rgbasm macro name for this command
|
#start with the rgbasm macro name for this command
|
||||||
output = ""
|
output = ""
|
||||||
if len(self.macro_name) > 0 and self.macro_name[0].isdigit():
|
#if len(self.macro_name) > 0 and self.macro_name[0].isdigit():
|
||||||
output += "_"
|
# output += "_"
|
||||||
output += self.macro_name
|
output += self.macro_name
|
||||||
#return if there are no params
|
#return if there are no params
|
||||||
if len(self.param_types.keys()) == 0: return output
|
if len(self.param_types.keys()) == 0: return output
|
||||||
@@ -1835,8 +1835,8 @@ def generate_macros(filename="../script_macros.asm"):
|
|||||||
output = "; This file is generated by generate_macros.\n"
|
output = "; This file is generated by generate_macros.\n"
|
||||||
for command in command_classes:
|
for command in command_classes:
|
||||||
output += "\n"
|
output += "\n"
|
||||||
if command.macro_name[0].isdigit():
|
#if command.macro_name[0].isdigit():
|
||||||
output += "_"
|
# output += "_"
|
||||||
output += command.macro_name + ": MACRO\n"
|
output += command.macro_name + ": MACRO\n"
|
||||||
output += spacing + "db $%.2x\n"%(command.id)
|
output += spacing + "db $%.2x\n"%(command.id)
|
||||||
current_param = 1
|
current_param = 1
|
||||||
|
Reference in New Issue
Block a user