Mercurial > lcfOS
comparison python/ppci/target/arm/__init__.py @ 350:2b02bd286fe9
Fixed A9 hello worle
author | Windel Bouwman |
---|---|
date | Sat, 08 Mar 2014 16:29:03 +0100 |
parents | 3bb7dcfe5529 |
children | 899ae3aea803 |
comparison
equal
deleted
inserted
replaced
349:13a6e73b448f | 350:2b02bd286fe9 |
---|---|
113 | 113 |
114 self.add_keyword('ldr') | 114 self.add_keyword('ldr') |
115 self.add_instruction(['ldr', 'reg', ',', '[', 'reg', ',', 'imm8', ']'], | 115 self.add_instruction(['ldr', 'reg', ',', '[', 'reg', ',', 'imm8', ']'], |
116 lambda rhs: Ldr(rhs[1], rhs[4], rhs[6])) | 116 lambda rhs: Ldr(rhs[1], rhs[4], rhs[6])) |
117 | 117 |
118 self.add_instruction(['ldr', 'reg', ',', 'ID'], | |
119 lambda rhs: Ldr(rhs[1], rhs[3].val)) | |
120 | |
118 self.add_keyword('str') | 121 self.add_keyword('str') |
119 self.add_instruction(['str', 'reg', ',', '[', 'reg', ',', 'imm8', ']'], | 122 self.add_instruction(['str', 'reg', ',', '[', 'reg', ',', 'imm8', ']'], |
120 lambda rhs: Str(rhs[1], rhs[4], rhs[6])) | 123 lambda rhs: Str(rhs[1], rhs[4], rhs[6])) |
121 | 124 |
122 self.add_instruction(['str', 'reg', ',', '[', 'reg', ',', 'reg', ']'], | 125 self.add_instruction(['str', 'reg', ',', '[', 'reg', ',', 'reg', ']'], |