Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 6502/6502Lib/src/private/m6502.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions 6502/6502Lib/src/public/m6502.h
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
{
Expand Down Expand Up @@ -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 )
Expand Down Expand Up @@ -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 );
};
};