Operating Systems/OS_Assg2_pipes-main/myexpos/xsm/machine.c
xsm_word *machine_memory_get_word(int address)
{
    xsm_word *result = memory_get_word(address);

    if (result == NULL)
    {
        exception_set_ma(address);
        machine_register_exception("Illegal memory access", EXP_ILLMEM);
    }

    return result;
}
/* Retrieve the word in the given address from memory */
Retrieve the word in the given address from memory
Retrieve the word in the given address from memory
xsm_word *machine_memory_get_word(int address)
{
    xsm_word *result = memory_get_word(address);
    if (result == NULL)
    {
        exception_set_ma(address);
        machine_register_exception("Illegal memory access", EXP_ILLMEM);
    }
    return result;
}
xsm_word * machine_memory_get_word ( int address ) { xsm_word * result = memory_get_word ( address ) ; if ( result == NULL ) { exception_set_ma ( address ) ; machine_register_exception ( " " , EXP_ILLMEM ) ; } return result ; }
Retrieve the word in the given address from memory
Retrieve the word in the given address from memory