Start on cleanup of tab stops

This commit is contained in:
michaelangel007 2020-05-20 10:02:15 -07:00
parent c87216db65
commit bf63cf3d53
2 changed files with 37 additions and 1 deletions

View File

@ -67,6 +67,22 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// Font
FontConfig_t g_aFontConfig[ NUM_FONTS ];
// Tabstops -- See TabStops_e
static int aDisasmTabStopsMaster[ NUM_TAB_STOPS ] =
{ 5, 14, 26, 30, 41, 48, 49, 51, 54, 59, 62 };
int g_aDisasmTabStops[ NUM_TAB_STOPS ] =
{ 5, 14, 26, 30, 41, 48, 49, 51, 54, 59, 62 };
// sAddress, sOpcodes, sTarget, sTargetOffset, nTargetOffset, sTargetPointer, sTargetValue, sImmediate, nImmediate, sBranch );
//> Address Seperator Opcodes Label Mnemonic Target [Immediate] [Branch]
//
//> xxxx: xx xx xx LABEL MNEMONIC 'E' =
//> ^ ^ ^ ^ ^
//> 6 17 27 41 46
static int g_aDisasmTabStopsPixels[ NUM_TAB_STOPS ];
// Private ________________________________________________________________________________________
char g_aDebuggerVirtualTextScreen[ DEBUG_VIRTUAL_TEXT_HEIGHT ][ DEBUG_VIRTUAL_TEXT_WIDTH ];

View File

@ -48,8 +48,28 @@
{
DISPLAY_HEIGHT = 384,
MAX_DISPLAY_LINES = DISPLAY_HEIGHT / CONSOLE_FONT_HEIGHT,
MAX_ADDRESS_HISTORY = 32
};
enum TabStop_e
{ // First set of tab stops are dynamic
TS_OPCODE
, TS_LABEL
, TS_INSTRUCTION
, TS_TARGET
, TS_EFFECTIVE_ADDRESS // Effective Address : Preview Byte
, TS_BRANCH // Branch Indicator
, TS_CHAR // Preview (and Immediate) Char
, _NUM_TAB_STOPS
// Second set of tab stops are static
, TS_REG_NAME = _NUM_TAB_STOPS
, TS_REG_CHAR
, TS_REG_HEX
, TS_BREAKPOINT
, NUM_TAB_STOPS
};
extern int g_aDisasmTabStops[ NUM_TAB_STOPS ];
int GetConsoleTopPixels( int y );
extern FontConfig_t g_aFontConfig[ NUM_FONTS ];