diff --git a/cpu.v b/cpu.v index 16e4e65..f5c4a22 100644 --- a/cpu.v +++ b/cpu.v @@ -410,10 +410,13 @@ always @* * This can be used to keep the current address, freeing up the original * source of the address, such as the ALU or DI. */ -always @(posedge clk) begin - ABL <= AB[7:0]; - ABH <= AB[15:8]; -end +always @(posedge clk) + if( state != PUSH0 && state != PUSH1 && + state != PULL0 && state != PULL1 && state != PULL2 ) + begin + ABL <= AB[7:0]; + ABH <= AB[15:8]; + end /* * Data Out MUX