Mercurial > lcfOS
annotate python/target/openrisc.lidl @ 306:b145f8e6050b
Start on c3 rewrite
author | Windel Bouwman |
---|---|
date | Mon, 09 Dec 2013 19:00:21 +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 |