comparison test/testarmasm.py @ 354:5477e499b039

Added some sort of string functionality
author Windel Bouwman
date Thu, 13 Mar 2014 18:59:06 +0100
parents 899ae3aea803
children 52492b304adf
comparison
equal deleted inserted replaced
353:b8ad45b3a573 354:5477e499b039
93 self.feed('blt x') 93 self.feed('blt x')
94 self.feed('x:') 94 self.feed('x:')
95 self.feed('mul r4,r5,r2') 95 self.feed('mul r4,r5,r2')
96 self.check('174045e2 ffffffba 950204e0') 96 self.check('174045e2 ffffffba 950204e0')
97 97
98 def testAdr(self):
99 self.feed('adr r5, cval')
100 self.feed('adr r9, cval')
101 self.feed('adr r8, cval')
102 self.feed('cval:')
103 self.feed('adr r11, cval')
104 self.feed('adr r12, cval')
105 self.feed('adr r1, cval')
106 self.check('04508fe2 00908fe2 04804fe2 08b04fe2 0cc04fe2 10104fe2')
107
98 108
99 if __name__ == '__main__': 109 if __name__ == '__main__':
100 unittest.main() 110 unittest.main()