From 4447c0027a3009eb280e2e08ca6b9753d265938e Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Tue, 14 Jan 2014 14:20:57 +0100 Subject: Division now works :) --- cpu/cpu.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/cpu.ml b/cpu/cpu.ml index 78caa30..9b5eed0 100644 --- a/cpu/cpu.ml +++ b/cpu/cpu.ml @@ -163,7 +163,7 @@ let rl, rh, i, ex, exf, pc = let wr = mux instr_alu_finished wr i_r in let rwd = mux instr_alu_finished rwd alu_d1 in let wr = mux instr_alu_store_2 wr (const "101") in - let rwd = mux instr_alu_store_2 rwd alu_d2 in + let rwd = mux instr_alu_store_2 rwd (reg 16 alu_d2) in let exec_finished = mux instr_alu exec_finished (mux double_instr_alu instr_alu_finished instr_alu_store_2) in -- cgit v1.2.3