src/machine_arithmetic.cpp
void Computer::executeADD(const InstructionWord& instruction) {
    int32_t valueA = rA.value();
    ComputerWord word;
    int address = getIndexedAddress(instruction, true);
    copyToRegister5(instruction, memory[address], &word);
    int32_t valueM = word.value();
    int32_t result = valueA + valueM;
    rA.set(checkRange(result));
}
/** Add the values of rA and the word in the memory into rA.
 * 
 * @see overflow
 */
Add the values of rA and the word in the memory into rA.

@see overflow
Add the values of rA and the word in the memory into rA . @see overflow
void Computer::executeADD(const InstructionWord& instruction) {
    int32_t valueA = rA.value();
    ComputerWord word;
    int address = getIndexedAddress(instruction, true);
    copyToRegister5(instruction, memory[address], &word);
    int32_t valueM = word.value();
    int32_t result = valueA + valueM;
    rA.set(checkRange(result));
}
void Computer :: executeADD ( const InstructionWord & instruction ) { int32_t valueA = rA . value ( ) ; ComputerWord word ; int address = getIndexedAddress ( instruction , true ) ; copyToRegister5 ( instruction , memory [ address ] , & word ) ; int32_t valueM = word . value ( ) ; int32_t result = valueA + valueM ; rA . set ( checkRange ( result ) ) ; }
Add the values of rA and the word in the memory into rA.
Add the values of rA and the word in the memory into rA .