comparison python/cortexm3.py @ 268:5ec7580976d9

Op naar tree-IR
author Windel Bouwman
date Wed, 14 Aug 2013 20:12:40 +0200
parents ed14e077124c
children 6f2423df0675
comparison
equal deleted inserted replaced
267:e7c8f7eb3f59 268:5ec7580976d9
325 class mov_ins(ArmInstruction): 325 class mov_ins(ArmInstruction):
326 """ mov Rd, imm8, move immediate value into register """ 326 """ mov Rd, imm8, move immediate value into register """
327 mnemonic = 'mov' 327 mnemonic = 'mov'
328 opcode = 4 # 00100 Rd(3) imm8 328 opcode = 4 # 00100 Rd(3) imm8
329 operands = (RegOp, Imm8) 329 operands = (RegOp, Imm8)
330 irpattern = ir.ImmLoad
331 def __init__(self, rd, imm): 330 def __init__(self, rd, imm):
332 self.imm = imm.imm 331 self.imm = imm.imm
333 self.r = rd.num 332 self.r = rd.num
334 333
335 def encode(self): 334 def encode(self):