MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / _CmdAssemble

Function _CmdAssemble

source/Debugger/Debug.cpp:2360–2387  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

2358
2359//===========================================================================
2360Update_t _CmdAssemble ( WORD nAddress, int iArg, int nArgs )
2361{
2362 // if AlphaNumeric
2363 ArgToken_e iTokenSrc = NO_TOKEN;
2364 ParserFindToken( g_pConsoleInput, g_aTokens, NUM_TOKENS, &iTokenSrc );
2365
2366 if (iTokenSrc == NO_TOKEN) // is TOKEN_ALPHANUMERIC
2367 if (g_pConsoleInput[0] != CHAR_SPACE)
2368 {
2369 // Symbol
2370 char *pSymbolName = g_aArgs[ iArg ].sArg; // pArg->sArg;
2371 SymbolUpdate( SYMBOLS_ASSEMBLY, pSymbolName, nAddress, false, true ); // bool bRemoveSymbol, bool bUpdateSymbol )
2372
2373 iArg++;
2374 }
2375
2376 bool bStatus = Assemble( iArg, nArgs, nAddress );
2377 if ( bStatus)
2378 {
2379 // move disassembler to current address
2380 g_nDisasmCurAddress = g_nAssemblerAddress;
2381 WindowUpdateDisasmSize(); // calc cur line
2382 DisasmCalcTopBotAddress();
2383 return UPDATE_ALL;
2384 }
2385
2386 return UPDATE_CONSOLE_DISPLAY; // UPDATE_NOTHING;
2387}
2388
2389
2390//===========================================================================

Callers 2

CmdAssembleFunction · 0.85
DebuggerProcessCommandFunction · 0.85

Calls 5

ParserFindTokenFunction · 0.85
SymbolUpdateFunction · 0.85
AssembleFunction · 0.85
WindowUpdateDisasmSizeFunction · 0.85
DisasmCalcTopBotAddressFunction · 0.85

Tested by

no test coverage detected