From 5f7913a508f18ca9664223dde5ae16608595a08b Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Sun, 6 Apr 2008 01:04:37 -0400 Subject: [PATCH] Bugfix for SCF --- GBZ80Core.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GBZ80Core.v b/GBZ80Core.v index ae6ff00..fef4de2 100644 --- a/GBZ80Core.v +++ b/GBZ80Core.v @@ -843,7 +843,7 @@ module GBZ80Core( registers[`REG_F] <= {registers[`REG_F][7],1'b1,1'b1,registers[`REG_F][4:0]}; end `INSN_alu_SCF: begin - registers[`REG_F] <= {registers[`REG_F][7:5],1,registers[`REG_F][3:0]}; + registers[`REG_F] <= {registers[`REG_F][7:5],1'b1,registers[`REG_F][3:0]}; end `INSN_alu_CCF: begin registers[`REG_F] <= {registers[`REG_F][7:5],~registers[`REG_F][4],registers[`REG_F][3:0]}; -- 2.43.0