fix oboe screen draw

This commit is contained in:
Nicholas Orlowsky 2024-04-10 22:24:13 -05:00
parent c1adfc84c0
commit 10cd8cb673
Signed by: nickorlow
GPG key ID: 838827D8C4611687

8
cpu.sv
View file

@ -56,22 +56,22 @@ logic [5:0] lcd_led;
begin
// bottom left
`define BLP ((y*128*2) + x*2 +127)
`define BLP ((y*128*2) + x*2 +128)
if (vram[`BLP/8][7-(`BLP%8)] == 1) begin
registers[15] <= 1;
end
vram[`BLP/8][7-(`BLP%8)] <= 1;
// bottom right
`define BRP ((y*128*2) + x*2 +128)
`define BRP ((y*128*2) + x*2 +129)
vram[`BRP/8][7-(`BRP%8)] <= 1;
// top left
`define TLP ((y*128*2) + x*2-1)
`define TLP ((y*128*2) + x*2)
vram[`TLP/8][7-(`TLP%8)] <= 1;
// top right
`define TRP ((y*128*2) + x*2)
`define TRP ((y*128*2) + x*2+1)
vram[`TRP/8][7-(`TRP%8)] <= 1;
end
endtask