about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2014-09-11 13:02:15 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2014-09-11 13:02:15 +0200
commit56161aa090cab52c38b961e8537adee3872a635d (patch)
tree5651771ade69f059b1befcf1d60ea803d82a0d95
parent79f4d605ed663a95298f107ab03e7b3d56c0604e (diff)
downloadmiasm-56161aa090cab52c38b961e8537adee3872a635d.tar.gz
miasm-56161aa090cab52c38b961e8537adee3872a635d.zip
core/cpu: move bs8
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/arch.py8
-rw-r--r--miasm2/core/cpu.py9
2 files changed, 9 insertions, 8 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 31ee2eb9..186cbd8b 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -951,14 +951,6 @@ class mn_x86(cls_mn):
         return cand_same_mode + cand_diff_mode
 
 
-class bs8(bs):
-    prio = default_prio
-
-    def __init__(self, v, cls=None, fname=None, **kargs):
-        super(bs8, self).__init__(int2bin(v, 8), 8,
-                                  cls=cls, fname=fname, **kargs)
-
-
 class bs_modname_size(bs_divert):
     prio = 1
 
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py
index a2bccbd3..d5464305 100644
--- a/miasm2/core/cpu.py
+++ b/miasm2/core/cpu.py
@@ -1759,6 +1759,15 @@ class int32_noarg(imm_noarg):
         self.value = v & self.lmask
         return True
 
+class bs8(bs):
+    prio = default_prio
+
+    def __init__(self, v, cls=None, fname=None, **kargs):
+        super(bs8, self).__init__(int2bin(v, 8), 8,
+                                  cls=cls, fname=fname, **kargs)
+
+
+
 
 def swap_uint(size, i):
     if size == 8: