view python/target/openrisc.lidl @ 306:b145f8e6050b

Start on c3 rewrite
author Windel Bouwman
date Mon, 09 Dec 2013 19:00:21 +0100
parents 534b94b40aa8
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
  }
}