Mercurial > repos > blastem
comparison romdb.c @ 1513:8f3b6a64b658
Initial work on MegaWiFi support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 15 Jan 2018 09:04:43 -0800 |
parents | 1e3e0205640f |
children | 1f745318f10a |
comparison
equal
deleted
inserted
replaced
1471:2e6320d261ff | 1513:8f3b6a64b658 |
---|---|
9 #include "xband.h" | 9 #include "xband.h" |
10 #include "realtec.h" | 10 #include "realtec.h" |
11 #include "nor.h" | 11 #include "nor.h" |
12 #include "sega_mapper.h" | 12 #include "sega_mapper.h" |
13 #include "multi_game.h" | 13 #include "multi_game.h" |
14 #include "megawifi.h" | |
14 | 15 |
15 #define DOM_TITLE_START 0x120 | 16 #define DOM_TITLE_START 0x120 |
16 #define DOM_TITLE_END 0x150 | 17 #define DOM_TITLE_END 0x150 |
17 #define TITLE_START DOM_TITLE_END | 18 #define TITLE_START DOM_TITLE_END |
18 #define TITLE_END (TITLE_START+48) | 19 #define TITLE_END (TITLE_START+48) |
776 map->start = 0xA13000; | 777 map->start = 0xA13000; |
777 map->end = 0xA13100; | 778 map->end = 0xA13100; |
778 map->mask = 0xFF; | 779 map->mask = 0xFF; |
779 map->write_16 = write_multi_game_w; | 780 map->write_16 = write_multi_game_w; |
780 map->write_8 = write_multi_game_b; | 781 map->write_8 = write_multi_game_b; |
782 } else if (!strcmp(dtype, "megawifi")) { | |
783 map->write_16 = megawifi_write_w; | |
784 map->write_8 = megawifi_write_b; | |
785 map->read_16 = megawifi_read_w; | |
786 map->read_8 = megawifi_read_b; | |
787 map->mask = 0xFFFFFF; | |
781 } else { | 788 } else { |
782 fatal_error("Invalid device type %s for ROM DB map entry %d with address %s\n", dtype, state->index, key); | 789 fatal_error("Invalid device type %s for ROM DB map entry %d with address %s\n", dtype, state->index, key); |
783 } | 790 } |
784 state->index++; | 791 state->index++; |
785 } | 792 } |