mirror of
https://github.com/UzixLS/zx-sizif-xxs.git
synced 2025-07-19 07:11:28 +03:00
fix #1ffd port decoding
This commit is contained in:
@ -117,7 +117,8 @@ end
|
|||||||
|
|
||||||
|
|
||||||
/* PORT #1FFD */
|
/* PORT #1FFD */
|
||||||
wire port_1ffd_cs = bus.ioreq && bus.a_reg == 16'h1FFD && (machine == MACHINE_S3 || magic_map);
|
wire port_1ffd_cs = bus.ioreq && bus.a_reg[15:12] == 4'b0001 && !bus.a_reg[1] &&
|
||||||
|
(machine == MACHINE_S3 || magic_map);
|
||||||
always @(posedge clk28 or negedge rst_n) begin
|
always @(posedge clk28 or negedge rst_n) begin
|
||||||
if (!rst_n) begin
|
if (!rst_n) begin
|
||||||
port_1ffd <= 0;
|
port_1ffd <= 0;
|
||||||
|
Reference in New Issue
Block a user