diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-20 03:20:01 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-20 03:20:01 -0500 |
commit | 35e6903395f8d6e3dc91d1e5bd71bfb138f012c8 (patch) | |
tree | c00245e022d2a5b7d7fcb069cb90e5e2f8033f2f | |
parent | efd43a17b2869b02f88949dfc02d646a3fa718db (diff) |
better asm output for TrainerHeader and TrainerGroupHeader
-rw-r--r-- | extras/crystal.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index ab58a19cd..26f9add54 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -3611,7 +3611,7 @@ class TrainerGroupHeader: self.size = size def to_asm(self): - output = "\n\n".join(["; "+header.make_name()+" at "+hex(header.address)+"\n"+header.to_asm() for header in self.individual_trainer_headers]) + output = "\n\n".join(["; "+header.make_constant_name()+" ("+str(header.trainer_id)+") at "+hex(header.address)+"\n"+header.to_asm() for header in self.individual_trainer_headers]) return output class TrainerHeader: @@ -3713,8 +3713,7 @@ class TrainerHeader: def to_asm(self): output = "db \""+self.name+"\"\n" - output += "; data type\n" - output += "db $%.2x\n"%(self.data_type) + output += "db $%.2x ; data type\n" % (self.data_type) output += self.party_mons.to_asm() output += "\n; last_address="+hex(self.last_address)+" size="+str(self.size) return output @@ -3768,7 +3767,8 @@ class TrainerPartyMonParser: return True def to_asm(self): - output = "; " + ", ".join([param_type["name"] for (key, param_type) in self.param_types.items()]) + "\n" + output = "" + #output = "; " + ", ".join([param_type["name"] for (key, param_type) in self.param_types.items()]) + "\n" for mon in self.mons: output += "db " + ", ".join([param.to_asm() for (name, param) in self.mons[mon].items()]) output += "\n" |