src/machine_pesudo.cpp
void Computer::executeCON(ParsedResult* instruction) {
    if (!instruction->address.evaluated()) {
        if (!instruction->address.evaluate(_constants)) {
            throw RuntimeError(_lineOffset, "Unresolved symbol found while parsing CON: " + instruction->rawAddress);
        }
    }
    memory[_lineOffset].set(instruction->address.result().value);
    if (!instruction->rawLocation.empty()) {
        _constants[instruction->rawLocation] = AtomicValue(_lineOffset);
    }
    ++_lineOffset;
}
/** Store a constant to memory. */
Store a constant to memory.
Store a constant to memory .
void Computer::executeCON(ParsedResult* instruction) {
    if (!instruction->address.evaluated()) {
        if (!instruction->address.evaluate(_constants)) {
            throw RuntimeError(_lineOffset, "Unresolved symbol found while parsing CON: " + instruction->rawAddress);
        }
    }
    memory[_lineOffset].set(instruction->address.result().value);
    if (!instruction->rawLocation.empty()) {
        _constants[instruction->rawLocation] = AtomicValue(_lineOffset);
    }
    ++_lineOffset;
}
void Computer :: executeCON ( ParsedResult * instruction ) { if ( ! instruction -> address . evaluated ( ) ) { if ( ! instruction -> address . evaluate ( _constants ) ) { throw RuntimeError ( _lineOffset , " " + instruction -> rawAddress ) ; } } memory [ _lineOffset ] . set ( instruction -> address . result ( ) . value ) ; if ( ! instruction -> rawLocation . empty ( ) ) { _constants [ instruction -> rawLocation ] = AtomicValue ( _lineOffset ) ; } ++ _lineOffset ; }
Store a constant to memory.
Store a constant to memory .