added: alu ldi
[calu.git] / cpu / src / alu_b.vhd
index 5fab318dc316d4f47bd74e31d25a83b9e58c96da..1bb83deb477674721e073482c8e639a1aedd5f36 100755 (executable)
@@ -99,7 +99,11 @@ begin
        when XOR_OP =>\r
                result_v := xor_result;\r
        when SHIFT_OP =>\r
-               result_v := shift_result;\r
+               result_v := shift_result;
+        when LDST_OP =>
+                if op_detail(IMM_OPT) = '1' then
+                        result_v := right_operand;
+                end if;\r
        end case;\r
        \r
 \r