Previous 199869 Revisions Next

r18551 Monday 15th October, 2012 at 23:35:22 UTC by Angelo Salese
Various work, needs gfx decoding to proceed ...
[src/mame/drivers]dblcrown.c
[src/mess/drivers]pc8801.c

trunk/src/mame/drivers/dblcrown.c
r18550r18551
4343   // screen updates
4444   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4545
46   UINT8 m_bank;
47
48   DECLARE_READ8_MEMBER(bank_r);
49   DECLARE_WRITE8_MEMBER(bank_w);
50
4651protected:
4752   // driver_device overrides
4853   virtual void machine_start();
r18550r18551
6267   return 0;
6368}
6469
70READ8_MEMBER( dblcrown_state::bank_r)
71{
72   return m_bank;
73}
74
75WRITE8_MEMBER( dblcrown_state::bank_w)
76{
77   m_bank = data;
78   membank("rom_bank")->set_entry(m_bank & 0x1f);
79}
80
81
6582static ADDRESS_MAP_START( dblcrown_map, AS_PROGRAM, 8, dblcrown_state )
6683   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
6886   AM_RANGE(0xb800, 0xbfff) AM_RAM AM_SHARE("nvram")
6987   AM_RANGE(0xc000, 0xc3ff) AM_RAM
7088   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 // ??? /
7394ADDRESS_MAP_END
7495
7596static ADDRESS_MAP_START( dblcrown_io, AS_IO, 8, dblcrown_state )
7697   ADDRESS_MAP_GLOBAL_MASK(0xff)
98   AM_RANGE(0x11, 0x11) AM_READWRITE(bank_r,bank_w)
7799ADDRESS_MAP_END
78100
79101static INPUT_PORTS_START( dblcrown )
r18550r18551
132154   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
133155INPUT_PORTS_END
134156
135static const gfx_layout tiles16x8_layout =
157/* TODO */
158static const gfx_layout char_8x8_layout =
136159{
137160   8,8,
138161   RGN_FRAC(1,1),
139162   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
144167};
145168
169
146170static GFXDECODE_START( dblcrown )
147   GFXDECODE_ENTRY( "gfx1", 0, tiles16x8_layout, 0, 16*4 )
171   GFXDECODE_ENTRY( "gfx1", 0, char_8x8_layout, 0, 16*4 )
148172GFXDECODE_END
149173
150174
151175
152176void dblcrown_state::machine_start()
153177{
178   UINT8 *ROM = memregion("maincpu")->base();
179   membank("rom_bank")->configure_entries(0, 0x20, &ROM[0], 0x2000);
154180}
155181
156182void dblcrown_state::machine_reset()
r18550r18551
168194   MCFG_CPU_ADD("maincpu",Z80,MAIN_CLOCK/6)
169195   MCFG_CPU_PROGRAM_MAP(dblcrown_map)
170196   MCFG_CPU_IO_MAP(dblcrown_io)
197   MCFG_CPU_VBLANK_INT("screen",irq0_line_hold)
171198
172199   /* video hardware */
173200   MCFG_SCREEN_ADD("screen", RASTER)
r18550r18551
179206
180207   MCFG_GFXDECODE(dblcrown)
181208
182   MCFG_PALETTE_LENGTH(16)
209   MCFG_PALETTE_LENGTH(0x100)
183210
184211   MCFG_NVRAM_ADD_0FILL("nvram")
185212
r18550r18551
202229
203230   ROM_REGION( 0x80000, "gfx1", ROMREGION_ERASE00 )
204231   ROM_LOAD("2.u43", 0x00000, 0x80000, CRC(58200bd4) SHA1(2795cfc41056111f66bfb82916343d1c733baa83) )
205   
232
206233   ROM_REGION( 0x0bf1, "pals", 0 ) // in Jedec format
207234   ROM_LOAD("palce16v8h.u39", 0x0000, 0x0bf1, CRC(997b0ba9) SHA1(1c121ab74f33d5162b619740b08cc7bc694c257d) )
208235ROM_END
trunk/src/mess/drivers/pc8801.c
r18550r18551
3131    - Belloncho Shintai Kensa: hangs
3232    - Bishoujo Baseball Gakuen: checks ym2608 after intro screen;
3333    - 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.
3435    - Campaign Ban Daisenryaku 2: Hangs at title screen?
3536    - Carigraph: inputs doesn't work?
3637    - Can Can Bunny: bitmap artifacts on intro, caused by a fancy usage of the attribute vram;
3738    - Can Can Bunny: no sound (regression);
39    - Can Can Bunny Superior: black screen during the intro
3840    - Chou Bishoujo Densetsu CROQUIS: accesses ports 0xa0-0xa3 and 0xc2-0xc3
3941    - Combat: mono gfx mode enabled, but I don't see any noticeable quirk?
4042    - Cranston Manor (actually N88-Basic demo): no sound
r18550r18551
5153    - Wanderers from Ys: user data disk looks screwed? It loads with everything as maximum as per now ...
5254    - Xevious: game is too fast (parent pc8801 only)
5355
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):
5657    * Agni no Ishi
5758    * Amazoness no Hihou (takes invalid data from floppy)
5859    - American Truck / American Truck SR (polls read deleted data command)
r18550r18551
6364    - Autumn Park (BASIC error)
6465    * Battle Gorilla
6566    * 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)
6768    * Blassty (attempts to read at 0x801b)
6869    - Bokosuka Wars (polls read ID command)
69    # Boukenshatachi
70    # Can Can Bunny Superior
70    * Boukenshatachi
71    * Can Can Bunny Superior
7172    - Carmine
7273    - Castle Excellent (sets sector 0xf4? Jumps to 0xa100 and it shouldn't) (REGRESSED with current floppy code)
7374    - Card Game Pro 8.8k Plus Unit 1 (prints Disk i/o error 135 in vram, not visible for whatever reason)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team