Initial commit (from Logisim-Assembler)
This commit is contained in:
30
README.md
Normal file
30
README.md
Normal file
@ -0,0 +1,30 @@
|
||||
# README
|
||||
|
||||
Small assembler that generates SystemVerilog ROM modules for [this](https://gitlab.com/ChUrl/quartus-8-bit-cpu).
|
||||
|
||||
## Usage
|
||||
|
||||
`svrasm -i <inputfile> -o <outputfile>`
|
||||
|
||||
## Instructionset
|
||||
|
||||
| Instruction | 1. Operand | 2. Operand | Note |
|
||||
|-------------|-----------------------------|-----------------|----------------------------------------|
|
||||
| MOV | Constant or Source Register | Target Register | |
|
||||
| AND | NONE | NONE | Works on reg1 and reg2, result in reg3 |
|
||||
| OR | NONE | NONE | Works on reg1 and reg2, result in reg3 |
|
||||
| NAND | NONE | NONE | Works on reg1 and reg2, result in reg3 |
|
||||
| NOR | NONE | NONE | Works on reg1 and reg2, result in reg3 |
|
||||
| ADD | NONE | NONE | Works on reg1 and reg2, result in reg3 |
|
||||
| SUB | NONE | NONE | Works on reg1 and reg2, result in reg3 |
|
||||
| JMP | NONE | NONE | Works on reg3 |
|
||||
| JEQ | NONE | NONE | Works on reg3 |
|
||||
| JLE | NONE | NONE | Works on reg3 |
|
||||
| JLEQ | NONE | NONE | Works on reg3 |
|
||||
| NOP | NONE | NONE | Works on reg3 |
|
||||
| JNEQ | NONE | NONE | Works on reg3 |
|
||||
| JGR | NONE | NONE | Works on reg3 |
|
||||
| JGEQ | NONE | NONE | Works on reg3 |
|
||||
|
||||
Line comments are recognized, indicated by `#`.
|
||||
|
Reference in New Issue
Block a user