Previous 15994 Revisions Next

r3457 Thursday 16th October, 2008 at 22:08:42 UTC by Phill Harvey-Smith
Fixed Dragon Alpha disks not booting due to NMI not being enabled.
Fixed BBC master not working in debugger with MOS 3.5 bios
Added the option to the BBC master to use either the original MOS 3.2, or
the updated MOS 3.5
[ROOT]makefile
[src/mess/drivers]bbc.c coco.c
[src/mess/includes]coco.h
[src/mess/machine]bbc.c coco.c
[src/mess/video]bbc.c

src/mess/video/bbc.c
r3456r3457
273273WRITE8_HANDLER ( videoULA_w )
274274{
275275
276   int tpal,tcol;
276   int tpal,tcol,vpos;
277277
278278
279279   // emulation refresh optimisation
280280   video_refresh=1;
281   video_screen_update_partial(machine->primary_screen, video_screen_get_vpos(machine->primary_screen) - 1);
282281
282   // Make sure vpos is never <0 2008-10-11 PHS.
283   vpos=video_screen_get_vpos(machine->primary_screen);
284   if(vpos==0)
285     video_screen_update_partial(machine->primary_screen, vpos);
286   else
287     video_screen_update_partial(machine->primary_screen, vpos -1 );
288
283289//   logerror("setting videoULA %s at %.4x size:%.4x\n",image_filename(image), addr, size);
284290   logerror("setting videoULA %.4x to:%.4x   at :%d \n",data,offset,video_screen_get_vpos(machine->primary_screen) );
285291
src/mess/includes/coco.h
r3456r3457
8989READ8_HANDLER(wd2797_r);
9090WRITE8_HANDLER(wd2797_w);
9191
92/* Dragon Alpha Modem, just dummy funcs at the mo */
93READ8_HANDLER(alpha_modem_r);
94WRITE8_HANDLER(alpha_modem_w);
95
9296#ifdef UNUSED_FUNCTION
9397void coco_set_halt_line(running_machine *machine, int halt_line);
9498#endif
src/mess/machine/coco.c
r3456r3457
16611661         }
16621662         else
16631663         {
1664            if (pia_get_output_ca2(2))
1664            if (pia_get_output_ca2_z(2))
16651665               cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, ASSERT_LINE);
16661666         }
16671667         break;
r3456r3457
17221722   };
17231723}
17241724
1725READ8_HANDLER(alpha_modem_r)
1726{
1727   return 0xFF;
1728}
17251729
1730WRITE8_HANDLER(alpha_modem_w)
1731{
1732}
17261733
17271734static WRITE8_HANDLER ( d_pia1_ca2_w )
17281735{
src/mess/machine/bbc.c
r3456r3457
418418      memory_set_bankptr( 2, memory_region( machine, "main" ) + 0x3000 );
419419   }
420420
421   /* ACCCON_TST controls paging of rom reads in the 0xFC00-0xFEFF reigon */
422   /* if 0 the I/O is paged for both reads and writes */
423   /* if 1 the the ROM is paged in for reads but writes still go to I/O   */
424   if (ACCCON_TST)
425   {
426      memory_set_bankptr( 8, memory_region(machine, "user1")+0x43c00);
427      memory_install_read_handler(machine, 0, ADDRESS_SPACE_PROGRAM,0xFC00,0xFEFF,0,0,8);
428   }
429   else
430   {
431      memory_install_read8_handler(machine, 0, ADDRESS_SPACE_PROGRAM,0xFC00,0xFEFF,0,0,bbcm_r);
432   }
433
421434}
422435
423436
r3456r3457
558571{
559572long myo;
560573
561   if ( ACCCON_TST )
562   {
563      return memory_region(machine, "user1")[offset+0x43c00];
564   };
574   /* Now handled in bbcm_ACCCON_write PHS - 2008-10-11 */
575//   if ( ACCCON_TST )
576//   {
577//      return memory_region(machine, "user1")[offset+0x43c00];
578//   };
565579
566580   if ((offset>=0x000) && (offset<=0x0ff)) /* FRED */
567581   {
r3456r3457
22502264   /* bank 5 is the paged ROMs     from 9000 to bfff */
22512265   memory_configure_bank(5, 0, 16, memory_region(machine, "user1")+0x01000, 1<<14);
22522266
2267   /* Set ROM/IO bank to point to rom */
2268   memory_set_bankptr( 8, memory_region(machine, "user1")+0x43c00);
2269   memory_install_read_handler(machine, 0, ADDRESS_SPACE_PROGRAM,0xFC00,0xFEFF,0,0,8);
2270
22532271   via_config(0, &bbcb_system_via);
22542272   via_set_clock(0,1000000);
22552273
src/mess/drivers/coco.c
r3456r3457
226226   AM_RANGE(0xff04, 0xff07) AM_READWRITE(acia_6551_r,      acia_6551_w)
227227   AM_RANGE(0xff20, 0xff23) AM_READWRITE(pia_1_r,         coco_pia_1_w)
228228   AM_RANGE(0xff24, 0xff27) AM_READWRITE(pia_2_r,         pia_2_w)    /* Third PIA on Dragon Alpha */
229   AM_RANGE(0Xff28, 0xff2b) AM_READWRITE(alpha_modem_r,   alpha_modem_w)   /* Modem, dummy to stop eror log ! */
229230   AM_RANGE(0xff2c, 0xff2f) AM_READWRITE(wd2797_r,         wd2797_w)   /* Alpha onboard disk interface */
230231   AM_RANGE(0xff40, 0xff8f) AM_READWRITE(coco_cartridge_r,   coco_cartridge_w)
231232   AM_RANGE(0xff90, 0xffbf) AM_NOP
src/mess/drivers/bbc.c
r3456r3457
261261   AM_RANGE(0xc000, 0xdfff) AM_READWRITE(SMH_BANK7      , memorybm7_w      )   /*    c000-dfff                 OS ROM or 8K of RAM       HAZEL */
262262   AM_RANGE(0xe000, 0xfbff) AM_ROM AM_REGION("user1", 0x42000)            /*    e000-fbff                 OS ROM                          */
263263
264   AM_RANGE(0xfc00, 0xfeff) AM_READWRITE(bbcm_r         , bbcm_w         )   /*    this is now processed directly because it can be ROM or hardware */
264   AM_RANGE(0xfc00, 0xfeff) AM_READWRITE(SMH_BANK8         , bbcm_w         )   /*    this is now processed directly because it can be ROM or hardware */
265
266   //AM_RANGE(0xfc00, 0xfeff) AM_READWRITE(bbcm_r         , bbcm_w         )   /*    this is now processed directly because it can be ROM or hardware */
265267   /*
266268    AM_RANGE(0xfc00, 0xfdff) AM_READWRITE(SMH_BANK2        , SMH_ROM          )       fc00-fdff                   FRED & JIM Pages
267269
r3456r3457
659661   ROM_REGION(0x10000,"main",ROMREGION_ERASEFF) /* ROM MEMORY */
660662
661663   ROM_REGION(0x44000,"user1",0) /* ROM */
662   ROM_LOAD("mos+3.50.rom",0x40000, 0x4000, CRC(141027b9) SHA1(85211b5bc7c7a269952d2b063b7ec0e1f0196803))
663   ROM_CONTINUE(           0x24000, 0x1c000)
664664
665   ROM_SYSTEM_BIOS( 0, "mos350", "Enhanced MOS 3.50" )
666   ROMX_LOAD("mos+3.50.rom",0x20000, 0x20000, CRC(141027b9) SHA1(85211b5bc7c7a269952d2b063b7ec0e1f0196803),ROM_BIOS(1))
667   
668   ROM_SYSTEM_BIOS( 1, "mos320", "Original MOS 3.20" )
669   ROMX_LOAD("mos3.20.rom",0x20000, 0x20000, CRC(0cfad2ce) SHA1(0275719aa7746dd3b627f95ccc4362b564063a5e),ROM_BIOS(2))
670
671   /* Move loaded roms into place */
672   ROM_COPY("user1",0x20000,0x40000,0x4000)
673   ROM_FILL(0x20000,0x4000,0xFFFF)
674
665675   /* 00000 rom 0   Cartridge */
666676   /* 04000 rom 1   Cartridge */
667677   /* 08000 rom 2   Cartridge */
makefile
r3456r3457
2424#-------------------------------------------------
2525
2626ifndef TARGET
27TARGET = mame
27TARGET = mess
2828endif
2929
3030ifndef SUBTARGET

Previous 15994 Revisions Next


© 1998-2018 The MESS Team