Mercurial > lcfOS
comparison python/isa/openrisc.lidl @ 283:c9781c73e7e2
Added first kernel files
author | Windel Bouwman |
---|---|
date | Fri, 15 Nov 2013 12:26:50 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
282:c137f1fe3e65 | 283:c9781c73e7e2 |
---|---|
1 | |
2 // Openrisc description in lidl (lcfos isa description language) | |
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 |