Mercurial > lcfOS
diff python/target/openrisc.lidl @ 290:7b38782ed496
File moves
author | Windel Bouwman |
---|---|
date | Sun, 24 Nov 2013 11:24:15 +0100 |
parents | python/isa/openrisc.lidl@c9781c73e7e2 |
children | 534b94b40aa8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/target/openrisc.lidl Sun Nov 24 11:24:15 2013 +0100 @@ -0,0 +1,26 @@ + +// Openrisc description in lidl (lcfos isa description language) + +// Register storage: +storage r { + width: 32 + size: 32 +} + + +instruction add { + encoding: '111111111DDDDDDAAAAAABBBBBB' + semantics: D = A + B +} + + +// ... + +instruction push { + encoding: '' + semantics: { + sp = X + sp = sp - 4 + } +} +