about summary refs log tree commit diff stats
path: root/miasm2/arch/msp430/arch.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-05-14 10:38:16 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-05-14 10:38:16 +0200
commitab3635f44ab45e22150bc373e33b7cf11ea46f63 (patch)
tree4159df3221c76a70548e7f3d2481e91b1770bfe6 /miasm2/arch/msp430/arch.py
parent94d49ed54f07e3d399de74de13f5422837c031fa (diff)
downloadmiasm-ab3635f44ab45e22150bc373e33b7cf11ea46f63.tar.gz
miasm-ab3635f44ab45e22150bc373e33b7cf11ea46f63.zip
Parser: fix arguments name
Diffstat (limited to 'miasm2/arch/msp430/arch.py')
-rw-r--r--miasm2/arch/msp430/arch.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/miasm2/arch/msp430/arch.py b/miasm2/arch/msp430/arch.py
index e27d714e..e4d03edb 100644
--- a/miasm2/arch/msp430/arch.py
+++ b/miasm2/arch/msp430/arch.py
@@ -20,28 +20,28 @@ conditional_branch = ['jnz', 'jz', 'jnc', 'jc',
                       'jn', 'jge', 'jl']
 unconditional_branch = ['jmp']
 
-def cb_deref_nooff(t):
-    assert len(t) == 1
-    result = AstMem(t[0], 16)
+def cb_deref_nooff(tokens):
+    assert len(tokens) == 1
+    result = AstMem(tokens[0], 16)
     return result
 
 
-def cb_deref_pinc(t):
-    assert len(t) == 1
+def cb_deref_pinc(tokens):
+    assert len(tokens) == 1
 
-    result = AstOp('autoinc', *t)
+    result = AstOp('autoinc', *tokens)
     return result
 
 
-def cb_deref_off(t):
-    assert len(t) == 2
-    result = AstMem(t[1] + t[0], 16)
+def cb_deref_off(tokens):
+    assert len(tokens) == 2
+    result = AstMem(tokens[1] + tokens[0], 16)
     return result
 
 
-def cb_expr(t):
-    assert(len(t) == 1)
-    result = t[0]
+def cb_expr(tokens):
+    assert(len(tokens) == 1)
+    result = tokens[0]
     return result