diff python/target.py @ 249:e41e4109addd

Added current position arrow
author Windel Bouwman
date Fri, 26 Jul 2013 20:26:05 +0200
parents 8786811a5a59
children 6f2423df0675
line wrap: on
line diff
--- a/python/target.py	Fri Jul 26 16:46:02 2013 +0200
+++ b/python/target.py	Fri Jul 26 20:26:05 2013 +0200
@@ -86,8 +86,10 @@
 class Comment(PseudoInstruction):
     def __init__(self, txt):
         self.txt = txt
+
     def encode(self):
         return bytes()
+
     def __repr__(self):
         return '; {}'.format(self.txt)
 
@@ -107,6 +109,15 @@
             pad.append(0)
         return bytes(pad)
 
+class DebugInfo(PseudoInstruction):
+    def __init__(self, i):
+        self.info = i
+
+    def __repr__(self):
+        return 'DebugInfo: {}'.format(self.info)
+
+    def encode(self):
+        return bytes()
 
 class Register(Operand):
     def __init__(self, name):