mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-24 07:30:24 +00:00
2.7.0.8
Added: New command PWD to display the current debugger directory.
This commit is contained in:
parent
f7f8dcf27d
commit
6bc89c65d2
@ -1,11 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
|
.8 Added: New command PWD to display the current debugger directory.
|
||||||
|
This is the directory used for scripts, loading/saving memory, and trace files.
|
||||||
|
Currently the debugger uses the same directory that the last disk image was loaded from.
|
||||||
|
It will have its own directory in a future version.
|
||||||
.7 Fixed: Cleaned up display of soft-switches to show address.
|
.7 Fixed: Cleaned up display of soft-switches to show address.
|
||||||
.6 Removed: Removed unused aliases.
|
.6 Removed: Unused aliases.
|
||||||
Reason: When a symbol table is specified with no args, the total # of symbols will be shown.
|
Reason: When a symbol table is specified with no args, the total # of symbols will be shown.
|
||||||
SYMBOLS1, SYMBOLS2, SYM0, SYM1, SYM2, SYM3, SYM4, SYM5, SYM6
|
SYMBOLS1, SYMBOLS2, SYM0, SYM1, SYM2, SYM3, SYM4, SYM5, SYM6
|
||||||
.5 Fixed: Increased console output height so that you can view all the SYMBASIC * output.
|
.5 Fixed: Increased console output height so that you can view all the SYMBASIC * output.
|
||||||
.4 Added: Two alises for Dos 3.3 and Prodos symbol tables
|
.4 Added: Two aliases for Dos 3.3 and Prodos symbol tables
|
||||||
SYMDOS
|
SYMDOS
|
||||||
SYMPRO
|
SYMPRO
|
||||||
.3 Added: Two new symbol tables added Dos 3.3 and Prodos.
|
.3 Added: Two new symbol tables added Dos 3.3 and Prodos.
|
||||||
|
@ -36,7 +36,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#define ALLOW_INPUT_LOWERCASE 1
|
#define ALLOW_INPUT_LOWERCASE 1
|
||||||
|
|
||||||
// See /docs/Debugger_Changelog.txt for full details
|
// See /docs/Debugger_Changelog.txt for full details
|
||||||
const int DEBUGGER_VERSION = MAKE_VERSION(2,7,0,7);
|
const int DEBUGGER_VERSION = MAKE_VERSION(2,7,0,8);
|
||||||
|
|
||||||
|
|
||||||
// Public _________________________________________________________________________________________
|
// Public _________________________________________________________________________________________
|
||||||
@ -1940,7 +1940,7 @@ Update_t CmdTraceFile (int nArgs)
|
|||||||
|
|
||||||
|
|
||||||
char sFilePath[ MAX_PATH ];
|
char sFilePath[ MAX_PATH ];
|
||||||
strcpy(sFilePath, g_sCurrentDir); // g_sProgramDir
|
strcpy(sFilePath, g_sCurrentDir); // TODO: g_sDebugDir
|
||||||
strcat(sFilePath, sFileName );
|
strcat(sFilePath, sFileName );
|
||||||
|
|
||||||
g_hTraceFile = fopen( sFilePath, "wt" );
|
g_hTraceFile = fopen( sFilePath, "wt" );
|
||||||
@ -2304,7 +2304,7 @@ void ConfigSave_PrepareHeader ( const Parameters_e eCategory, const Commands_e e
|
|||||||
Update_t CmdConfigSave (int nArgs)
|
Update_t CmdConfigSave (int nArgs)
|
||||||
{
|
{
|
||||||
TCHAR sFilename[ MAX_PATH ];
|
TCHAR sFilename[ MAX_PATH ];
|
||||||
_tcscpy( sFilename, g_sProgramDir ); // g_sCurrentDir
|
_tcscpy( sFilename, g_sProgramDir ); // TODO: g_sDebugDir
|
||||||
_tcscat( sFilename, g_sFileNameConfig );
|
_tcscat( sFilename, g_sFileNameConfig );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -3977,6 +3977,22 @@ Update_t CmdMemoryFill (int nArgs)
|
|||||||
static TCHAR g_sMemoryLoadSaveFileName[ MAX_PATH ] = TEXT("");
|
static TCHAR g_sMemoryLoadSaveFileName[ MAX_PATH ] = TEXT("");
|
||||||
|
|
||||||
|
|
||||||
|
//===========================================================================
|
||||||
|
Update_t CmdConfigGetDebugDir (int nArgs)
|
||||||
|
{
|
||||||
|
TCHAR sPath[ MAX_PATH + 8 ] = "Path: ";
|
||||||
|
_tcscat( sPath, g_sCurrentDir ); // TODO: debugger dir has no ` CONSOLE_COLOR_ESCAPE_CHAR ?!?!
|
||||||
|
ConsoleBufferPush( sPath );
|
||||||
|
|
||||||
|
return ConsoleUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
//===========================================================================
|
||||||
|
Update_t CmdConfigSetDebugDir (int nArgs)
|
||||||
|
{
|
||||||
|
return ConsoleUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
Update_t CmdMemoryLoad (int nArgs)
|
Update_t CmdMemoryLoad (int nArgs)
|
||||||
{
|
{
|
||||||
@ -4020,7 +4036,7 @@ Update_t CmdMemoryLoad (int nArgs)
|
|||||||
return Help_Arg_1( CMD_MEMORY_SAVE );
|
return Help_Arg_1( CMD_MEMORY_SAVE );
|
||||||
|
|
||||||
TCHAR sLoadSaveFilePath[ MAX_PATH ];
|
TCHAR sLoadSaveFilePath[ MAX_PATH ];
|
||||||
_tcscpy( sLoadSaveFilePath, g_sCurrentDir ); // g_sProgramDir
|
_tcscpy( sLoadSaveFilePath, g_sCurrentDir ); // TODO: g_sDebugDir
|
||||||
|
|
||||||
WORD nAddressStart;
|
WORD nAddressStart;
|
||||||
WORD nAddress2 = 0;
|
WORD nAddress2 = 0;
|
||||||
@ -4084,9 +4100,9 @@ Update_t CmdMemoryLoad (int nArgs)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ConsoleBufferPush( TEXT( "ERROR: Bad filename" ) );
|
ConsoleBufferPush( TEXT( "ERROR: Bad filename" ) );
|
||||||
TCHAR sPath[ MAX_PATH + 8 ] = "Path: ";
|
|
||||||
_tcscat( sPath, g_sCurrentDir );
|
CmdConfigGetDebugDir( 0 );
|
||||||
ConsoleBufferPush( sPath );
|
|
||||||
TCHAR sFile[ MAX_PATH + 8 ] = "File: ";
|
TCHAR sFile[ MAX_PATH + 8 ] = "File: ";
|
||||||
_tcscat( sFile, g_sMemoryLoadSaveFileName );
|
_tcscat( sFile, g_sMemoryLoadSaveFileName );
|
||||||
ConsoleBufferPush( sFile );
|
ConsoleBufferPush( sFile );
|
||||||
|
@ -99,6 +99,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
{TEXT("LOAD") , CmdConfigLoad , CMD_CONFIG_LOAD , "Load debugger configuration" },
|
{TEXT("LOAD") , CmdConfigLoad , CMD_CONFIG_LOAD , "Load debugger configuration" },
|
||||||
{TEXT("MONO") , CmdConfigColorMono , CMD_CONFIG_MONOCHROME , "Sets/Shows RGB for monochrome scheme" },
|
{TEXT("MONO") , CmdConfigColorMono , CMD_CONFIG_MONOCHROME , "Sets/Shows RGB for monochrome scheme" },
|
||||||
{TEXT("SAVE") , CmdConfigSave , CMD_CONFIG_SAVE , "Save debugger configuration" },
|
{TEXT("SAVE") , CmdConfigSave , CMD_CONFIG_SAVE , "Save debugger configuration" },
|
||||||
|
{TEXT("PWD") , CmdConfigGetDebugDir , CMD_CONFIG_GET_DEBUG_DIR , "Displays the current debugger directory. Used for scripts & mem load/save." },
|
||||||
|
{TEXT("CD") , CmdConfigSetDebugDir , CMD_CONFIG_SET_DEBUG_DIR , "Updates the current debugger directory." },
|
||||||
// Cursor
|
// Cursor
|
||||||
{TEXT("RET") , CmdCursorJumpRetAddr , CMD_CURSOR_JUMP_RET_ADDR , "Sets the cursor to the sub-routine caller" },
|
{TEXT("RET") , CmdCursorJumpRetAddr , CMD_CURSOR_JUMP_RET_ADDR , "Sets the cursor to the sub-routine caller" },
|
||||||
{TEXT( "^") , NULL , CMD_CURSOR_LINE_UP }, // \x2191 = Up Arrow (Unicode)
|
{TEXT( "^") , NULL , CMD_CURSOR_LINE_UP }, // \x2191 = Up Arrow (Unicode)
|
||||||
|
@ -352,6 +352,8 @@
|
|||||||
, CMD_CONFIG_LOAD
|
, CMD_CONFIG_LOAD
|
||||||
, CMD_CONFIG_MONOCHROME // MONO # rr gg bb
|
, CMD_CONFIG_MONOCHROME // MONO # rr gg bb
|
||||||
, CMD_CONFIG_SAVE
|
, CMD_CONFIG_SAVE
|
||||||
|
, CMD_CONFIG_GET_DEBUG_DIR
|
||||||
|
, CMD_CONFIG_SET_DEBUG_DIR
|
||||||
// Cursor
|
// Cursor
|
||||||
, CMD_CURSOR_JUMP_RET_ADDR
|
, CMD_CURSOR_JUMP_RET_ADDR
|
||||||
, CMD_CURSOR_LINE_UP // Smart Line Up
|
, CMD_CURSOR_LINE_UP // Smart Line Up
|
||||||
@ -632,6 +634,8 @@
|
|||||||
Update_t CmdConfigSave (int nArgs);
|
Update_t CmdConfigSave (int nArgs);
|
||||||
Update_t CmdConfigSetFont (int nArgs);
|
Update_t CmdConfigSetFont (int nArgs);
|
||||||
Update_t CmdConfigGetFont (int nArgs);
|
Update_t CmdConfigGetFont (int nArgs);
|
||||||
|
Update_t CmdConfigGetDebugDir (int nArgs);
|
||||||
|
Update_t CmdConfigSetDebugDir (int nArgs);
|
||||||
// Cursor
|
// Cursor
|
||||||
Update_t CmdCursorFollowTarget(int nArgs);
|
Update_t CmdCursorFollowTarget(int nArgs);
|
||||||
Update_t CmdCursorLineDown (int nArgs);
|
Update_t CmdCursorLineDown (int nArgs);
|
||||||
|
Loading…
Reference in New Issue
Block a user