From 0ff1dcd9b6a02d2565be3345c268fe602959e612 Mon Sep 17 00:00:00 2001 From: ahmedosama20 Date: Sun, 30 Apr 2017 12:05:45 +0200 Subject: [PATCH] Change SHL SHR RLC RRC to set overflow to 0 --- alu.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alu.vhd b/alu.vhd index 0919c15..beb9a9b 100755 --- a/alu.vhd +++ b/alu.vhd @@ -155,7 +155,7 @@ Oflag:flags_tmp(3) <= '1' when ( (a(15)='0' and b(15)='0' and tmp_out(15)='1' an or ( a(15)='0' and tmp_out(15)='1' and s = "1100") -- a+1 or ( a(15)='1' and tmp_out(15)='0' and s = "1101") -- a-1 ) -else ( flags_tmp(0) xor flags_tmp (2)) when (s="1000" or s="1001" or s="0111" or s="0110") --Shift And Rotate + else '0';