mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-05-31 22:41:34 +00:00
Debugger cleanup
This commit is contained in:
parent
e5b6a819da
commit
86f71cb3d7
|
@ -430,9 +430,9 @@ Fx BEQ r SBC (d),Y sbc (z) --- --- SBC d,X INC z,X --- SED SBC a,Y
|
|||
|
||||
|
||||
//===========================================================================
|
||||
bool _6502_CalcRelativeOffset( int nOpcode, int nBaseAddress, int nTargetAddress, WORD * pTargetOffset_ )
|
||||
bool _6502_CalcRelativeOffset ( int nOpcode, int nBaseAddress, int nTargetAddress, WORD * pTargetOffset_ )
|
||||
{
|
||||
if (_6502_IsOpcodeBranch( nOpcode))
|
||||
if (_6502_IsOpcodeBranch(nOpcode))
|
||||
{
|
||||
// Branch is
|
||||
// a) relative to address+2
|
||||
|
@ -473,7 +473,7 @@ int _6502_GetOpmodeOpbyte ( const int nBaseAddress, int & iOpmode_, int & nOpby
|
|||
{
|
||||
GetFrame().FrameMessageBox("Debugger not properly initialized", "ERROR", MB_OK );
|
||||
|
||||
g_aOpcodes = & g_aOpcodes65C02[ 0 ]; // Enhanced Apple //e
|
||||
g_aOpcodes = &g_aOpcodes65C02[ 0 ]; // Enhanced Apple //e
|
||||
g_aOpmodes[ AM_2 ].m_nBytes = 2;
|
||||
g_aOpmodes[ AM_3 ].m_nBytes = 3;
|
||||
}
|
||||
|
@ -561,13 +561,13 @@ int _6502_GetOpmodeOpbyte ( const int nBaseAddress, int & iOpmode_, int & nOpby
|
|||
|
||||
|
||||
//===========================================================================
|
||||
void _6502_GetOpcodeOpmodeOpbyte ( int & iOpcode_, int & iOpmode_, int & nOpbyte_ )
|
||||
void _6502_GetOpcodeOpmodeOpbyte (int & iOpcode_, int & iOpmode_, int & nOpbyte_)
|
||||
{
|
||||
iOpcode_ = _6502_GetOpmodeOpbyte( regs.pc, iOpmode_, nOpbyte_ );
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
bool _6502_GetStackReturnAddress ( WORD & nAddress_ )
|
||||
bool _6502_GetStackReturnAddress (WORD & nAddress_)
|
||||
{
|
||||
unsigned nStack = regs.sp;
|
||||
nStack++;
|
||||
|
@ -586,7 +586,7 @@ bool _6502_GetStackReturnAddress ( WORD & nAddress_ )
|
|||
|
||||
|
||||
//===========================================================================
|
||||
bool _6502_GetTargets ( WORD nAddress, int *pTargetPartial_, int *pTargetPartial2_, int *pTargetPointer_, int * pTargetBytes_,
|
||||
bool _6502_GetTargets (WORD nAddress, int *pTargetPartial_, int *pTargetPartial2_, int *pTargetPointer_, int * pTargetBytes_,
|
||||
bool bIgnoreBranch /*= true*/, bool bIncludeNextOpcodeAddress /*= true*/ )
|
||||
{
|
||||
if (! pTargetPartial_)
|
||||
|
|
Loading…
Reference in New Issue
Block a user