diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-05-14 10:38:16 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-05-14 10:38:16 +0200 |
| commit | ab3635f44ab45e22150bc373e33b7cf11ea46f63 (patch) | |
| tree | 4159df3221c76a70548e7f3d2481e91b1770bfe6 /miasm2/arch/mips32/arch.py | |
| parent | 94d49ed54f07e3d399de74de13f5422837c031fa (diff) | |
| download | miasm-ab3635f44ab45e22150bc373e33b7cf11ea46f63.tar.gz miasm-ab3635f44ab45e22150bc373e33b7cf11ea46f63.zip | |
Parser: fix arguments name
Diffstat (limited to 'miasm2/arch/mips32/arch.py')
| -rw-r--r-- | miasm2/arch/mips32/arch.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/miasm2/arch/mips32/arch.py b/miasm2/arch/mips32/arch.py index 817954b6..15c59cf0 100644 --- a/miasm2/arch/mips32/arch.py +++ b/miasm2/arch/mips32/arch.py @@ -25,15 +25,15 @@ gpregs = cpu.reg_info(regs.regs32_str, regs.regs32_expr) LPARENTHESIS = Literal("(") RPARENTHESIS = Literal(")") -def cb_deref(t): - if len(t) != 4: +def cb_deref(tokens): + if len(tokens) != 4: raise NotImplementedError("TODO") - return AstMem(t[2] + t[0], 32) + return AstMem(tokens[2] + tokens[0], 32) -def cb_deref_nooff(t): - if len(t) != 3: +def cb_deref_nooff(tokens): + if len(tokens) != 3: raise NotImplementedError("TODO") - return AstMem(t[1], 32) + return AstMem(tokens[1], 32) base_expr = cpu.base_expr |