Mercurial > lcfOS
annotate python/target/openrisc.lidl @ 336:d1ecc493384e
Added spiffy armtoken class for bit fiddeling. Added cool test that checks for build repeatability
author | Windel Bouwman |
---|---|
date | Wed, 19 Feb 2014 22:32:15 +0100 |
parents | 534b94b40aa8 |
children |
rev | line source |
---|---|
283 | 1 |
292 | 2 // Openrisc description in LIDL (lcfos isa description language) |
283 | 3 |
4 // Register storage: | |
5 storage r { | |
6 width: 32 | |
7 size: 32 | |
8 } | |
9 | |
10 | |
11 instruction add { | |
12 encoding: '111111111DDDDDDAAAAAABBBBBB' | |
13 semantics: D = A + B | |
14 } | |
15 | |
16 | |
17 // ... | |
18 | |
19 instruction push { | |
20 encoding: '' | |
21 semantics: { | |
22 sp = X | |
23 sp = sp - 4 | |
24 } | |
25 } | |
26 |