mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Source clean-up, portability and debugger fixes. (PR #842)
And fix two general issues: - confusing behavior when entering the builtin (mini) assembler mode, - and also fixes the "cl" (clear flag) command - which was documented, but did not work at all (due to an "interesting" command/syntax conflict...).
This commit is contained in:
@@ -858,10 +858,10 @@ bool _6502_IsOpcodeValid ( int iOpcode )
|
||||
|
||||
|
||||
//===========================================================================
|
||||
int AssemblerHashMnemonic ( const TCHAR * pMnemonic )
|
||||
Hash_t AssemblerHashMnemonic ( const TCHAR * pMnemonic )
|
||||
{
|
||||
const TCHAR *pText = pMnemonic;
|
||||
int nMnemonicHash = 0;
|
||||
Hash_t nMnemonicHash = 0;
|
||||
int iHighBits;
|
||||
|
||||
const int NUM_LOW_BITS = 19; // 24 -> 19 prime
|
||||
@@ -1471,7 +1471,7 @@ bool Assemble( int iArg, int nArgs, WORD nAddress )
|
||||
m_nAsmBaseAddress = nAddress;
|
||||
|
||||
TCHAR *pMnemonic = g_aArgs[ iArg ].sArg;
|
||||
int nMnemonicHash = AssemblerHashMnemonic( pMnemonic );
|
||||
Hash_t nMnemonicHash = AssemblerHashMnemonic( pMnemonic );
|
||||
|
||||
#if DEBUG_ASSEMBLER
|
||||
char sText[ CONSOLE_WIDTH * 2 ];
|
||||
|
||||
Reference in New Issue
Block a user