view python/target/openrisc.lidl @ 291:b07d28a5ca56

Added some forgotten files
author Windel Bouwman
date Thu, 28 Nov 2013 20:31:47 +0100
parents 7b38782ed496
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
  }
}