mirror of
https://github.com/holub/mame
synced 2025-05-04 21:43:05 +03:00
Moved rest of mess formats to lib before rewrite(no whatsnew)
This commit is contained in:
parent
77ac853fd0
commit
45fa774c24
6
.gitattributes
vendored
6
.gitattributes
vendored
@ -1364,6 +1364,8 @@ src/lib/formats/apf_apt.c svneol=native#text/plain
|
||||
src/lib/formats/apf_apt.h svneol=native#text/plain
|
||||
src/lib/formats/apridisk.c svneol=native#text/plain
|
||||
src/lib/formats/apridisk.h svneol=native#text/plain
|
||||
src/lib/formats/atari_dsk.c svneol=native#text/plain
|
||||
src/lib/formats/atari_dsk.h svneol=native#text/plain
|
||||
src/lib/formats/atarist_dsk.c svneol=native#text/plain
|
||||
src/lib/formats/atarist_dsk.h svneol=native#text/plain
|
||||
src/lib/formats/atom_tap.c svneol=native#text/plain
|
||||
@ -1408,6 +1410,8 @@ src/lib/formats/g64_dsk.c svneol=native#text/plain
|
||||
src/lib/formats/g64_dsk.h svneol=native#text/plain
|
||||
src/lib/formats/gtp_cas.c svneol=native#text/plain
|
||||
src/lib/formats/gtp_cas.h svneol=native#text/plain
|
||||
src/lib/formats/hect_dsk.c svneol=native#text/plain
|
||||
src/lib/formats/hect_dsk.h svneol=native#text/plain
|
||||
src/lib/formats/hect_tap.c svneol=native#text/plain
|
||||
src/lib/formats/hect_tap.h svneol=native#text/plain
|
||||
src/lib/formats/imageutl.c svneol=native#text/plain
|
||||
@ -1474,6 +1478,8 @@ src/lib/formats/vt_cas.c svneol=native#text/plain
|
||||
src/lib/formats/vt_cas.h svneol=native#text/plain
|
||||
src/lib/formats/vt_dsk.c svneol=native#text/plain
|
||||
src/lib/formats/vt_dsk.h svneol=native#text/plain
|
||||
src/lib/formats/vtech1_dsk.c svneol=native#text/plain
|
||||
src/lib/formats/vtech1_dsk.h svneol=native#text/plain
|
||||
src/lib/formats/wavfile.c svneol=native#text/plain
|
||||
src/lib/formats/wavfile.h svneol=native#text/plain
|
||||
src/lib/formats/x1_tap.c svneol=native#text/plain
|
||||
|
33
src/lib/formats/atari_dsk.c
Normal file
33
src/lib/formats/atari_dsk.c
Normal file
@ -0,0 +1,33 @@
|
||||
/*********************************************************************
|
||||
|
||||
formats/atari_dsk.c
|
||||
|
||||
Atari disk images
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
#include "formats/atari_dsk.h"
|
||||
|
||||
static FLOPPY_IDENTIFY( atari_dsk_identify )
|
||||
{
|
||||
*vote = 100;
|
||||
return FLOPPY_ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static FLOPPY_CONSTRUCT( atari_dsk_construct )
|
||||
{
|
||||
return FLOPPY_ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
FLOPPY_OPTIONS_START( atari_only )
|
||||
FLOPPY_OPTION(
|
||||
atari_dsk,
|
||||
"atr,dsk,xfd",
|
||||
"Atari floppy disk image",
|
||||
atari_dsk_identify,
|
||||
atari_dsk_construct,
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
FLOPPY_OPTIONS_END0
|
16
src/lib/formats/atari_dsk.h
Normal file
16
src/lib/formats/atari_dsk.h
Normal file
@ -0,0 +1,16 @@
|
||||
/*********************************************************************
|
||||
|
||||
formats/atari_dsk.h
|
||||
|
||||
Atari disk images
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
#ifndef ATARI_DSK_H
|
||||
#define ATARI_DSK_H
|
||||
|
||||
#include "flopimg.h"
|
||||
|
||||
FLOPPY_OPTIONS_EXTERN(atari_only);
|
||||
|
||||
#endif /* ATARI_DSK_H */
|
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include "atom_tap.h"
|
||||
|
||||
#include "uef_cas.h"
|
||||
/***************************************************************************
|
||||
PARAMETERS
|
||||
***************************************************************************/
|
||||
@ -136,3 +136,8 @@ const struct CassetteFormat atom_tap_format =
|
||||
atom_tap_load,
|
||||
NULL
|
||||
};
|
||||
|
||||
CASSETTE_FORMATLIST_START( atom_cassette_formats )
|
||||
CASSETTE_FORMAT(atom_tap_format)
|
||||
CASSETTE_FORMAT(uef_cassette_format)
|
||||
CASSETTE_FORMATLIST_END
|
||||
|
@ -13,6 +13,6 @@
|
||||
|
||||
#include "cassimg.h"
|
||||
|
||||
extern const struct CassetteFormat atom_tap_format;
|
||||
CASSETTE_FORMATLIST_EXTERN(atom_cassette_formats);
|
||||
|
||||
#endif
|
||||
|
96
src/lib/formats/hect_dsk.c
Normal file
96
src/lib/formats/hect_dsk.c
Normal file
@ -0,0 +1,96 @@
|
||||
/*********************************************************************
|
||||
|
||||
formats/hect_dsk.c
|
||||
|
||||
Hector disk images
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
#include "formats/hect_dsk.h"
|
||||
#include "formats/basicdsk.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/****** Management of the floppy images 200Ko and 800Ko *********************/
|
||||
/*****************************************************************************/
|
||||
/* For the 200Ko disk :
|
||||
512 bytes per sectors,
|
||||
10 sector per track,
|
||||
From sector =0 to sector 9,
|
||||
40 tracks,
|
||||
1 Head
|
||||
This format can be extract from a real disc with anadisk (*.IMG format rename in *.HE2).
|
||||
*/
|
||||
static FLOPPY_IDENTIFY(hector_disc2_dsk200_identify)
|
||||
{
|
||||
*vote = (floppy_image_size(floppy) == (1*40*10*512)) ? 100 : 0;
|
||||
return FLOPPY_ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
static FLOPPY_CONSTRUCT(hector_disc2_dsk200_construct)
|
||||
{
|
||||
struct basicdsk_geometry geometry;
|
||||
memset(&geometry, 0, sizeof(geometry));
|
||||
geometry.heads = 1;
|
||||
geometry.first_sector_id = 0;
|
||||
geometry.sector_length = 512;
|
||||
geometry.tracks = 40;
|
||||
geometry.sectors = 10;
|
||||
return basicdsk_construct(floppy, &geometry);
|
||||
}
|
||||
/* For the 720Ko disk :
|
||||
512 bytes per sectors,
|
||||
9 sector per track,
|
||||
From sector =0 to sector 8,
|
||||
80 tracks,
|
||||
2 Head
|
||||
This format can be extract from a real disc with anadisk (*.IMG format rename in *.HE7).
|
||||
*/
|
||||
static FLOPPY_IDENTIFY(hector_disc2_dsk720_identify)
|
||||
{
|
||||
*vote = (floppy_image_size(floppy) == (2*80*9*512)) ? 100 : 0;
|
||||
return FLOPPY_ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
static FLOPPY_CONSTRUCT(hector_disc2_dsk720_construct)
|
||||
{
|
||||
struct basicdsk_geometry geometry;
|
||||
memset(&geometry, 0, sizeof(geometry));
|
||||
geometry.heads = 2;
|
||||
geometry.first_sector_id = 0;
|
||||
geometry.sector_length = 512;
|
||||
geometry.tracks = 80;
|
||||
geometry.sectors = 9;
|
||||
return basicdsk_construct(floppy, &geometry);
|
||||
|
||||
}/* For the 800Ko disk :
|
||||
512 bytes per sectors,
|
||||
10 sector per track,
|
||||
From sector =0 to sector 9,
|
||||
80 tracks
|
||||
2 Heads
|
||||
This format can be extract from a real disk with anadisk (*.IMG format rename in *.HE2).
|
||||
*/
|
||||
|
||||
static FLOPPY_IDENTIFY(hector_disc2_dsk800_identify)
|
||||
{
|
||||
*vote = (floppy_image_size(floppy) == (2*80*10*512)) ? 100 : 0;
|
||||
return FLOPPY_ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
static FLOPPY_CONSTRUCT(hector_disc2_dsk800_construct)
|
||||
{
|
||||
struct basicdsk_geometry geometry;
|
||||
memset(&geometry, 0, sizeof(geometry));
|
||||
geometry.heads = 2;
|
||||
geometry.first_sector_id = 0;
|
||||
geometry.sector_length = 512;
|
||||
geometry.tracks = 80;
|
||||
geometry.sectors = 10;
|
||||
return basicdsk_construct(floppy, &geometry);
|
||||
}
|
||||
|
||||
FLOPPY_OPTIONS_START( hector_disc2 )
|
||||
FLOPPY_OPTION( hector_dsk, "HE2", "hector disc2 floppy disk image 200K", hector_disc2_dsk200_identify, hector_disc2_dsk200_construct, NULL, NULL)
|
||||
FLOPPY_OPTION( hector_dsk, "HE7", "hector disc2 floppy disk image 720K", hector_disc2_dsk720_identify, hector_disc2_dsk720_construct, NULL, NULL)
|
||||
FLOPPY_OPTION( hector_dsk, "HE8", "hector disc2 floppy disk image 800K", hector_disc2_dsk800_identify, hector_disc2_dsk800_construct, NULL, NULL)
|
||||
FLOPPY_OPTIONS_END
|
19
src/lib/formats/hect_dsk.h
Normal file
19
src/lib/formats/hect_dsk.h
Normal file
@ -0,0 +1,19 @@
|
||||
/*********************************************************************
|
||||
|
||||
formats/hect_dsk.h
|
||||
|
||||
Hector disk images
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
#ifndef HECT_DSK_H
|
||||
#define HECT_DSK_H
|
||||
|
||||
#include "flopimg.h"
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
FLOPPY_OPTIONS_EXTERN(hector_disc2);
|
||||
|
||||
#endif /* HECT_DSK_H */
|
33
src/lib/formats/vtech1_dsk.c
Normal file
33
src/lib/formats/vtech1_dsk.c
Normal file
@ -0,0 +1,33 @@
|
||||
/*********************************************************************
|
||||
|
||||
formats/vtech1_dsk.c
|
||||
|
||||
VTech1 disk images
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
#include "formats/vtech1_dsk.h"
|
||||
|
||||
static FLOPPY_IDENTIFY( vtech1_dsk_identify )
|
||||
{
|
||||
*vote = 100;
|
||||
return FLOPPY_ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static FLOPPY_CONSTRUCT( vtech1_dsk_construct )
|
||||
{
|
||||
return FLOPPY_ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
FLOPPY_OPTIONS_START( vtech1_only )
|
||||
FLOPPY_OPTION(
|
||||
vtech1_dsk,
|
||||
"dsk",
|
||||
"Laser floppy disk image",
|
||||
vtech1_dsk_identify,
|
||||
vtech1_dsk_construct,
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
FLOPPY_OPTIONS_END0
|
16
src/lib/formats/vtech1_dsk.h
Normal file
16
src/lib/formats/vtech1_dsk.h
Normal file
@ -0,0 +1,16 @@
|
||||
/*********************************************************************
|
||||
|
||||
formats/vtech1_dsk.h
|
||||
|
||||
VTech1 disk images
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
#ifndef VTECH1_DSK_H
|
||||
#define VTECH1_DSK_H
|
||||
|
||||
#include "flopimg.h"
|
||||
|
||||
FLOPPY_OPTIONS_EXTERN(vtech1_only);
|
||||
|
||||
#endif /* VTECH1_DSK_H */
|
@ -91,6 +91,7 @@ EXPATOBJS = \
|
||||
$(LIBOBJ)/formats/apf_apt.o \
|
||||
$(LIBOBJ)/formats/apridisk.o \
|
||||
$(LIBOBJ)/formats/ap_dsk35.o \
|
||||
$(LIBOBJ)/formats/atari_dsk.o \
|
||||
$(LIBOBJ)/formats/atarist_dsk.o \
|
||||
$(LIBOBJ)/formats/atom_tap.o \
|
||||
$(LIBOBJ)/formats/cbm_tap.o \
|
||||
@ -112,6 +113,7 @@ EXPATOBJS = \
|
||||
$(LIBOBJ)/formats/fmsx_cas.o \
|
||||
$(LIBOBJ)/formats/g64_dsk.o \
|
||||
$(LIBOBJ)/formats/gtp_cas.o \
|
||||
$(LIBOBJ)/formats/hect_dsk.o \
|
||||
$(LIBOBJ)/formats/hect_tap.o \
|
||||
$(LIBOBJ)/formats/imd_dsk.o \
|
||||
$(LIBOBJ)/formats/kim1_cas.o \
|
||||
@ -144,6 +146,7 @@ EXPATOBJS = \
|
||||
$(LIBOBJ)/formats/vg5k_cas.o \
|
||||
$(LIBOBJ)/formats/vt_cas.o \
|
||||
$(LIBOBJ)/formats/vt_dsk.o \
|
||||
$(LIBOBJ)/formats/vtech1_dsk.o \
|
||||
$(LIBOBJ)/formats/wavfile.o \
|
||||
$(LIBOBJ)/formats/x1_tap.o \
|
||||
$(LIBOBJ)/formats/z80ne_dsk.o \
|
||||
|
Loading…
Reference in New Issue
Block a user