Mercurial > lcfOS
comparison python/testasm.py @ 275:6f2423df0675
Fixed serve arm-as
author | Windel Bouwman |
---|---|
date | Sat, 14 Sep 2013 17:29:10 +0200 |
parents | ed14e077124c |
children | 56d37ed4b4d2 |
comparison
equal
deleted
inserted
replaced
274:ea93e0a7a31e | 275:6f2423df0675 |
---|---|
263 | 263 |
264 def testLeftShit(self): | 264 def testLeftShit(self): |
265 self.feed('lsl r3, r5') | 265 self.feed('lsl r3, r5') |
266 self.check('ab40') | 266 self.check('ab40') |
267 | 267 |
268 def testModSp(self): | |
269 self.feed('add sp,sp,8') | |
270 self.feed('add sp,sp,16') | |
271 self.feed('sub sp,sp,32') | |
272 self.feed('sub sp,sp,4') | |
273 self.check('02b004b0 88b081b0') | |
274 | |
268 def testSequence1(self): | 275 def testSequence1(self): |
269 self.feed('mov r5, 3') | 276 self.feed('mov r5, 3') |
270 self.feed('add r4, r5, 0') | 277 self.feed('add r4, r5, 0') |
271 self.feed('loop: add r6, r4, 7') | 278 self.feed('loop: add r6, r4, 7') |
272 self.feed('cmp r6, 5') | 279 self.feed('cmp r6, 5') |