My Project
|
You will modify this file and implement the util.h interface. More...
Functions | |
name_val_t * | util_bin_search (name_val_t map[], int numNames, const char *name) |
int | util_get_opcode (const char *name) |
int | util_is_valid_label (const char *s) |
int | util_get_reg (const char *regStr) |
int | util_parse_cond (const char *condCodeStr) |
bool | util_get_int (const char *token, int *value) |
This is a implementation of the interface that you will write for the assignment.
name_val_t* util_bin_search | ( | name_val_t | map[], |
int | numNames, | ||
const char * | name | ||
) |
bool util_get_int | ( | const char * | token, |
int * | value | ||
) |
int util_get_opcode | ( | const char * | name | ) |
int util_get_reg | ( | const char * | regStr | ) |
This is an example of how to use the binary search routine
int util_is_valid_label | ( | const char * | s | ) |
int util_parse_cond | ( | const char * | condCodeStr | ) |