From fb041b392cc79490c39c3b0f49f8c53c3b85a65b Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Tue, 30 Jan 2024 20:12:56 +0800 Subject: [PATCH] smpc: update macro usage of input_ examples --- smpc/input_intback.cpp | 4 ++-- smpc/input_keyboard.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/smpc/input_intback.cpp b/smpc/input_intback.cpp index ce5ff8c..ea64539 100644 --- a/smpc/input_intback.cpp +++ b/smpc/input_intback.cpp @@ -330,7 +330,7 @@ void main() // It appears Kronos does not correctly calculate the color address in the // VDP1 debugger. Kronos will report FFFC when the actual color table address // in this example is 7FFE0. - vdp1.vram.cmd[2].COLR = COLR__ADDRESS(color_address); // non-palettized (rgb15) color data + vdp1.vram.cmd[2].COLR = COLR__LOOKUP_TABLE__ADDRESS(color_address); // non-palettized (rgb15) color data vdp1.vram.cmd[2].SRCA = SRCA(character_address[0]); vdp1.vram.cmd[2].SIZE = SIZE__X(sprite_stride) | SIZE__Y(sprite_height); vdp1.vram.cmd[2].XA = foo[0].x; @@ -345,7 +345,7 @@ void main() // It appears Kronos does not correctly calculate the color address in the // VDP1 debugger. Kronos will report FFFC when the actual color table address // in this example is 7FFE0. - vdp1.vram.cmd[3].COLR = COLR__ADDRESS(color_address); // non-palettized (rgb15) color data + vdp1.vram.cmd[3].COLR = COLR__LOOKUP_TABLE__ADDRESS(color_address); // non-palettized (rgb15) color data vdp1.vram.cmd[3].SRCA = SRCA(character_address[1]); vdp1.vram.cmd[3].SIZE = SIZE__X(sprite_stride) | SIZE__Y(sprite_height); vdp1.vram.cmd[3].XA = foo[1].x; diff --git a/smpc/input_keyboard.cpp b/smpc/input_keyboard.cpp index b1d68e8..78b2755 100644 --- a/smpc/input_keyboard.cpp +++ b/smpc/input_keyboard.cpp @@ -415,7 +415,7 @@ void main() // It appears Kronos does not correctly calculate the color address in the // VDP1 debugger. Kronos will report FFFC when the actual color table address // in this example is 7FFE0. - vdp1.vram.cmd[2].COLR = COLR__ADDRESS(color_address); // non-palettized (rgb15) color data + vdp1.vram.cmd[2].COLR = COLR__LOOKUP_TABLE__ADDRESS(color_address); // non-palettized (rgb15) color data vdp1.vram.cmd[2].SRCA = SRCA(character_address[0]); vdp1.vram.cmd[2].SIZE = SIZE__X(sprite_stride) | SIZE__Y(sprite_height); vdp1.vram.cmd[2].XA = foo[0].x; @@ -430,7 +430,7 @@ void main() // It appears Kronos does not correctly calculate the color address in the // VDP1 debugger. Kronos will report FFFC when the actual color table address // in this example is 7FFE0. - vdp1.vram.cmd[3].COLR = COLR__ADDRESS(color_address); // non-palettized (rgb15) color data + vdp1.vram.cmd[3].COLR = COLR__LOOKUP_TABLE__ADDRESS(color_address); // non-palettized (rgb15) color data vdp1.vram.cmd[3].SRCA = SRCA(character_address[1]); vdp1.vram.cmd[3].SIZE = SIZE__X(sprite_stride) | SIZE__Y(sprite_height); vdp1.vram.cmd[3].XA = foo[1].x;