view python/isa/openrisc.lidl @ 283:c9781c73e7e2

Added first kernel files
author Windel Bouwman
date Fri, 15 Nov 2013 12:26:50 +0100
parents
children
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
  }
}