about summary refs log tree commit diff stats
path: root/miasm2/arch/mep
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-12-23 23:23:30 +0100
committerGitHub <noreply@github.com>2018-12-23 23:23:30 +0100
commit439eacecd16587bf0df8fd097b8c13677326b9f3 (patch)
treee19e9820bb8355730ae9bd0c706e414e39c895ef /miasm2/arch/mep
parent011e1e209b3d00afe3c8e65000209a568c5eb791 (diff)
parent814ccf50314852d12168ad5b8a4a875a86bc6e3d (diff)
downloadmiasm-439eacecd16587bf0df8fd097b8c13677326b9f3.tar.gz
miasm-439eacecd16587bf0df8fd097b8c13677326b9f3.zip
Merge pull request #908 from p-l-/codespell
Fix typos & add codespell
Diffstat (limited to '')
-rw-r--r--miasm2/arch/mep/arch.py6
-rw-r--r--miasm2/arch/mep/sem.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/miasm2/arch/mep/arch.py b/miasm2/arch/mep/arch.py
index 3cfa55a6..e4d66a63 100644
--- a/miasm2/arch/mep/arch.py
+++ b/miasm2/arch/mep/arch.py
@@ -313,7 +313,7 @@ class mn_mep(cls_mn):
     all_mn_inst = defaultdict(list)  # mnemonics objects
                                      # Note:
                                      #   - the key is the mnemonic Python class
-                                     #   - the data is an instanciated object
+                                     #   - the data is an instantiated object
 
     bintree = dict()  # Variable storing internal values used to guess a
                       # mnemonic during disassembly
@@ -321,7 +321,7 @@ class mn_mep(cls_mn):
     # Defines the instruction set that will be used
     instruction = instruction_mep
 
-    # Python module that stores registers informations
+    # Python module that stores registers information
     regs = mep_regs_module
 
     # Default delay slot
@@ -826,7 +826,7 @@ class mep_copro_reg_split(mep_copro_reg):
 
 
 class mep_deref_inc_reg(mep_deref_reg):
-    """Generic Toshiba MeP-c4 coprocess dereferenced & incremented registe
+    """Generic Toshiba MeP-c4 coprocess dereferenced & incremented register
     """
     parser = deref_inc_reg_parser
 
diff --git a/miasm2/arch/mep/sem.py b/miasm2/arch/mep/sem.py
index 9e0cba6b..fb67becd 100644
--- a/miasm2/arch/mep/sem.py
+++ b/miasm2/arch/mep/sem.py
@@ -265,18 +265,18 @@ def advck3(r0, rn, rm):
 
 @sbuild.parse
 def sub(reg1, reg2):
-    """SUB - Substract one register to another."""
+    """SUB - Subtract one register to another."""
 
     # Rn <- Rn - Rm
     reg1 = reg1 - reg2
 
 
 def sbvck3(ir, instr, r0, rn, rm):
-    """SBVCK3 - Check substraction overflow"""
+    """SBVCK3 - Check subtraction overflow"""
 
     # if(Overflow(Rn-Rm)) R0<-1 else R0<-0 (Signed)
 
-    # Substract registers
+    # Subtract registers
     reg_sub = ExprOp("+", rn, rm)
 
     # Get the register storing the highest value
@@ -1160,7 +1160,7 @@ class ir_mepb(IntermediateRepresentation):
         return instr_ir, extra_ir
 
     def get_next_break_loc_key(self, instr):
-        """Returns a new label that identifies where the instuction is going.
+        """Returns a new label that identifies where the instruction is going.
 
            Note: it eases linking IR blocs
         """