diff --git a/6502/6502Lib/src/private/m6502.cpp b/6502/6502Lib/src/private/m6502.cpp index 36c5340..475ef90 100644 --- a/6502/6502Lib/src/private/m6502.cpp +++ b/6502/6502Lib/src/private/m6502.cpp @@ -468,7 +468,7 @@ m6502::s32 m6502::CPU::Execute( s32 Cycles, Mem & memory ) Cycles -= 2; } break; //TODO: - //An original 6502 has does not correctly fetch the target + //An original 6502 does not correctly fetch the target //address if the indirect vector falls on a page boundary //( e.g.$xxFF where xx is any value from $00 to $FF ). //In this case fetches the LSB from $xxFF as expected but diff --git a/6502/6502Lib/src/public/m6502.h b/6502/6502Lib/src/public/m6502.h index 451c490..038bda7 100644 --- a/6502/6502Lib/src/public/m6502.h +++ b/6502/6502Lib/src/public/m6502.h @@ -23,7 +23,7 @@ struct m6502::Mem static constexpr u32 MAX_MEM = 1024 * 64; Byte Data[MAX_MEM]; - void Initialise() + void Initialize() { for ( u32 i = 0; i < MAX_MEM; i++ ) { @@ -82,7 +82,7 @@ struct m6502::CPU SP = 0xFF; Flag.C = Flag.Z = Flag.I = Flag.D = Flag.B = Flag.V = Flag.N = 0; A = X = Y = 0; - memory.Initialise(); + memory.Initialize(); } Byte FetchByte( s32& Cycles, const Mem& memory ) @@ -465,4 +465,5 @@ struct m6502::CPU * - Always takes a cycle for the Y page boundary) * - See "STA (Indirect,Y) */ Word AddrIndirectY_6( s32& Cycles, const Mem& memory ); -}; \ No newline at end of file +}; +