From: Joshua Wise Date: Sun, 6 Apr 2008 05:04:37 +0000 (-0400) Subject: Bugfix for SCF X-Git-Url: http://git.joshuawise.com/fpgaboy.git/commitdiff_plain/5f7913a508f18ca9664223dde5ae16608595a08b Bugfix for SCF --- 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]};