Mercurial > lcfOS
comparison python/testasm.py @ 219:1fa3e0050b49
Expanded ad hoc code generator
author | Windel Bouwman |
---|---|
date | Sat, 06 Jul 2013 12:38:09 +0200 |
parents | 494828a7adf1 |
children | 5af52987f5bd |
comparison
equal
deleted
inserted
replaced
218:494828a7adf1 | 219:1fa3e0050b49 |
---|---|
184 | 184 |
185 def testLdr5(self): | 185 def testLdr5(self): |
186 self.feed('ldr r4, [r0 + 0]') | 186 self.feed('ldr r4, [r0 + 0]') |
187 self.check('0468') | 187 self.check('0468') |
188 | 188 |
189 @unittest.skip | |
190 def testLdrSpRel(self): | |
191 self.feed('ldr r0, [sp + 4]') | |
192 self.check('0198') | |
193 | |
194 @unittest.skip | |
195 def testStrSpRel(self): | |
196 self.feed('str r0, [sp + 4]') | |
197 self.check('0190') | |
198 | |
189 def testCmpRegReg(self): | 199 def testCmpRegReg(self): |
190 self.feed('cmp r0, r1') | 200 self.feed('cmp r0, r1') |
191 self.check('8842') | 201 self.check('8842') |
192 | 202 |
193 def testSequence1(self): | 203 def testSequence1(self): |