summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-04-26 14:00:55 -0500
committerBryan Bishop <kanzure@gmail.com>2012-04-26 14:00:55 -0500
commit74292fa9226bc216391c4244a724939f7c9659ad (patch)
tree260743499f7e03507f6516c884b850c96b826724
parentf6ec80e24e481a0dedb4ad75ee7614cb78cfb2c0 (diff)
add DataByteWordMacro for the preprocessor
original-commit-id: 8f2afd2f7c00bec87fdd33bb7745505a13d39c2e
-rw-r--r--crystal.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/crystal.py b/crystal.py
index aef435c..d658928 100644
--- a/crystal.py
+++ b/crystal.py
@@ -1602,6 +1602,23 @@ class GivePoke(Command):
self.last_address = current_address
return True
+class DataByteWordMacro(Command):
+ """ Only used by the preprocessor.
+ """
+
+ id = None
+ macro_name = "dbw"
+ size = 3
+ override_byte_check = True
+
+ param_types = {
+ 0: {"name": "db value", "class": DecimalParam},
+ 1: {"name": "dw value", "class": PointerLabelParam},
+ }
+
+ def __init__(self): pass
+ def parse(self): pass
+ def to_asm(self): pass
#byte: [name, [param1 name, param1 type], [param2 name, param2 type], ...]
#0x9E: ["verbosegiveitem", ["item", ItemLabelByte], ["quantity", SingleByteParam]],