From 10cd8cb673caa203f1a9d339b9521c5bedcacf80 Mon Sep 17 00:00:00 2001 From: Nicholas Orlowsky Date: Wed, 10 Apr 2024 22:24:13 -0500 Subject: [PATCH] fix oboe screen draw --- cpu.sv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu.sv b/cpu.sv index aa01b86..6f32b6d 100644 --- a/cpu.sv +++ b/cpu.sv @@ -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