Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ilyachichkov/rust_cybercobra_assembler

CYBERcobra Assembler
https://github.com/ilyachichkov/rust_cybercobra_assembler

assembler low-level risc-v rust

Last synced: about 1 month ago
JSON representation

CYBERcobra Assembler

Awesome Lists containing this project

README

        

# CYBERcobra Assembler

## Description

Assembler for architecture: [CYBERcobra 3000 Pro 2.1](https://github.com/MPSU/APS/tree/master/Labs/04.%20Primitive%20programmable%20device).

### ISA

*Supported commands:*

1. `add` `rd`, `rs1`, `rs2`
2. `sub` `rd`, `rs1`, `rs2`
3. `xor` `rd`, `rs1`, `rs2`
4. `or` `rd`, `rs1`, `rs2`
5. `and` `rd`, `rs1`, `rs2`
6. `sra` `rd`, `rs1`, `rs2`
7. `sll` `rd`, `rs1`, `rs2`
8. `srl` `rd`, `rs1`, `rs2`
9. `slts` `rd`, `rs1`, `rs2`
10. `sltu` `rd`, `rs1`, `rs2`
11. `blt` `rs1`, `rs2`, `imm`
12. `bltu` `rs1`, `rs2`, `imm`
13. `bge` `rs1`, `rs2`, `imm`
14. `bgeu` `rs1`, `rs2`, `imm`
15. `beq` `rs1`, `rs2`, `imm`
16. `bne` `rs1`, `rs2`, `imm`
17. `li` `rd`, `imm`
18. `j` `imm`

### Simular projects

[Assembler | C++](https://github.com/BROsandr/cybercobra_assembler)

### Example

[Assembler program](./test/program.s)

### Workflow

Rust, VS Code

## Author

[Github](https://github.com/IlyaChichkov)