From 7bc1fb8888f1c14baedd93287b21ca8fb4771a3e Mon Sep 17 00:00:00 2001 From: Godzil Date: Fri, 20 Sep 2019 16:36:06 +0100 Subject: [PATCH] Change some commment about HW INTs and TODO tasks Bad language in there? yeah I know. --- oswan/source/ws.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/oswan/source/ws.cpp b/oswan/source/ws.cpp index 73e3c41..99d529c 100644 --- a/oswan/source/ws.cpp +++ b/oswan/source/ws.cpp @@ -221,13 +221,11 @@ int ws_executeLine(int16 *framebuffer, int renderLine) { ws_gpu_scanline=0; { - if((ws_ioRam[0xb2]&32))/*VBLANK END INT*/ + if((ws_ioRam[0xb2]&32)) /* VBLANK Timer */ { - if(ws_ioRam[0xa7]!=0x35)/*Beatmania Fix*/ - { - ws_ioRam[0xb6]&=~32; - nec_int((ws_ioRam[0xb0]+5)*4); - } + /* TODO: REPAIR THAT SHIT */ + ws_ioRam[0xb6]&=~32; + nec_int((ws_ioRam[0xb0]+5)*4); } } } @@ -237,7 +235,7 @@ int ws_executeLine(int16 *framebuffer, int renderLine) if(drawWholeScreen) { - if(ws_ioRam[0xb2]&64) /*VBLANK INT*/ + if(ws_ioRam[0xb2]&64) /* VBLANK INT */ { ws_ioRam[0xb6]&=~64; nec_int((ws_ioRam[0xb0]+6)*4); @@ -246,9 +244,9 @@ int ws_executeLine(int16 *framebuffer, int renderLine) vblank_count++; } - if(ws_ioRam[0xa4]&&(ws_ioRam[0xb2]&128)) /*HBLANK INT*/ + if(ws_ioRam[0xa4]&&(ws_ioRam[0xb2]&128)) /*HBLANK TMR*/ { - + /* TODO: Check that shit */ if(!ws_ioRam[0xa5]) { ws_ioRam[0xa5]=ws_ioRam[0xa4];