Mercurial > lcfOS
comparison python/target/arminstructions.py @ 305:0615b5308710
Updated docs
author | Windel Bouwman |
---|---|
date | Fri, 06 Dec 2013 13:50:38 +0100 |
parents | 158068af716c |
children | 6f4753202b9a |
comparison
equal
deleted
inserted
replaced
304:fa99f36fabb5 | 305:0615b5308710 |
---|---|
744 return u16((self.opcode << 7) |self.imm7) | 744 return u16((self.opcode << 7) |self.imm7) |
745 | 745 |
746 def __repr__(self): | 746 def __repr__(self): |
747 return '{} sp, sp, {}'.format(self.mnemonic, self.imm7 << 2) | 747 return '{} sp, sp, {}'.format(self.mnemonic, self.imm7 << 2) |
748 | 748 |
749 | |
749 @instruction | 750 @instruction |
750 class AddSp(addspsp_base): | 751 class AddSp(addspsp_base): |
751 mnemonic = 'add' | 752 mnemonic = 'add' |
752 opcode = 0b101100000 | 753 opcode = 0b101100000 |
753 | 754 |