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 | 9b4a170ed646fb73b162075e1124b12bcb96b279 (patch) | |
tree | da494f3d82fdcc5d43f004ce9b15d50e5af4e576 | |
parent | de87a83a8d00abfb5f1ab3f4d3069f6f4756a2fc (diff) |
better asm output for TrainerHeader and TrainerGroupHeader
original-commit-id: 35e6903395f8d6e3dc91d1e5bd71bfb138f012c8
-rw-r--r-- | crystal.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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" |