diff options
| author | Ajax <commial@gmail.com> | 2018-05-16 10:54:19 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2018-05-16 13:31:51 +0200 |
| commit | 33d66355955f54651d52ccca6109dca8b5576113 (patch) | |
| tree | 7c690705ee691efecbc469646b60604ae9a4a69d | |
| parent | da83f3541821d275bc2051ccc6e0f81a58286a71 (diff) | |
| download | miasm-33d66355955f54651d52ccca6109dca8b5576113.tar.gz miasm-33d66355955f54651d52ccca6109dca8b5576113.zip | |
MSP430: remove duplicate or unused operations implem
| -rw-r--r-- | miasm2/ir/translators/C.py | 3 | ||||
| -rw-r--r-- | miasm2/jitter/arch/JitCore_msp430.h | 12 |
2 files changed, 0 insertions, 15 deletions
diff --git a/miasm2/ir/translators/C.py b/miasm2/ir/translators/C.py index 59fa0de5..26443b09 100644 --- a/miasm2/ir/translators/C.py +++ b/miasm2/ir/translators/C.py @@ -50,9 +50,6 @@ class TranslatorC(Translator): elif expr.op == '!': return "(~ %s)&0x%x" % (self.from_expr(expr.args[0]), size2mask(expr.args[0].size)) - elif expr.op in ["hex2bcd", "bcd2hex"]: - return "%s_%d(%s)" % (expr.op, expr.args[0].size, - self.from_expr(expr.args[0])) elif (expr.op.startswith("double_to_") or expr.op.endswith("_to_double") or expr.op.startswith("access_") or diff --git a/miasm2/jitter/arch/JitCore_msp430.h b/miasm2/jitter/arch/JitCore_msp430.h index cad028a9..3934d37a 100644 --- a/miasm2/jitter/arch/JitCore_msp430.h +++ b/miasm2/jitter/arch/JitCore_msp430.h @@ -36,16 +36,4 @@ typedef struct { #define RETURN_PC return BlockDst; -uint16_t bcdadd_16(uint16_t a, uint16_t b); - -uint16_t bcdadd_cf_16(uint16_t a, uint16_t b); - -uint16_t hex2bcd_16(uint16_t a); - -uint8_t hex2bcd_8(uint8_t a); - -uint8_t bcd2hex_8(uint8_t a); - -uint16_t bcd2hex_16(uint16_t a); - void dump_gpregs(vm_cpu_t* vmcpu); |