From cc1af4381689a8ca9fc476385f13a692223b49cf Mon Sep 17 00:00:00 2001 From: Gyorgy Szombathelyi Date: Sat, 16 Feb 2019 13:55:34 +0100 Subject: [PATCH] [Gameboy] Add forced color mode --- cores/gameboy/gb_mist.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cores/gameboy/gb_mist.v b/cores/gameboy/gb_mist.v index ed0736e..e8eda65 100644 --- a/cores/gameboy/gb_mist.v +++ b/cores/gameboy/gb_mist.v @@ -70,17 +70,18 @@ wire [7:0] joystick_1; parameter CONF_STR = { "GAMEBOY;;", "F,GBCGB ,Load;", + "O4,Mode,Auto,Color;", "O1,LCD color,white,yellow;", "O2,Boot,Normal,Fast;", "T3,Reset" }; -parameter CONF_STR_LEN = 9+14+26+20+8; +parameter CONF_STR_LEN = 9+14+19+26+20+8; // the status register is controlled by the on screen display (OSD) wire [7:0] status; wire [1:0] buttons; -wire isGBC = dio_index[7:6] == 0; +wire isGBC = (dio_index[7:6] == 0) || status[4]; // include user_io module for arm controller communication user_io #(.STRLEN(CONF_STR_LEN)) user_io (