Skip to content

Commit

Permalink
Memory map selection according to video mode
Browse files Browse the repository at this point in the history
Thanks to this change, some parts of the area5150 demo that didn't look right, like the dancing elephant, are now displayed correctly.

Thanks @somhi for noticing this detail in MiSTer PCXT core.
  • Loading branch information
spark2k06 committed Feb 17, 2023
1 parent 60bb9b6 commit 42bff7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verilog/cga.v
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ module cga(
// Just use the MDA VRAM interface (no snow)
mda_vram video_buffer (
.clk(clk),
.isa_addr(tandy_mode ? video_mem_cs ? {4'b0000, bus_a[14:0]} : tandy_page_data[3] ? {3'b000, tandy_page_data[5:3], bus_a[13:0]} : {2'b00, tandy_page_data[5:4], bus_a[14:0]} : {4'b0000, bus_a[14:0]}),
.isa_addr(tandy_mode ? video_mem_cs ? {4'b0000, bus_a[14:0]} : tandy_page_data[3] ? {3'b000, tandy_page_data[5:3], bus_a[13:0]} : {2'b00, tandy_page_data[5:4], bus_a[14:0]} : {5'b00000, bus_a[13:0]}),
.isa_din(bus_d),
.isa_dout(bus_out_mem),
.isa_read((bus_mem_cs | video_mem_cs) & ~bus_memr_synced_l),
Expand Down
Binary file modified verilog/isavideo.binm
Binary file not shown.

0 comments on commit 42bff7b

Please sign in to comment.