diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2015-09-12 14:11:23 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2015-09-15 22:43:32 -0500 |
commit | f39b2b31fc8a604d7a3972cd15473bc8cab28684 (patch) | |
tree | 0480b2ca50965fb5c3c4863ff275850e4196a994 /src/symbols.c |
tool to create saturn boot sector
Diffstat (limited to 'src/symbols.c')
-rw-r--r-- | src/symbols.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/symbols.c b/src/symbols.c new file mode 100644 index 0000000..4bb73bb --- /dev/null +++ b/src/symbols.c @@ -0,0 +1,25 @@ +#include <stddef.h> + +#include "symbols.h" + +const struct symbolname regiondefs[] = { + { .symbol = 'A', .name = "ASIA PAL area" }, + { .symbol = 'B', .name = "BRAZIL" }, + { .symbol = 'E', .name = "EUROPE" }, + { .symbol = 'J', .name = "JAPAN" }, + { .symbol = 'K', .name = "KOREA" }, + { .symbol = 'L', .name = "LATIN AMERICA" }, + { .symbol = 'T', .name = "TAIWAN and PHILIPINES" }, + { .symbol = 'U', .name = "USA and CANADA" }, + { 0 } +}; + +const struct symbolname *find_symbol(const struct symbolname *symbols, char symbol) +{ + for (; symbols->symbol; symbols++) { + if (symbols->symbol == symbol) { + return symbols; + } + } + return NULL; +} |