From 9dc6d7180438031d25daf6a68a3959c3cfa9312d Mon Sep 17 00:00:00 2001 From: joshua Date: Tue, 14 Dec 2021 01:46:40 -0600 Subject: Initial Commit --- instructions | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 instructions (limited to 'instructions') diff --git a/instructions b/instructions new file mode 100644 index 0000000..a2efe86 --- /dev/null +++ b/instructions @@ -0,0 +1,48 @@ +R-Type (Register to Register) +add 0110011 000 0000000 +sub 0110011 000 0100000 +sll 0110011 001 0000000 +xor 0110011 100 0000000 +sri 0110011 101 0000000 +sra 0110011 101 0000000 +or 0110011 110 0000000 +and 0110011 111 0000000 +lr.d 0110011 011 0001000 +sc.d 0110011 011 0001100 + +I-type Immediate and Load operations +lb 0000011 000 N/A +lh 0000011 001 N/A +lw 0000011 010 N/A +ld 0000011 011 N/A +lbu 0000011 100 N/A +lhu 0000011 101 N/A +lwu 0000011 110 N/A +addi 0010011 000 N/A +slli 0010011 001 000000 +xori 0010011 100 N/A +srli 0010011 101 000000 +srai 0010011 101 010000 +ori 0010011 110 N/A +andi 0010011 111 N/A +jalr 1100111 000 N/A + +S-type (Store) +sb 0100011 000 N/A +sh 0100011 001 N/A +sw 0100011 010 N/A +sd 0100011 111 N/A + +SB-type (Branches) +beq 1100111 000 N/A +bne 1100111 001 N/A +blt 1100111 100 N/A +bqe 1100111 101 N/A +bltu 1100111 110 N/A +bqeu 1100111 111 N/A + +U-type (Long immediate) +lui 0110111 N/A N/A + +Unconditional Jumps +UJ-type jalr 1101111 N/A N/A -- cgit v1.2.3