mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-03-04 00:29:26 +00:00
Debugger: added help for videoinfo cmd
This commit is contained in:
parent
b3eb789e03
commit
604aff4bbb
@ -6814,26 +6814,20 @@ Update_t CmdVideoScannerInfo(int nArgs)
|
||||
{
|
||||
if (nArgs != 1)
|
||||
{
|
||||
ConsoleBufferPush("Video-scanner display config: <dec|hex|real|apple>");
|
||||
Help_Arg_1(CMD_VIDEO_SCANNER_INFO);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (strcmp(g_aArgs[1].sArg, "dec") == 0)
|
||||
{
|
||||
g_videoScannerDisplayInfo.isDecimal = true;
|
||||
}
|
||||
else if (strcmp(g_aArgs[1].sArg, "hex") == 0)
|
||||
{
|
||||
g_videoScannerDisplayInfo.isDecimal = false;
|
||||
}
|
||||
else if (strcmp(g_aArgs[1].sArg, "real") == 0)
|
||||
{
|
||||
g_videoScannerDisplayInfo.isHorzReal = true;
|
||||
}
|
||||
else if (strcmp(g_aArgs[1].sArg, "apple") == 0)
|
||||
{
|
||||
g_videoScannerDisplayInfo.isHorzReal = false;
|
||||
}
|
||||
else
|
||||
Help_Arg_1(CMD_VIDEO_SCANNER_INFO);
|
||||
}
|
||||
|
||||
ConsoleBufferToDisplay();
|
||||
|
@ -240,7 +240,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
// {TEXT("VARSSAVE") , CmdVarsSave , CMD_VARIABLES_SAVE },
|
||||
// {TEXT("SET") , CmdVarsSet , CMD_VARIABLES_SET },
|
||||
// Video-scanner info
|
||||
{TEXT("VIDEOINFO") , CmdVideoScannerInfo , CMD_VIDEO_SCANNER_INFO, "Video-scanner info" },
|
||||
{TEXT("VIDEOINFO") , CmdVideoScannerInfo , CMD_VIDEO_SCANNER_INFO, "Video-scanner display configuration" },
|
||||
// View
|
||||
{TEXT("TEXT") , CmdViewOutput_Text4X , CMD_VIEW_TEXT4X, "View Text screen (current page)" },
|
||||
{TEXT("TEXT1") , CmdViewOutput_Text41 , CMD_VIEW_TEXT41, "View Text screen Page 1" },
|
||||
|
@ -3702,7 +3702,7 @@ void DrawVideoScannerInfo (int line)
|
||||
|
||||
if (h < 0)
|
||||
{
|
||||
h = h + 65;
|
||||
h = h + NTSC_GetCyclesPerLine();
|
||||
v = v - 1;
|
||||
if (v < 0)
|
||||
v = v + NTSC_GetVideoLines();
|
||||
|
@ -1400,7 +1400,21 @@ Update_t CmdHelpSpecific (int nArgs)
|
||||
ConsoleColorizePrint( sText, " Usage: symbol" );
|
||||
ConsoleBufferPush( " Looks up symbol in all 3 symbol tables: main, user, source" );
|
||||
break;
|
||||
// View
|
||||
// Video-Scanner
|
||||
case CMD_VIDEO_SCANNER_INFO:
|
||||
ConsoleColorizePrint(sText, " Usage: <dec|hex|real|apple>");
|
||||
ConsoleBufferPush(" Where:");
|
||||
ConsoleBufferPush(" <dec|hex> changes output to dec/hex");
|
||||
ConsoleBufferPush(" <real|apple> alters horz value to hbl-l,visible,hbl-r or hbl-r+l,visible");
|
||||
{
|
||||
char sText[CONSOLE_WIDTH];
|
||||
ConsolePrintFormat(sText, " %sRed%s=invisible (hbl or vbl active) / %sGreen%s=visible"
|
||||
,CHC_KEY , CHC_DEFAULT // red
|
||||
,CHC_COMMAND, CHC_DEFAULT // green
|
||||
);
|
||||
}
|
||||
break;
|
||||
// View
|
||||
case CMD_VIEW_TEXT4X:
|
||||
case CMD_VIEW_TEXT41:
|
||||
case CMD_VIEW_TEXT42:
|
||||
|
@ -2318,6 +2318,11 @@ UINT NTSC_GetCyclesPerFrame(void)
|
||||
return g_videoScanner6502Cycles;
|
||||
}
|
||||
|
||||
UINT NTSC_GetCyclesPerLine(void)
|
||||
{
|
||||
return VIDEO_SCANNER_MAX_HORZ;
|
||||
}
|
||||
|
||||
UINT NTSC_GetVideoLines(void)
|
||||
{
|
||||
return (GetVideoRefreshRate() == VR_50HZ) ? VIDEO_SCANNER_MAX_VERT_PAL : VIDEO_SCANNER_MAX_VERT;
|
||||
|
@ -21,5 +21,6 @@
|
||||
enum VideoRefreshRate_e;
|
||||
void NTSC_SetRefreshRate(VideoRefreshRate_e rate);
|
||||
UINT NTSC_GetCyclesPerFrame(void);
|
||||
UINT NTSC_GetCyclesPerLine(void);
|
||||
UINT NTSC_GetVideoLines(void);
|
||||
bool NTSC_IsVisible(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user