From df4145af824e55c2ad86f5b875ee92f88fa1d9bc Mon Sep 17 00:00:00 2001 From: Cassie Jones Date: Fri, 17 Jan 2020 03:51:09 -0500 Subject: [PATCH] Minor ISA changes --- isa.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/isa.txt b/isa.txt index 58fbdd3..98bada1 100644 --- a/isa.txt +++ b/isa.txt @@ -1,6 +1,6 @@ 4 16-bit general-purpose registers r0, r1, r2, r3 -ALU2: trap nope add sub and or xor +ALU2: misc ???? add sub addpc and or xor ALU1: inc dec neg comp ALUA: add ALUI: lsl lsr asr rol clr set tog ext @@ -8,15 +8,16 @@ ALUI: lsl lsr asr rol clr set tog ext 7654_3210 --------- -------- 0000_0000 => HALT: halt -0001_0000 => NOPE: nope +0000_0001 => NOPE: nope +0000_xxxx => RESERVED 0ooo_aabb => ALU2: a = a op b 1000_aabb => JALR: jalr ra # when a == b 1000_aabb => MOVE: a = b # when a != b 1001_aaoo => ALU1: a = op a 101f_aabb => LDST: a <-> [b] 110o_aabb oiiiiiii => BRNC: branch if a op b # when a != b -1100_0000 iiiiiiii => JMPI: jump offset -1101_aabb fiiiiiii => LSI0: a <-> [imm * 2] +1100_0000 iiiiiiii => JUMP: jump offset +1101_aabb fiiiiiii => LSI0: a <-> [imm * 2] # a == b 1110_aa00 iiiiiiii => ALUA: a = a + imm 1110_aa01 ooooiiii => ALUI: a = a op imm 1110_aa10 iiiiiiii => LDLI: lo(a) = imm -- 2.47.0