Mercurial > lcfOS
comparison python/target/arminstructionselector.py @ 341:4d204f6f7d4e devel
Rewrite of assembler parts
author | Windel Bouwman |
---|---|
date | Fri, 28 Feb 2014 18:07:14 +0100 |
parents | d1ecc493384e |
children |
comparison
equal
deleted
inserted
replaced
340:c7cc54c0dfdf | 341:4d204f6f7d4e |
---|---|
6 from .basetarget import Label, Comment, Alignment, LabelRef, DebugInfo, Nop | 6 from .basetarget import Label, Comment, Alignment, LabelRef, DebugInfo, Nop |
7 from .instructionselector import InstructionSelector | 7 from .instructionselector import InstructionSelector |
8 from .arminstructions import Orr, Lsl, Str2, Ldr2, Ldr3 | 8 from .arminstructions import Orr, Lsl, Str2, Ldr2, Ldr3 |
9 from .arminstructions import B, Bl, Bgt, Blt, Beq, Bne | 9 from .arminstructions import B, Bl, Bgt, Blt, Beq, Bne |
10 from .arminstructions import Mov2, Mov3 | 10 from .arminstructions import Mov2, Mov3 |
11 from .arminstructions import Add, Sub, Cmp, Sub2, Add2, Mul | 11 from .arminstructions import Cmp, Sub2, Mul |
12 from .basetarget import Imm8, Imm7, Imm3 | 12 from .basetarget import Imm8, Imm7, Imm3 |
13 | 13 |
14 # Import BURG spec for arm: | 14 # Import BURG spec for arm: |
15 spec_file = same_dir(__file__, 'arm.brg') | 15 spec_file = same_dir(__file__, 'arm.brg') |
16 arm_matcher = pyburg.load_as_module(spec_file) | 16 arm_matcher = pyburg.load_as_module(spec_file) |