diff --git a/src/cpu/core_dyn_x86/decoder.h b/src/cpu/core_dyn_x86/decoder.h index 80e2299f..a9f90d07 100644 --- a/src/cpu/core_dyn_x86/decoder.h +++ b/src/cpu/core_dyn_x86/decoder.h @@ -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(); diff --git a/src/cpu/core_dynrec.cpp b/src/cpu/core_dynrec.cpp index e56d8a2c..ed975f56 100644 --- a/src/cpu/core_dynrec.cpp +++ b/src/cpu/core_dynrec.cpp @@ -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 diff --git a/src/cpu/core_dynrec/cache.h b/src/cpu/core_dynrec/cache.h index 3b1a5984..5c814360 100644 --- a/src/cpu/core_dynrec/cache.h +++ b/src/cpu/core_dynrec/cache.h @@ -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; }; diff --git a/src/cpu/core_dynrec/decoder.h b/src/cpu/core_dynrec/decoder.h index 4c7dc6fe..08b52441 100644 --- a/src/cpu/core_dynrec/decoder.h +++ b/src/cpu/core_dynrec/decoder.h @@ -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)); diff --git a/src/cpu/paging.cpp b/src/cpu/paging.cpp index 7dbff72f..6ac9b664 100644 --- a/src/cpu/paging.cpp +++ b/src/cpu/paging.cpp @@ -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) { diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index 992ed4a4..44dc221f 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -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) { diff --git a/src/debug/debug_gui.cpp b/src/debug/debug_gui.cpp index c57872fb..60166d91 100644 --- a/src/debug/debug_gui.cpp +++ b/src/debug/debug_gui.cpp @@ -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 diff --git a/src/dos/dev_con.h b/src/dos/dev_con.h index 39002035..79a6e42c 100644 --- a/src/dos/dev_con.h +++ b/src/dos/dev_con.h @@ -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); diff --git a/src/dos/dos_files.cpp b/src/dos/dos_files.cpp index 4a3b26c8..c1574f17 100644 --- a/src/dos/dos_files.cpp +++ b/src/dos/dos_files.cpp @@ -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; diff --git a/src/dos/drive_virtual.cpp b/src/dos/drive_virtual.cpp index c119d873..43bfe8d1 100644 --- a/src/dos/drive_virtual.cpp +++ b/src/dos/drive_virtual.cpp @@ -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; } diff --git a/src/ints/int10_memory.cpp b/src/ints/int10_memory.cpp index 7beda20d..47b1afe7 100644 --- a/src/ints/int10_memory.cpp +++ b/src/ints/int10_memory.cpp @@ -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;