Operating Systems/OS_Assg2_pipes-main/myexpos/xsm/registers.c
xsm_reg *registers_get_register(const char *name)
{
    int code = registers_get_register_code(name);

    if (code > -1)
        return &_registers[code];

    return NULL;
}
/* Returns the register for the given register name */
Returns the register for the given register name
Returns the register for the given register name
xsm_reg *registers_get_register(const char *name)
{
    int code = registers_get_register_code(name);
    if (code > -1)
        return &_registers[code];
    return NULL;
}
xsm_reg * registers_get_register ( const char * name ) { int code = registers_get_register_code ( name ) ; if ( code > -1 ) return & _registers [ code ] ; return NULL ; }
Returns the register for the given register name
Returns the register for the given register name