trunk/src/mame/drivers/dblcrown.c
| r18550 | r18551 | |
| 43 | 43 | // screen updates |
| 44 | 44 | UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 45 | 45 | |
| 46 | UINT8 m_bank; |
| 47 | |
| 48 | DECLARE_READ8_MEMBER(bank_r); |
| 49 | DECLARE_WRITE8_MEMBER(bank_w); |
| 50 | |
| 46 | 51 | protected: |
| 47 | 52 | // driver_device overrides |
| 48 | 53 | virtual void machine_start(); |
| r18550 | r18551 | |
| 62 | 67 | return 0; |
| 63 | 68 | } |
| 64 | 69 | |
| 70 | READ8_MEMBER( dblcrown_state::bank_r) |
| 71 | { |
| 72 | return m_bank; |
| 73 | } |
| 74 | |
| 75 | WRITE8_MEMBER( dblcrown_state::bank_w) |
| 76 | { |
| 77 | m_bank = data; |
| 78 | membank("rom_bank")->set_entry(m_bank & 0x1f); |
| 79 | } |
| 80 | |
| 81 | |
| 65 | 82 | static ADDRESS_MAP_START( dblcrown_map, AS_PROGRAM, 8, dblcrown_state ) |
| 66 | 83 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 67 | | AM_RANGE(0xa000, 0xb7ff) AM_RAM |
| 84 | AM_RANGE(0x8000, 0x9fff) AM_ROMBANK("rom_bank") |
| 85 | AM_RANGE(0xa000, 0xb7ff) AM_RAM // work ram |
| 68 | 86 | AM_RANGE(0xb800, 0xbfff) AM_RAM AM_SHARE("nvram") |
| 69 | 87 | AM_RANGE(0xc000, 0xc3ff) AM_RAM |
| 70 | 88 | AM_RANGE(0xc400, 0xc7ff) AM_RAM |
| 71 | | AM_RANGE(0xd000, 0xdfff) AM_RAM |
| 72 | | AM_RANGE(0xff00, 0xffff) AM_RAM //stack? sp not initialized? |
| 89 | AM_RANGE(0xc800, 0xcfff) AM_RAM |
| 90 | AM_RANGE(0xd000, 0xdfff) AM_RAM // vram |
| 91 | AM_RANGE(0xf000, 0xf1ff) AM_RAM_WRITE(paletteram_xBBBBBGGGGGRRRRR_byte_le_w) AM_SHARE("paletteram") // TODO: correct bit order |
| 92 | AM_RANGE(0xfe00, 0xfeff) AM_RAM // ??? - both of these seems TC0091LVC-ish ... |
| 93 | AM_RANGE(0xff00, 0xffff) AM_RAM // ??? / |
| 73 | 94 | ADDRESS_MAP_END |
| 74 | 95 | |
| 75 | 96 | static ADDRESS_MAP_START( dblcrown_io, AS_IO, 8, dblcrown_state ) |
| 76 | 97 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 98 | AM_RANGE(0x11, 0x11) AM_READWRITE(bank_r,bank_w) |
| 77 | 99 | ADDRESS_MAP_END |
| 78 | 100 | |
| 79 | 101 | static INPUT_PORTS_START( dblcrown ) |
| r18550 | r18551 | |
| 132 | 154 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 133 | 155 | INPUT_PORTS_END |
| 134 | 156 | |
| 135 | | static const gfx_layout tiles16x8_layout = |
| 157 | /* TODO */ |
| 158 | static const gfx_layout char_8x8_layout = |
| 136 | 159 | { |
| 137 | 160 | 8,8, |
| 138 | 161 | RGN_FRAC(1,1), |
| 139 | 162 | 4, |
| 140 | | { 0, 1, 2, 3 }, |
| 141 | | { 8, 0, 12, 4, 24, 16, 28, 20 }, |
| 142 | | { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 }, |
| 143 | | 32*8 |
| 163 | { STEP4(0,1) }, |
| 164 | { STEP8(0,4) }, |
| 165 | { STEP8(0,4*8) }, |
| 166 | 8*8*4 |
| 144 | 167 | }; |
| 145 | 168 | |
| 169 | |
| 146 | 170 | static GFXDECODE_START( dblcrown ) |
| 147 | | GFXDECODE_ENTRY( "gfx1", 0, tiles16x8_layout, 0, 16*4 ) |
| 171 | GFXDECODE_ENTRY( "gfx1", 0, char_8x8_layout, 0, 16*4 ) |
| 148 | 172 | GFXDECODE_END |
| 149 | 173 | |
| 150 | 174 | |
| 151 | 175 | |
| 152 | 176 | void dblcrown_state::machine_start() |
| 153 | 177 | { |
| 178 | UINT8 *ROM = memregion("maincpu")->base(); |
| 179 | membank("rom_bank")->configure_entries(0, 0x20, &ROM[0], 0x2000); |
| 154 | 180 | } |
| 155 | 181 | |
| 156 | 182 | void dblcrown_state::machine_reset() |
| r18550 | r18551 | |
| 168 | 194 | MCFG_CPU_ADD("maincpu",Z80,MAIN_CLOCK/6) |
| 169 | 195 | MCFG_CPU_PROGRAM_MAP(dblcrown_map) |
| 170 | 196 | MCFG_CPU_IO_MAP(dblcrown_io) |
| 197 | MCFG_CPU_VBLANK_INT("screen",irq0_line_hold) |
| 171 | 198 | |
| 172 | 199 | /* video hardware */ |
| 173 | 200 | MCFG_SCREEN_ADD("screen", RASTER) |
| r18550 | r18551 | |
| 179 | 206 | |
| 180 | 207 | MCFG_GFXDECODE(dblcrown) |
| 181 | 208 | |
| 182 | | MCFG_PALETTE_LENGTH(16) |
| 209 | MCFG_PALETTE_LENGTH(0x100) |
| 183 | 210 | |
| 184 | 211 | MCFG_NVRAM_ADD_0FILL("nvram") |
| 185 | 212 | |
| r18550 | r18551 | |
| 202 | 229 | |
| 203 | 230 | ROM_REGION( 0x80000, "gfx1", ROMREGION_ERASE00 ) |
| 204 | 231 | ROM_LOAD("2.u43", 0x00000, 0x80000, CRC(58200bd4) SHA1(2795cfc41056111f66bfb82916343d1c733baa83) ) |
| 205 | | |
| 232 | |
| 206 | 233 | ROM_REGION( 0x0bf1, "pals", 0 ) // in Jedec format |
| 207 | 234 | ROM_LOAD("palce16v8h.u39", 0x0000, 0x0bf1, CRC(997b0ba9) SHA1(1c121ab74f33d5162b619740b08cc7bc694c257d) ) |
| 208 | 235 | ROM_END |
trunk/src/mess/drivers/pc8801.c
| r18550 | r18551 | |
| 31 | 31 | - Belloncho Shintai Kensa: hangs |
| 32 | 32 | - Bishoujo Baseball Gakuen: checks ym2608 after intro screen; |
| 33 | 33 | - The Black Onyx: writes a katakana msg: "sono kata ha koko ni orimasen" then doesn't show up anything. (Needs user disk?) |
| 34 | - Boukenshatachi: dies after the intro. |
| 34 | 35 | - Campaign Ban Daisenryaku 2: Hangs at title screen? |
| 35 | 36 | - Carigraph: inputs doesn't work? |
| 36 | 37 | - Can Can Bunny: bitmap artifacts on intro, caused by a fancy usage of the attribute vram; |
| 37 | 38 | - Can Can Bunny: no sound (regression); |
| 39 | - Can Can Bunny Superior: black screen during the intro |
| 38 | 40 | - Chou Bishoujo Densetsu CROQUIS: accesses ports 0xa0-0xa3 and 0xc2-0xc3 |
| 39 | 41 | - Combat: mono gfx mode enabled, but I don't see any noticeable quirk? |
| 40 | 42 | - Cranston Manor (actually N88-Basic demo): no sound |
| r18550 | r18551 | |
| 51 | 53 | - Wanderers from Ys: user data disk looks screwed? It loads with everything as maximum as per now ... |
| 52 | 54 | - Xevious: game is too fast (parent pc8801 only) |
| 53 | 55 | |
| 54 | | list of games/apps that crashes due of floppy issues (* -> denotes games fixed with current floppy code, # -> moans at MESS boot regarding the d88 format with |
| 55 | | current floppy code): |
| 56 | list of games/apps that crashes due of floppy issues (* -> denotes games fixed with current floppy code, # -> regressed with current floppy code): |
| 56 | 57 | * Agni no Ishi |
| 57 | 58 | * Amazoness no Hihou (takes invalid data from floppy) |
| 58 | 59 | - American Truck / American Truck SR (polls read deleted data command) |
| r18550 | r18551 | |
| 63 | 64 | - Autumn Park (BASIC error) |
| 64 | 65 | * Battle Gorilla |
| 65 | 66 | * Belloncho Shintai Kensa |
| 66 | | # Bishoujo Noriko Part I (writes to FDC CPU ROM then expects some strict values, taken from floppy image) |
| 67 | - Bishoujo Noriko Part I (writes to FDC CPU ROM then expects some strict values, taken from floppy image) |
| 67 | 68 | * Blassty (attempts to read at 0x801b) |
| 68 | 69 | - Bokosuka Wars (polls read ID command) |
| 69 | | # Boukenshatachi |
| 70 | | # Can Can Bunny Superior |
| 70 | * Boukenshatachi |
| 71 | * Can Can Bunny Superior |
| 71 | 72 | - Carmine |
| 72 | 73 | - Castle Excellent (sets sector 0xf4? Jumps to 0xa100 and it shouldn't) (REGRESSED with current floppy code) |
| 73 | 74 | - Card Game Pro 8.8k Plus Unit 1 (prints Disk i/o error 135 in vram, not visible for whatever reason) |