Previous 15994 Revisions Next

r1988 Friday 14th March, 2008 at 07:56:02 UTC by Robbbert
[SUPER80] Added machine parameter for quickload, and UNMAP for io.
[src/mess/drivers]super80.c

src/mess/drivers/super80.c
r1987r1988
529529
530530/**************************** MEMORY AND I/O MAPPINGS *****************************************************************/
531531
532static READ8_HANDLER( super80_read_ff ) { return 0xff; }   /* returns the true state of unmapped memory */
532/* A read_byte or write_byte to unmapped memory crashes MESS, and UNMAP doesnt fix it */
533static READ8_HANDLER( super80_read_ff ) { return 0xff; }
533534
534535static ADDRESS_MAP_START( super80_map, ADDRESS_SPACE_PROGRAM, 8 )
535536   AM_RANGE(0x0000, 0x3fff) AM_RAMBANK(1)
r1987r1988
554555ADDRESS_MAP_END
555556
556557static ADDRESS_MAP_START( super80_io, ADDRESS_SPACE_IO, 8 )
557   ADDRESS_MAP_FLAGS( AMEF_ABITS(8) )
558   AM_RANGE(0x00, 0xdf) AM_READWRITE(super80_read_ff, MWA8_NOP)
559   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, super80_f0_w)
560   AM_RANGE(0xe1, 0xe1) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, super80_f1_w)
561   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READWRITE(super80_f2_r, MWA8_NOP)
562   AM_RANGE(0xe3, 0xe3) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, MWA8_NOP)   /* decoded but not connected to anything */
563   AM_RANGE(0xe8, 0xef) AM_READWRITE(super80_read_ff, MWA8_NOP)
558   ADDRESS_MAP_FLAGS( AMEF_ABITS(8) | ( AMEF_UNMAP(1) ))
559   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_WRITE(super80_f0_w)
560   AM_RANGE(0xe1, 0xe1) AM_MIRROR(0x14) AM_WRITE(super80_f1_w)
561   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READ(super80_f2_r)
564562   AM_RANGE(0xf8, 0xf8) AM_MIRROR(0x04) AM_READWRITE(super80_f8_r,super80_f8_w)
565563   AM_RANGE(0xf9, 0xf9) AM_MIRROR(0x04) AM_READWRITE(super80_f9_r,super80_f9_w)
566564   AM_RANGE(0xfa, 0xfa) AM_MIRROR(0x04) AM_READWRITE(super80_fa_r,super80_fa_w)
r1987r1988
568566ADDRESS_MAP_END
569567
570568static ADDRESS_MAP_START( super80v_io, ADDRESS_SPACE_IO, 8 )
571   ADDRESS_MAP_FLAGS( AMEF_ABITS(8) )
572   AM_RANGE(0x00, 0x0f) AM_READWRITE(super80_read_ff, MWA8_NOP)
573   AM_RANGE(0x10, 0x10) AM_READWRITE(super80_read_ff, super80v_10_w)
569   ADDRESS_MAP_FLAGS( AMEF_ABITS(8) | ( AMEF_UNMAP(1) ))
570   AM_RANGE(0x10, 0x10) AM_WRITE(super80v_10_w)
574571   AM_RANGE(0x11, 0x11) AM_READWRITE(super80v_11_r, super80v_11_w)
575   AM_RANGE(0x12, 0xdf) AM_READWRITE(super80_read_ff, MWA8_NOP)
576   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, super80v_f0_w)
577   AM_RANGE(0xe1, 0xe1) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, MWA8_NOP)   /* decoded but not connected to anything */
578   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READWRITE(super80_f2_r, MWA8_NOP)
579   AM_RANGE(0xe3, 0xe3) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, MWA8_NOP)   /* decoded but not connected to anything */
580   AM_RANGE(0xe8, 0xef) AM_READWRITE(super80_read_ff, MWA8_NOP)
572   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_WRITE(super80v_f0_w)
573   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READ(super80_f2_r)
581574   AM_RANGE(0xf8, 0xf8) AM_MIRROR(0x04) AM_READWRITE(super80_f8_r,super80_f8_w)
582575   AM_RANGE(0xf9, 0xf9) AM_MIRROR(0x04) AM_READWRITE(super80_f9_r,super80_f9_w)
583576   AM_RANGE(0xfa, 0xfa) AM_MIRROR(0x04) AM_READWRITE(super80_fa_r,super80_fa_w)
r1987r1988
989982{
990983   UINT8 sw = readinputportbytag("CONFIG") & 1;            /* reading the dipswitch: 1 = autorun */
991984   UINT16 exec_addr;
992   UINT64 return_info = z80bin_load_file( image, file_type );   /* load file */
985   UINT64 return_info = z80bin_load_file( machine, image, file_type );   /* load file */
993986
994987   if (return_info == INIT_FAIL) return INIT_FAIL;         /* failure */
995988

Previous 15994 Revisions Next


© 1998-2018 The MESS Team