Skip to content

Commit

Permalink
VDP1: fix jump to the command with incorrect link address (Castlevani…
Browse files Browse the repository at this point in the history
…a SotN)
  • Loading branch information
srg320 committed Apr 20, 2024
1 parent c0b4610 commit 931f52a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtl/Saturn/VDP1/VDP1.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1504,8 +1504,8 @@ module VDP1 (
NEXT_ADDR = CMD_ADDR + 18'h10;
case (CMD.CMDCTRL.JP[1:0])
2'b00: begin CMD_ADDR <= NEXT_ADDR; end
2'b01: begin CMD_ADDR <= {CMD.CMDLINK,2'b00}; end
2'b10: begin CMD_ADDR <= {CMD.CMDLINK,2'b00}; CMD_RET_ADDR <= NEXT_ADDR; CMD_SUB_RUN <= 1; end
2'b01: begin CMD_ADDR <= {CMD.CMDLINK[15:2],2'b00,2'b00}; end
2'b10: begin CMD_ADDR <= {CMD.CMDLINK[15:2],2'b00,2'b00}; CMD_RET_ADDR <= NEXT_ADDR; CMD_SUB_RUN <= 1; end
2'b11: begin CMD_ADDR <= CMD_SUB_RUN ? CMD_RET_ADDR : NEXT_ADDR; CMD_SUB_RUN <= 0; end
endcase

Expand Down

0 comments on commit 931f52a

Please sign in to comment.