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

Function CmdMemoryEnterWord

source/Debugger/Debug.cpp:4325–4345  ·  view source on GitHub ↗

MEW addr 16-bit_vaue ===========================================================================

Source from the content-addressed store, hash-verified

4323// MEW addr 16-bit_vaue
4324//===========================================================================
4325Update_t CmdMemoryEnterWord (int nArgs)
4326{
4327 if ((nArgs < 2) ||
4328 ((g_aArgs[2].sArg[0] != '0') && (!g_aArgs[2].nValue))) // arg2 not numeric or not specified
4329 {
4330 Help_Arg_1( CMD_MEMORY_ENTER_WORD );
4331 }
4332
4333 WORD nAddress = g_aArgs[1].nValue;
4334 while (nArgs >= 2)
4335 {
4336 WORD nData = g_aArgs[nArgs].nValue;
4337
4338 WriteByteToMemory(nAddress + nArgs - 2, (BYTE)(nData >> 0));
4339 WriteByteToMemory(nAddress + nArgs - 1, (BYTE)(nData >> 8));
4340
4341 nArgs--;
4342 }
4343
4344 return UPDATE_ALL;
4345}
4346
4347//===========================================================================
4348Update_t CmdMemoryFill (int nArgs)

Callers

nothing calls this directly

Calls 2

Help_Arg_1Function · 0.85
WriteByteToMemoryFunction · 0.85

Tested by

no test coverage detected