Some typo corrections of the comments. (jomalin)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3763
This commit is contained in:
parent
fd65f6f897
commit
fc1ffcc528
11 changed files with 16 additions and 16 deletions
|
@ -2677,7 +2677,7 @@ restart_prefix:
|
|||
goto illegalopcode;
|
||||
}
|
||||
}
|
||||
// link to next block because the maximal number of opcodes has been reached
|
||||
// link to next block because the maximum number of opcodes has been reached
|
||||
dyn_set_eip_end();
|
||||
dyn_reduce_cycles();
|
||||
dyn_save_critical_regs();
|
||||
|
|
|
@ -246,7 +246,7 @@ run_block:
|
|||
// the block was exited due to a non-predictable control flow
|
||||
// modifying instruction (like ret) or some nontrivial cpu state
|
||||
// changing instruction (for example switch to/from pmode),
|
||||
// or the maximal number of instructions to translate was reached
|
||||
// or the maximum number of instructions to translate was reached
|
||||
#if C_HEAVY_DEBUG
|
||||
if (DEBUG_HeavyIsBreakpoint()) return debugCallback;
|
||||
#endif
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
CacheBlockDynRec * to; // this block can transfer control to the to-block
|
||||
CacheBlockDynRec * next;
|
||||
CacheBlockDynRec * from; // the from-block can transfer control to this block
|
||||
} link[2]; // maximal two links (conditional jumps)
|
||||
} link[2]; // maximum two links (conditional jumps)
|
||||
CacheBlockDynRec * crossblock;
|
||||
};
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
/*
|
||||
The function CreateCacheBlock translates the instruction stream
|
||||
until either an unhandled instruction is found, the maximal
|
||||
until either an unhandled instruction is found, the maximum
|
||||
number of translated instructions is reached or some critical
|
||||
instruction is encountered.
|
||||
*/
|
||||
|
@ -586,7 +586,7 @@ restart_prefix:
|
|||
goto illegalopcode;
|
||||
}
|
||||
}
|
||||
// link to next block because the maximal number of opcodes has been reached
|
||||
// link to next block because the maximum number of opcodes has been reached
|
||||
dyn_set_eip_end();
|
||||
dyn_reduce_cycles();
|
||||
gen_jmp_ptr(&decode.block->link[0].to,offsetof(CacheBlockDynRec,cache.start));
|
||||
|
|
|
@ -849,7 +849,7 @@ void PAGING_SetDirBase(Bitu cr3) {
|
|||
}
|
||||
|
||||
void PAGING_Enable(bool enabled) {
|
||||
/* If paging is disable we work from a default paging table */
|
||||
/* If paging is disabled, we work from a default paging table */
|
||||
if (paging.enabled==enabled) return;
|
||||
paging.enabled=enabled;
|
||||
if (enabled) {
|
||||
|
|
|
@ -412,7 +412,7 @@ void CBreakpoint::ActivateBreakpoints(PhysPt adr, bool activate)
|
|||
};
|
||||
|
||||
bool CBreakpoint::CheckBreakpoint(Bitu seg, Bitu off)
|
||||
// Checks if breakpoint is valid an should stop execution
|
||||
// Checks if breakpoint is valid and should stop execution
|
||||
{
|
||||
if ((ignoreAddressOnce!=0) && (GetAddress(seg,off)==ignoreAddressOnce)) {
|
||||
ignoreAddressOnce = 0;
|
||||
|
@ -476,7 +476,7 @@ bool CBreakpoint::CheckBreakpoint(Bitu seg, Bitu off)
|
|||
};
|
||||
|
||||
bool CBreakpoint::CheckIntBreakpoint(PhysPt adr, Bit8u intNr, Bit16u ahValue)
|
||||
// Checks if interrupt breakpoint is valid an should stop execution
|
||||
// Checks if interrupt breakpoint is valid and should stop execution
|
||||
{
|
||||
if ((ignoreAddressOnce!=0) && (adr==ignoreAddressOnce)) {
|
||||
ignoreAddressOnce = 0;
|
||||
|
@ -491,7 +491,7 @@ bool CBreakpoint::CheckIntBreakpoint(PhysPt adr, Bit8u intNr, Bit16u ahValue)
|
|||
bp = (*i);
|
||||
if ((bp->GetType()==BKPNT_INTERRUPT) && bp->IsActive() && (bp->GetIntNr()==intNr)) {
|
||||
if ((bp->GetValue()==BPINT_ALL) || (bp->GetValue()==ahValue)) {
|
||||
// Ignoie it once ?
|
||||
// Ignore it once ?
|
||||
if (ignoreOnce==bp) {
|
||||
ignoreOnce=0;
|
||||
bp->Activate(true);
|
||||
|
@ -1402,7 +1402,7 @@ char* AnalyzeInstruction(char* inst, bool saveSelector) {
|
|||
// Variable found ?
|
||||
CDebugVar* var = CDebugVar::FindVar(address);
|
||||
if (var) {
|
||||
// Replace occurance
|
||||
// Replace occurence
|
||||
char* pos1 = strchr(inst,'[');
|
||||
char* pos2 = strchr(inst,']');
|
||||
if (pos1 && pos2) {
|
||||
|
|
|
@ -161,7 +161,7 @@ static void DrawBars(void) {
|
|||
|
||||
|
||||
static void MakeSubWindows(void) {
|
||||
/* The Std output win should go in bottem */
|
||||
/* The Std output win should go at the bottom */
|
||||
/* Make all the subwindows */
|
||||
int win_main_maxy, win_main_maxx; getmaxyx(dbg.win_main,win_main_maxy,win_main_maxx);
|
||||
int outy=1; //Match values with above
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
private:
|
||||
Bit8u readcache;
|
||||
Bit8u lastwrite;
|
||||
struct ansi { /* should create a constructor which fills them with the appriorate values */
|
||||
struct ansi { /* should create a constructor, which would fill them with the appropriate values */
|
||||
bool esc;
|
||||
bool sci;
|
||||
bool enabled;
|
||||
|
@ -128,7 +128,7 @@ bool device_CON::Write(Bit8u * data,Bit16u * size) {
|
|||
count++;
|
||||
continue;
|
||||
} else {
|
||||
/* Some sort of "hack" now that \n doesn't set col to 0 (int10_char.cpp old chessgame) */
|
||||
/* Some sort of "hack" now that '\n' doesn't set col to 0 (int10_char.cpp old chessgame) */
|
||||
if((data[count] == '\n') && (lastwrite != '\r')) INT10_TeletypeOutputAttr('\r',ansi.attr,ansi.enabled);
|
||||
/* pass attribute only if ansi is enabled */
|
||||
INT10_TeletypeOutputAttr(data[count],ansi.attr,ansi.enabled);
|
||||
|
|
|
@ -299,7 +299,7 @@ bool DOS_Rename(char const * const oldname,char const * const newname) {
|
|||
}
|
||||
|
||||
if (Drives[drivenew]->Rename(fullold,fullnew)) return true;
|
||||
/* If it still fails. which error should we give ? PATH NOT FOUND or EACCESS */
|
||||
/* If it still fails, which error should we give ? PATH NOT FOUND or EACCESS */
|
||||
LOG(LOG_FILES,LOG_NORMAL)("Rename fails for %s to %s, no proper errorcode returned.",oldname,newname);
|
||||
DOS_SetError(DOSERR_FILE_NOT_FOUND);
|
||||
return false;
|
||||
|
|
|
@ -101,7 +101,7 @@ bool Virtual_File::Read(Bit8u * data,Bit16u * size) {
|
|||
}
|
||||
|
||||
bool Virtual_File::Write(Bit8u * data,Bit16u * size){
|
||||
/* Not really writeable */
|
||||
/* Not really writable */
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ void INT10_SetupRomMemory(void) {
|
|||
int10.rom.video_dcc_table=RealMake(0xC000,int10.rom.used);
|
||||
phys_writeb(rom_base+int10.rom.used++,0x10); // number of entries
|
||||
phys_writeb(rom_base+int10.rom.used++,1); // version number
|
||||
phys_writeb(rom_base+int10.rom.used++,8); // maximal display code
|
||||
phys_writeb(rom_base+int10.rom.used++,8); // maximum display code
|
||||
phys_writeb(rom_base+int10.rom.used++,0); // reserved
|
||||
// display combination codes
|
||||
phys_writew(rom_base+int10.rom.used,0x0000); int10.rom.used+=2;
|
||||
|
|
Loading…
Add table
Reference in a new issue