view 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 source


// 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
  }
}