mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
(nw) suppress side effects, standardise #include guards
This commit is contained in:
parent
3aaae04942
commit
f70f31731c
@ -1,7 +1,7 @@
|
|||||||
// license:GPL-2.0+
|
// license:GPL-2.0+
|
||||||
// copyright-holders:Couriersud
|
// copyright-holders:Couriersud
|
||||||
/*
|
/*
|
||||||
* bjt.c
|
* nmos_fet.cpp
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ READ8_MEMBER( apricot_winchester_device::hdc_data_r )
|
|||||||
LOGDATA("hdc_data_r[%04x]\n", m_ram_ptr);
|
LOGDATA("hdc_data_r[%04x]\n", m_ram_ptr);
|
||||||
|
|
||||||
data = m_ram[m_ram_ptr];
|
data = m_ram[m_ram_ptr];
|
||||||
if (m_ram_ptr < 0x1fff)
|
if (!machine().side_effects_disabled() && (m_ram_ptr < 0x1fff))
|
||||||
m_ram_ptr++;
|
m_ram_ptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,6 +348,7 @@ READ8_MEMBER( wd1010_device::read )
|
|||||||
LOGREGS("RD STATUS: %02x\n", m_status);
|
LOGREGS("RD STATUS: %02x\n", m_status);
|
||||||
|
|
||||||
// reading the status register clears the interrupt
|
// reading the status register clears the interrupt
|
||||||
|
if (!machine().side_effects_disabled())
|
||||||
set_intrq(0);
|
set_intrq(0);
|
||||||
|
|
||||||
return m_status;
|
return m_status;
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Disk image format
|
Disk image format
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_2D_DSK_H
|
||||||
|
#define MAME_FORMATS_2D_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __2D_DSK_H__
|
|
||||||
#define __2D_DSK_H__
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class _2d_format : public wd177x_format
|
class _2d_format : public wd177x_format
|
||||||
@ -30,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_2D_FORMAT;
|
extern const floppy_format_type FLOPPY_2D_FORMAT;
|
||||||
|
|
||||||
#endif // __2D_DSK_H__
|
#endif // MAME_FORMATS_2D_DSK_H
|
||||||
|
@ -5,12 +5,13 @@
|
|||||||
|
|
||||||
Format code for a2600 SuperCharger cassette files
|
Format code for a2600 SuperCharger cassette files
|
||||||
*/
|
*/
|
||||||
|
#ifndef MAME_FORMATS_A26_CAS_H
|
||||||
|
#define MAME_FORMATS_A26_CAS_H
|
||||||
|
|
||||||
#ifndef A26_CAS_H
|
#pragma once
|
||||||
#define A26_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(a26_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(a26_cassette_formats);
|
||||||
|
|
||||||
#endif /* A26_CAS_H */
|
#endif // MAME_FORMATS_A26_CAS_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
a5105 format
|
a5105 format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_A5105_DSK_H
|
||||||
|
#define MAME_FORMATS_A5105_DSK_H
|
||||||
|
|
||||||
#ifndef A5105_DSK_H_
|
#pragma once
|
||||||
#define A5105_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
class a5105_format : public upd765_format {
|
class a5105_format : public upd765_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
a5105_format();
|
a5105_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_A5105_FORMAT;
|
extern const floppy_format_type FLOPPY_A5105_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_A5105_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Luxor ABC 830/832/834/838 disk image formats
|
Luxor ABC 830/832/834/838 disk image formats
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ABC800_DSK_H
|
||||||
|
#define MAME_FORMATS_ABC800_DSK_H
|
||||||
|
|
||||||
#ifndef ABC800_DSK_H_
|
#pragma once
|
||||||
#define ABC800_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class abc800_format : public wd177x_format {
|
class abc800_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
abc800_format();
|
abc800_format();
|
||||||
|
|
||||||
@ -30,4 +32,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ABC800_FORMAT;
|
extern const floppy_format_type FLOPPY_ABC800_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_ABC800_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Scandia Metric ABC FD2 disk image formats
|
Scandia Metric ABC FD2 disk image formats
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ABCFD2_DSK_H
|
||||||
|
#define MAME_FORMATS_ABCFD2_DSK_H
|
||||||
|
|
||||||
#ifndef ABC_FD2_DSK_H_
|
#pragma once
|
||||||
#define ABC_FD2_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class abc_fd2_format : public wd177x_format {
|
class abc_fd2_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
abc_fd2_format();
|
abc_fd2_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ABC_FD2_FORMAT;
|
extern const floppy_format_type FLOPPY_ABC_FD2_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_ABCFD2_DSK_H
|
||||||
|
@ -7,9 +7,8 @@
|
|||||||
Format code for Jupiter Ace cassette files
|
Format code for Jupiter Ace cassette files
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ACE_TAP_H
|
||||||
#ifndef ACE_TAP_H
|
#define MAME_FORMATS_ACE_TAP_H
|
||||||
#define ACE_TAP_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
@ -29,4 +28,4 @@ struct ace_tape_t
|
|||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(ace_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(ace_cassette_formats);
|
||||||
|
|
||||||
#endif /* ACE_TAP_H */
|
#endif // MAME_FORMATS_ACE_TAP_H
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Disk image formats
|
Disk image formats
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ACORN_DSK_H
|
||||||
|
#define MAME_FORMATS_ACORN_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef ACORN_DSK_H
|
|
||||||
#define ACORN_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
@ -136,4 +135,4 @@ extern const floppy_format_type FLOPPY_ACORN_ADFS_NEW_FORMAT;
|
|||||||
extern const floppy_format_type FLOPPY_OPUS_DDOS_FORMAT;
|
extern const floppy_format_type FLOPPY_OPUS_DDOS_FORMAT;
|
||||||
extern const floppy_format_type FLOPPY_OPUS_DDCPM_FORMAT;
|
extern const floppy_format_type FLOPPY_OPUS_DDCPM_FORMAT;
|
||||||
|
|
||||||
#endif // ACORN_DSK_H
|
#endif // MAME_FORMATS_ACORN_DSK_H
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
Format code for Coleco Adam .ddp cassette files.
|
Format code for Coleco Adam .ddp cassette files.
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ADAM_CAS_H
|
||||||
|
#define MAME_FORMATS_ADAM_CAS_H
|
||||||
|
|
||||||
#ifndef __ADAM_CAS_H
|
#pragma once
|
||||||
#define __ADAM_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(coleco_adam_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(coleco_adam_cassette_formats);
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_ADAM_CAS_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Coleco Adam disk image format
|
Coleco Adam disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ADAM_DSK_H
|
||||||
|
#define MAME_FORMATS_ADAM_DSK_H
|
||||||
|
|
||||||
#ifndef ADAM_DSK_H_
|
#pragma once
|
||||||
#define ADAM_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class adam_format : public wd177x_format {
|
class adam_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
adam_format();
|
adam_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ADAM_FORMAT;
|
extern const floppy_format_type FLOPPY_ADAM_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_ADAM_DSK_H
|
||||||
|
@ -7,11 +7,12 @@
|
|||||||
Disk image formats
|
Disk image formats
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_AFS_DSK_H
|
||||||
|
#define MAME_FORMATS_AFS_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __AFS_DSK_H__
|
#pragma once
|
||||||
#define __AFS_DSK_H__
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
@ -34,4 +35,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_AFS_FORMAT;
|
extern const floppy_format_type FLOPPY_AFS_FORMAT;
|
||||||
|
|
||||||
#endif // __AFS_DSK_H__
|
#endif // MAME_FORMATS_AFS_DSK_H
|
||||||
|
@ -5,13 +5,14 @@
|
|||||||
formats/agat840k_hle_dsk.h
|
formats/agat840k_hle_dsk.h
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_AGAT840K_HLE_DSK_H
|
||||||
|
#define MAME_FORMATS_AGAT840K_HLE_DSK_H
|
||||||
|
|
||||||
#ifndef AGAT840K_HLE_DSK_H_
|
#pragma once
|
||||||
#define AGAT840K_HLE_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
#include "formats/basicdsk.h"
|
#include "formats/basicdsk.h"
|
||||||
|
|
||||||
LEGACY_FLOPPY_OPTIONS_EXTERN(agat840k_hle);
|
LEGACY_FLOPPY_OPTIONS_EXTERN(agat840k_hle);
|
||||||
|
|
||||||
#endif /* AGAT840K_HLE_DSK_H_ */
|
#endif // MAME_FORMATS_AGAT840K_HLE_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Amiga disk images
|
Amiga disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_AMI_DSK_H
|
||||||
|
#define MAME_FORMATS_AMI_DSK_H
|
||||||
|
|
||||||
#ifndef AMI_DSK_H_
|
#pragma once
|
||||||
#define AMI_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -34,4 +35,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ADF_FORMAT;
|
extern const floppy_format_type FLOPPY_ADF_FORMAT;
|
||||||
|
|
||||||
#endif /*AMI_DSK_H_*/
|
#endif // MAME_FORMATS_AMI_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Apple II disk images
|
Apple II disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_AP2_DSK_H
|
||||||
|
#define MAME_FORMATS_AP2_DSK_H
|
||||||
|
|
||||||
#ifndef AP2_DISK_H
|
#pragma once
|
||||||
#define AP2_DISK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -128,4 +129,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_WOZ_FORMAT;
|
extern const floppy_format_type FLOPPY_WOZ_FORMAT;
|
||||||
|
|
||||||
#endif /* AP2_DISK_H */
|
#endif // MAME_FORMATS_AP2_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Apple 3.5" disk images
|
Apple 3.5" disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_AP_DSK35_H
|
||||||
|
#define MAME_FORMATS_AP_DSK35_H
|
||||||
|
|
||||||
#ifndef AP_DSK35_H
|
#pragma once
|
||||||
#define AP_DSK35_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -46,4 +47,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_DC42_FORMAT;
|
extern const floppy_format_type FLOPPY_DC42_FORMAT;
|
||||||
|
|
||||||
#endif /* AP_DSK35_H */
|
#endif // MAME_FORMATS_AP_DSK35_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Archimedes Protected Disk Image format
|
Archimedes Protected Disk Image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_APD_DSK_H
|
||||||
|
#define MAME_FORMATS_APD_DSK_H
|
||||||
|
|
||||||
#ifndef APD_DSK_H_
|
#pragma once
|
||||||
#define APD_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
class apd_format : public floppy_image_format_t {
|
class apd_format : public floppy_image_format_t
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
apd_format();
|
apd_format();
|
||||||
|
|
||||||
@ -28,4 +30,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_APD_FORMAT;
|
extern const floppy_format_type FLOPPY_APD_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_APD_DSK_H
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders: Original author, Robbbert
|
// copyright-holders: Original author, Robbbert
|
||||||
#ifndef APFCAS_H
|
#ifndef MAME_FORMATS_APF_APT_H
|
||||||
#define APFCAS_H
|
#define MAME_FORMATS_APF_APT_H
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(apf_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(apf_cassette_formats);
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_APF_APT_H
|
||||||
#endif /* APFCAS_H */
|
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
apollo format
|
apollo format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_APOLLO_DSK_H
|
||||||
|
#define MAME_FORMATS_APOLLO_DSK_H
|
||||||
|
|
||||||
#ifndef APOLLO_DSK_H_
|
#pragma once
|
||||||
#define APOLLO_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
class apollo_format : public upd765_format {
|
class apollo_format : public upd765_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
apollo_format();
|
apollo_format();
|
||||||
|
|
||||||
@ -28,4 +30,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_APOLLO_FORMAT;
|
extern const floppy_format_type FLOPPY_APOLLO_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_APOLLO_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Applix disk image format
|
Applix disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_APPLIX_DSK_H
|
||||||
|
#define MAME_FORMATS_APPLIX_DSK_H
|
||||||
|
|
||||||
#ifndef APPLIX_DSK_H_
|
#pragma once
|
||||||
#define APPLIX_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class applix_format : public wd177x_format {
|
class applix_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
applix_format();
|
applix_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_APPLIX_FORMAT;
|
extern const floppy_format_type FLOPPY_APPLIX_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_APPLIX_DSK_H
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Disk image format for the ACT Apricot
|
Disk image format for the ACT Apricot
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_APRIDISK_H
|
||||||
|
#define MAME_FORMATS_APRIDISK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __APRIDISK_H__
|
|
||||||
#define __APRIDISK_H__
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
class apridisk_format : public floppy_image_format_t
|
class apridisk_format : public floppy_image_format_t
|
||||||
@ -54,4 +53,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_APRIDISK_FORMAT;
|
extern const floppy_format_type FLOPPY_APRIDISK_FORMAT;
|
||||||
|
|
||||||
#endif // __APRIDISK_H__
|
#endif // MAME_FORMATS_APRIDISK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
asst128 format
|
asst128 format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ASST128_DSK_H
|
||||||
|
#define MAME_FORMATS_ASST128_DSK_H
|
||||||
|
|
||||||
#ifndef ASST128_DSK_H_
|
#pragma once
|
||||||
#define ASST128_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
@ -27,4 +28,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ASST128_FORMAT;
|
extern const floppy_format_type FLOPPY_ASST128_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_ASST128_DSK_H
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
Atari disk images
|
Atari disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ATARI_DSK_H
|
||||||
|
#define MAME_FORMATS_ATARI_DSK_H
|
||||||
|
|
||||||
#ifndef ATARI_DSK_H
|
#pragma once
|
||||||
#define ATARI_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
LEGACY_FLOPPY_OPTIONS_EXTERN(atari_only);
|
LEGACY_FLOPPY_OPTIONS_EXTERN(atari_only);
|
||||||
|
|
||||||
#endif /* ATARI_DSK_H */
|
#endif // MAME_FORMATS_ATARI_DSK_H
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Carl
|
// copyright-holders:Carl
|
||||||
#ifndef __ATOM_DSK_H__
|
#ifndef MAME_FORMATS_ATOM_DSK_H
|
||||||
#define __ATOM_DSK_H__
|
#define MAME_FORMATS_ATOM_DSK_H
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
@ -21,4 +23,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ATOM_FORMAT;
|
extern const floppy_format_type FLOPPY_ATOM_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_ATOM_DSK_H
|
||||||
|
@ -7,14 +7,13 @@
|
|||||||
Cassette code for Acorn Atom tap files
|
Cassette code for Acorn Atom tap files
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ATOM_TAP_H
|
||||||
|
#define MAME_FORMATS_ATOM_TAP_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __ATOM_TAP__
|
|
||||||
#define __ATOM_TAP__
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(atom_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(atom_cassette_formats);
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_ATOM_TAP_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Floppy format code for basic disks
|
Floppy format code for basic disks
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_BASICDSK_H
|
||||||
|
#define MAME_FORMATS_BASICDSK_H
|
||||||
|
|
||||||
#ifndef BASICDSK_H
|
#pragma once
|
||||||
#define BASICDSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -34,4 +35,4 @@ floperr_t basicdsk_construct(floppy_image_legacy *floppy, const struct basicdsk_
|
|||||||
FLOPPY_IDENTIFY(basicdsk_identify_default);
|
FLOPPY_IDENTIFY(basicdsk_identify_default);
|
||||||
FLOPPY_CONSTRUCT(basicdsk_construct_default);
|
FLOPPY_CONSTRUCT(basicdsk_construct_default);
|
||||||
|
|
||||||
#endif /* BASICDSK_H */
|
#endif // MAME_FORMATS_BASICDSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Bonwell 12/14 format
|
Bonwell 12/14 format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_BW12_DSK_H
|
||||||
|
#define MAME_FORMATS_BW12_DSK_H
|
||||||
|
|
||||||
#ifndef BW12_DSK_H_
|
#pragma once
|
||||||
#define BW12_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
class bw12_format : public upd765_format {
|
class bw12_format : public upd765_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
bw12_format();
|
bw12_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_BW12_FORMAT;
|
extern const floppy_format_type FLOPPY_BW12_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_BW12_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Bondwell 2 format
|
Bondwell 2 format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_BW2_DSK_H
|
||||||
|
#define MAME_FORMATS_BW2_DSK_H
|
||||||
|
|
||||||
#ifndef BW2_DSK_H_
|
#pragma once
|
||||||
#define BW2_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
class bw2_format : public upd765_format {
|
class bw2_format : public upd765_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
bw2_format();
|
bw2_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_BW2_FORMAT;
|
extern const floppy_format_type FLOPPY_BW2_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_BW2_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Commodore 3040 sector disk image format
|
Commodore 3040 sector disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_C3040_DSK_H
|
||||||
|
#define MAME_FORMATS_C3040_DSK_H
|
||||||
|
|
||||||
#ifndef C3040_DSK_H_
|
#pragma once
|
||||||
#define C3040_DSK_H_
|
|
||||||
|
|
||||||
#include "d64_dsk.h"
|
#include "d64_dsk.h"
|
||||||
|
|
||||||
@ -35,6 +36,4 @@ protected:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_C3040_FORMAT;
|
extern const floppy_format_type FLOPPY_C3040_FORMAT;
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_C3040_DSK_H
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Commodore 4040 sector disk image format
|
Commodore 4040 sector disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_C4040_DSK_H
|
||||||
|
#define MAME_FORMATS_C4040_DSK_H
|
||||||
|
|
||||||
#ifndef C4040_DSK_H_
|
#pragma once
|
||||||
#define C4040_DSK_H_
|
|
||||||
|
|
||||||
#include "d64_dsk.h"
|
#include "d64_dsk.h"
|
||||||
|
|
||||||
@ -33,6 +34,4 @@ protected:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_C4040_FORMAT;
|
extern const floppy_format_type FLOPPY_C4040_FORMAT;
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_C4040_DSK_H
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Commodore 8280 disk image format
|
Commodore 8280 disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_C8280_DSK_H
|
||||||
|
#define MAME_FORMATS_C8280_DSK_H
|
||||||
|
|
||||||
#ifndef C8280_DSK_H_
|
#pragma once
|
||||||
#define C8280_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class c8280_format : public wd177x_format {
|
class c8280_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
c8280_format();
|
c8280_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_C8280_FORMAT;
|
extern const floppy_format_type FLOPPY_C8280_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_C8280_DSK_H
|
||||||
|
@ -7,9 +7,14 @@
|
|||||||
Format code for Camputers Lynx cassette images (TAP format)
|
Format code for Camputers Lynx cassette images (TAP format)
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CAMPLYNX_CAS_H
|
||||||
|
#define MAME_FORMATS_CAMPLYNX_CAS_H
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(lynx48k_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(lynx48k_cassette_formats);
|
||||||
CASSETTE_FORMATLIST_EXTERN(lynx128k_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(lynx128k_cassette_formats);
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_CAMPLYNX_CAS_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Camputers Lynx disk image format
|
Camputers Lynx disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CAMPLYNX_DSK_H
|
||||||
|
#define MAME_FORMATS_CAMPLYNX_DSK_H
|
||||||
|
|
||||||
#ifndef CAMPLYNX_DSK_H_
|
#pragma once
|
||||||
#define CAMPLYNX_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class camplynx_format : public wd177x_format {
|
class camplynx_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
camplynx_format();
|
camplynx_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_CAMPLYNX_FORMAT;
|
extern const floppy_format_type FLOPPY_CAMPLYNX_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_CAMPLYNX_DSK_H
|
||||||
|
@ -7,13 +7,18 @@
|
|||||||
Cassette tape image abstraction code
|
Cassette tape image abstraction code
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CASSIMG_H
|
||||||
|
#define MAME_FORMATS_CASSIMG_H
|
||||||
|
|
||||||
#ifndef CASSIMG_H
|
#pragma once
|
||||||
#define CASSIMG_H
|
|
||||||
|
#include "ioprocs.h"
|
||||||
|
|
||||||
#include "osdcore.h"
|
#include "osdcore.h"
|
||||||
#include "coretmpl.h"
|
#include "coretmpl.h"
|
||||||
#include "ioprocs.h"
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#ifndef LOG_FORMATS
|
#ifndef LOG_FORMATS
|
||||||
#define LOG_FORMATS if (0) printf
|
#define LOG_FORMATS if (0) printf
|
||||||
@ -224,4 +229,4 @@ cassette_image::error cassette_legacy_identify(cassette_image *cassette, struct
|
|||||||
cassette_image::error cassette_legacy_construct(cassette_image *cassette,
|
cassette_image::error cassette_legacy_construct(cassette_image *cassette,
|
||||||
const struct CassetteLegacyWaveFiller *legacy_args);
|
const struct CassetteLegacyWaveFiller *legacy_args);
|
||||||
|
|
||||||
#endif /* CASSIMG_H */
|
#endif // MAME_FORMATS_CASSIMG_H
|
||||||
|
@ -52,6 +52,14 @@
|
|||||||
#define LOG 0
|
#define LOG 0
|
||||||
|
|
||||||
|
|
||||||
|
#define CRT_SIGNATURE "C64 CARTRIDGE "
|
||||||
|
|
||||||
|
#define CRT_HEADER_LENGTH 0x40
|
||||||
|
#define CRT_CHIP_LENGTH 0x10
|
||||||
|
|
||||||
|
#define UNSUPPORTED "standard"
|
||||||
|
|
||||||
|
|
||||||
// slot names for the C64 cartridge types
|
// slot names for the C64 cartridge types
|
||||||
static char const *const CRT_C64_SLOT_NAMES[_CRT_C64_COUNT] =
|
static char const *const CRT_C64_SLOT_NAMES[_CRT_C64_COUNT] =
|
||||||
{
|
{
|
||||||
|
@ -7,28 +7,18 @@
|
|||||||
Commodore C64 cartridge images
|
Commodore C64 cartridge images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CBM_CRT_H
|
||||||
|
#define MAME_FORMATS_CBM_CRT_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __CBM_CRT__
|
|
||||||
#define __CBM_CRT__
|
|
||||||
|
|
||||||
#include "formats/imageutl.h"
|
#include "formats/imageutl.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
// MACROS/CONSTANTS
|
// MACROS/CONSTANTS
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
|
|
||||||
#define CRT_SIGNATURE "C64 CARTRIDGE "
|
|
||||||
|
|
||||||
#define CRT_HEADER_LENGTH 0x40
|
|
||||||
#define CRT_CHIP_LENGTH 0x10
|
|
||||||
|
|
||||||
#define UNSUPPORTED "standard"
|
|
||||||
|
|
||||||
|
|
||||||
// C64 cartridge types
|
// C64 cartridge types
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
@ -139,5 +129,4 @@ std::string cbm_crt_get_card(util::core_file &file);
|
|||||||
bool cbm_crt_read_header(util::core_file &file, size_t *roml_size, size_t *romh_size, int *exrom, int *game);
|
bool cbm_crt_read_header(util::core_file &file, size_t *roml_size, size_t *romh_size, int *exrom, int *game);
|
||||||
bool cbm_crt_read_data(util::core_file &file, uint8_t *roml, uint8_t *romh);
|
bool cbm_crt_read_data(util::core_file &file, uint8_t *roml, uint8_t *romh);
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_CBM_CRT_H
|
||||||
#endif
|
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
Format code for CBM .tap files
|
Format code for CBM .tap files
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CBM_TAP_H
|
||||||
|
#define MAME_FORMATS_CBM_TAP_H
|
||||||
|
|
||||||
#ifndef CBM_TAP_H
|
#pragma once
|
||||||
#define CBM_TAP_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(cbm_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(cbm_cassette_formats);
|
||||||
|
|
||||||
#endif /* CBM_TAP_H */
|
#endif // MAME_FORMATS_CBM_TAP_H
|
||||||
|
@ -7,15 +7,18 @@
|
|||||||
Compucolor Virtual Floppy Disk Image format
|
Compucolor Virtual Floppy Disk Image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CCVF_DSK_H
|
||||||
|
#define MAME_FORMATS_CCVF_DSK_H
|
||||||
|
|
||||||
#ifndef CCVF_DSK_H_
|
#pragma once
|
||||||
#define CCVF_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
class ccvf_format : public floppy_image_format_t {
|
class ccvf_format : public floppy_image_format_t
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
struct format {
|
struct format
|
||||||
|
{
|
||||||
uint32_t form_factor; // See floppy_image for possible values
|
uint32_t form_factor; // See floppy_image for possible values
|
||||||
uint32_t variant; // See floppy_image for possible values
|
uint32_t variant; // See floppy_image for possible values
|
||||||
|
|
||||||
@ -50,6 +53,4 @@ protected:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_CCVF_FORMAT;
|
extern const floppy_format_type FLOPPY_CCVF_FORMAT;
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_CCVF_DSK_H
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Disk image format
|
Disk image format
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CD90_640_DSK_H
|
||||||
|
#define MAME_FORMATS_CD90_640_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __CD90_640_DSK_H__
|
|
||||||
#define __CD90_640_DSK_H__
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class cd90_640_format : public wd177x_format
|
class cd90_640_format : public wd177x_format
|
||||||
@ -30,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_CD90_640_FORMAT;
|
extern const floppy_format_type FLOPPY_CD90_640_FORMAT;
|
||||||
|
|
||||||
#endif // __CD90_640_DSK_H__
|
#endif // MAME_FORMATS_CD90_640_DSK_H
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
Format code for EACA Colour Genie .cas cassette files.
|
Format code for EACA Colour Genie .cas cassette files.
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CGEN_CAS_H
|
||||||
|
#define MAME_FORMATS_CGEN_CAS_H
|
||||||
|
|
||||||
#ifndef __CGEN_CAS_H
|
#pragma once
|
||||||
#define __CGEN_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(cgenie_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(cgenie_cassette_formats);
|
||||||
|
|
||||||
#endif /* __CGEN_CAS_H */
|
#endif // MAME_FORMATS_CGEN_CAS_H
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Disk image format
|
Disk image format
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CGENIE_DSK_H
|
||||||
|
#define MAME_FORMATS_CGENIE_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __CGENIE_DSK_H__
|
|
||||||
#define __CGENIE_DSK_H__
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class cgenie_format : public wd177x_format
|
class cgenie_format : public wd177x_format
|
||||||
@ -34,4 +33,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_CGENIE_FORMAT;
|
extern const floppy_format_type FLOPPY_CGENIE_FORMAT;
|
||||||
|
|
||||||
#endif // __CGENIE_DSK_H__
|
#endif // MAME_FORMATS_CGENIE_DSK_H
|
||||||
|
@ -7,13 +7,14 @@
|
|||||||
Format code for CoCo CAS (*.cas) files
|
Format code for CoCo CAS (*.cas) files
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_COCO_CAS_H
|
||||||
|
#define MAME_FORMATS_COCO_CAS_H
|
||||||
|
|
||||||
#ifndef COCO_CAS_H
|
#pragma once
|
||||||
#define COCO_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(coco_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(coco_cassette_formats);
|
||||||
CASSETTE_FORMATLIST_EXTERN(alice32_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(alice32_cassette_formats);
|
||||||
|
|
||||||
#endif /* COCO_CAS_H */
|
#endif // MAME_FORMATS_COCO_CAS_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
COMX-35 disk image format
|
COMX-35 disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_COMX35_DSK_H
|
||||||
|
#define MAME_FORMATS_COMX35_DSK_H
|
||||||
|
|
||||||
#ifndef COMX35_DSK_H_
|
#pragma once
|
||||||
#define COMX35_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class comx35_format : public wd177x_format {
|
class comx35_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
comx35_format();
|
comx35_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_COMX35_FORMAT;
|
extern const floppy_format_type FLOPPY_COMX35_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_COMX35_DSK_H
|
||||||
|
@ -7,9 +7,8 @@
|
|||||||
Formats for Corvus Concept
|
Formats for Corvus Concept
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CONCEPT_DSK_H
|
||||||
#ifndef CONCEPT_DSK_H_
|
#define MAME_FORMATS_CONCEPT_DSK_H
|
||||||
#define CONCEPT_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -35,4 +34,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_CONCEPT_525DSDD_FORMAT;
|
extern const floppy_format_type FLOPPY_CONCEPT_525DSDD_FORMAT;
|
||||||
|
|
||||||
#endif /* CONCEPT_DSK_H_ */
|
#endif // MAME_FORMATS_CONCEPT_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
SAM Coupe disk image formats
|
SAM Coupe disk image formats
|
||||||
|
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_COUPEDSK_H
|
||||||
|
#define MAME_FORMATS_COUPEDSK_H
|
||||||
|
|
||||||
#ifndef __COUPEDSK_H__
|
#pragma once
|
||||||
#define __COUPEDSK_H__
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -32,4 +33,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_MGT_FORMAT;
|
extern const floppy_format_type FLOPPY_MGT_FORMAT;
|
||||||
|
|
||||||
#endif /* __COUPEDSK_H__ */
|
#endif // MAME_FORMATS_COUPEDSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Telenova Compis disk images
|
Telenova Compis disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CPIS_DSK_H
|
||||||
|
#define MAME_FORMATS_CPIS_DSK_H
|
||||||
|
|
||||||
#ifndef CPIS_DSK_H
|
#pragma once
|
||||||
#define CPIS_DSK_H
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
@ -27,4 +28,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_CPIS_FORMAT;
|
extern const floppy_format_type FLOPPY_CPIS_FORMAT;
|
||||||
|
|
||||||
#endif /* CPIS_DSK_H */
|
#endif // MAME_FORMATS_CPIS_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
CopyQM disk images
|
CopyQM disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_CQM_DSK_H
|
||||||
|
#define MAME_FORMATS_CQM_DSK_H
|
||||||
|
|
||||||
#ifndef CQM_DSK_H_
|
#pragma once
|
||||||
#define CQM_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -30,4 +31,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_CQM_FORMAT;
|
extern const floppy_format_type FLOPPY_CQM_FORMAT;
|
||||||
|
|
||||||
#endif /* CQM_DSK_H_ */
|
#endif // MAME_FORMATS_CQM_DSK_H
|
||||||
|
@ -5,9 +5,10 @@
|
|||||||
|
|
||||||
Format code for csw cassette files
|
Format code for csw cassette files
|
||||||
*/
|
*/
|
||||||
|
#ifndef MAME_FORMATS_CSW_CAS_H
|
||||||
|
#define MAME_FORMATS_CSW_CAS_H
|
||||||
|
|
||||||
#ifndef CSW_CAS_H
|
#pragma once
|
||||||
#define CSW_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
@ -16,4 +17,4 @@ extern const struct CassetteFormat csw_cassette_format;
|
|||||||
CASSETTE_FORMATLIST_EXTERN(csw_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(csw_cassette_formats);
|
||||||
CASSETTE_FORMATLIST_EXTERN(bbc_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(bbc_cassette_formats);
|
||||||
|
|
||||||
#endif /* CSW_CAS_H */
|
#endif // MAME_FORMATS_CSW_CAS_H
|
||||||
|
@ -7,15 +7,18 @@
|
|||||||
Commodore 4040/1541/1551 sector disk image format
|
Commodore 4040/1541/1551 sector disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_D64_DSK_H
|
||||||
|
#define MAME_FORMATS_D64_DSK_H
|
||||||
|
|
||||||
#ifndef D64_DSK_H_
|
#pragma once
|
||||||
#define D64_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
class d64_format : public floppy_image_format_t {
|
class d64_format : public floppy_image_format_t
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
struct format {
|
struct format
|
||||||
|
{
|
||||||
uint32_t form_factor; // See floppy_image for possible values
|
uint32_t form_factor; // See floppy_image for possible values
|
||||||
uint32_t variant; // See floppy_image for possible values
|
uint32_t variant; // See floppy_image for possible values
|
||||||
|
|
||||||
@ -81,6 +84,4 @@ protected:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_D64_FORMAT;
|
extern const floppy_format_type FLOPPY_D64_FORMAT;
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_D64_DSK_H
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Commodore 1571 sector disk image format
|
Commodore 1571 sector disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_D71_DSK_H
|
||||||
|
#define MAME_FORMATS_D71_DSK_H
|
||||||
|
|
||||||
#ifndef D71_DSK_H_
|
#pragma once
|
||||||
#define D71_DSK_H_
|
|
||||||
|
|
||||||
#include "d64_dsk.h"
|
#include "d64_dsk.h"
|
||||||
|
|
||||||
class d71_format : public d64_format {
|
class d71_format : public d64_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
d71_format();
|
d71_format();
|
||||||
|
|
||||||
@ -27,6 +29,4 @@ protected:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_D71_FORMAT;
|
extern const floppy_format_type FLOPPY_D71_FORMAT;
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_D71_DSK_H
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Commodore 8050 sector disk image format
|
Commodore 8050 sector disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_D80_DSK_H
|
||||||
|
#define MAME_FORMATS_D80_DSK_H
|
||||||
|
|
||||||
#ifndef D80_DSK_H_
|
#pragma once
|
||||||
#define D80_DSK_H_
|
|
||||||
|
|
||||||
#include "d64_dsk.h"
|
#include "d64_dsk.h"
|
||||||
|
|
||||||
class d80_format : public d64_format {
|
class d80_format : public d64_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
d80_format();
|
d80_format();
|
||||||
d80_format(const format *formats);
|
d80_format(const format *formats);
|
||||||
@ -41,6 +43,4 @@ protected:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_D80_FORMAT;
|
extern const floppy_format_type FLOPPY_D80_FORMAT;
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_D80_DSK_H
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Commodore 1581 disk image format
|
Commodore 1581 disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_D81_DSK_H
|
||||||
|
#define MAME_FORMATS_D81_DSK_H
|
||||||
|
|
||||||
#ifndef D81_DSK_H_
|
#pragma once
|
||||||
#define D81_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class d81_format : public wd177x_format {
|
class d81_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
d81_format();
|
d81_format();
|
||||||
|
|
||||||
@ -29,4 +31,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_D81_FORMAT;
|
extern const floppy_format_type FLOPPY_D81_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_D81_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Commodore 8250/SFD-1001 sector disk image format
|
Commodore 8250/SFD-1001 sector disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_D82_DSK_H
|
||||||
|
#define MAME_FORMATS_D82_DSK_H
|
||||||
|
|
||||||
#ifndef D82_DSK_H_
|
#pragma once
|
||||||
#define D82_DSK_H_
|
|
||||||
|
|
||||||
#include "d80_dsk.h"
|
#include "d80_dsk.h"
|
||||||
|
|
||||||
class d82_format : public d80_format {
|
class d82_format : public d80_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
d82_format();
|
d82_format();
|
||||||
|
|
||||||
@ -27,6 +29,4 @@ protected:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_D82_FORMAT;
|
extern const floppy_format_type FLOPPY_D82_FORMAT;
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_D82_DSK_H
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
D88 disk images
|
D88 disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_D88_DSK_H
|
||||||
|
#define MAME_FORMATS_D88_DSK_H
|
||||||
|
|
||||||
#ifndef D88_DSK_H
|
#pragma once
|
||||||
#define D88_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -31,4 +32,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_D88_FORMAT;
|
extern const floppy_format_type FLOPPY_D88_FORMAT;
|
||||||
|
|
||||||
#endif /* D88_DSK_H */
|
#endif // MAME_FORMATS_D88_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
PC98 DCP & DCU disk images
|
PC98 DCP & DCU disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_DCP_DSK_H
|
||||||
|
#define MAME_FORMATS_DCP_DSK_H
|
||||||
|
|
||||||
#ifndef DCP_DSK_H
|
#pragma once
|
||||||
#define DCP_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -30,4 +31,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_DCP_FORMAT;
|
extern const floppy_format_type FLOPPY_DCP_FORMAT;
|
||||||
|
|
||||||
#endif /* PC98DCP_DSK_H */
|
#endif // MAME_FORMATS_DCP_DSK_H
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Olivier Galibert
|
// copyright-holders:Olivier Galibert
|
||||||
#ifndef DFI_DSK_H
|
#ifndef MAME_FORMATS_DFI_DSK_H
|
||||||
#define DFI_DSK_H
|
#define MAME_FORMATS_DFI_DSK_H
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -22,4 +24,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_DFI_FORMAT;
|
extern const floppy_format_type FLOPPY_DFI_FORMAT;
|
||||||
|
|
||||||
#endif /* DFI_DSK_H */
|
#endif // MAME_FORMATS_DFI_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
DIM disk images
|
DIM disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_DIM_DSK_H
|
||||||
|
#define MAME_FORMATS_DIM_DSK_H
|
||||||
|
|
||||||
#ifndef DIM_DSK_H
|
#pragma once
|
||||||
#define DIM_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -36,4 +37,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_DIM_FORMAT;
|
extern const floppy_format_type FLOPPY_DIM_FORMAT;
|
||||||
|
|
||||||
#endif /* DIM_DSK_H */
|
#endif // MAME_FORMATS_DIM_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
PC98DIP disk images
|
PC98DIP disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_DIP_DSK_H
|
||||||
|
#define MAME_FORMATS_DIP_DSK_H
|
||||||
|
|
||||||
#ifndef DIP_DSK_H
|
#pragma once
|
||||||
#define DIP_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -30,4 +31,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_DIP_FORMAT;
|
extern const floppy_format_type FLOPPY_DIP_FORMAT;
|
||||||
|
|
||||||
#endif /* DIP_DSK_H */
|
#endif // MAME_FORMATS_DIP_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
DMK disk images
|
DMK disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_DMK_DSK_H
|
||||||
|
#define MAME_FORMATS_DMK_DSK_H
|
||||||
|
|
||||||
#ifndef DMK_DSK_H
|
#pragma once
|
||||||
#define DMK_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -32,4 +33,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_DMK_FORMAT;
|
extern const floppy_format_type FLOPPY_DMK_FORMAT;
|
||||||
|
|
||||||
#endif /* DMK_DSK_H */
|
#endif // MAME_FORMATS_DMK_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
NCR Decision Mate V format
|
NCR Decision Mate V format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_DMV_DSK_H
|
||||||
|
#define MAME_FORMATS_DMV_DSK_H
|
||||||
|
|
||||||
#ifndef DMV_DSK_H_
|
#pragma once
|
||||||
#define DMV_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
class dmv_format : public upd765_format {
|
class dmv_format : public upd765_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
dmv_format();
|
dmv_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_DMV_FORMAT;
|
extern const floppy_format_type FLOPPY_DMV_FORMAT;
|
||||||
|
|
||||||
#endif /* DMV_DSK_H_ */
|
#endif // MAME_FORMATS_DMV_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
CPC DSK disk images
|
CPC DSK disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_DSK_DSK_H
|
||||||
|
#define MAME_FORMATS_DSK_DSK_H
|
||||||
|
|
||||||
#ifndef CPCDSK_DSK_H
|
#pragma once
|
||||||
#define CPCDSK_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -29,4 +30,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_DSK_FORMAT;
|
extern const floppy_format_type FLOPPY_DSK_FORMAT;
|
||||||
|
|
||||||
#endif /* CPCDSK_DSK_H */
|
#endif // MAME_FORMATS_DSK_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Enterprise Sixty Four disk image format
|
Enterprise Sixty Four disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_EP64_DSK_H
|
||||||
|
#define MAME_FORMATS_EP64_DSK_H
|
||||||
|
|
||||||
#ifndef EP64_DSK_H_
|
#pragma once
|
||||||
#define EP64_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class ep64_format : public wd177x_format {
|
class ep64_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
ep64_format();
|
ep64_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_EP64_FORMAT;
|
extern const floppy_format_type FLOPPY_EP64_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_EP64_DSK_H
|
||||||
|
@ -9,9 +9,10 @@
|
|||||||
Disk is PC MFM, 80 tracks, double-sided, with 10 sectors per track
|
Disk is PC MFM, 80 tracks, double-sided, with 10 sectors per track
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ESQ16_DSK_H
|
||||||
|
#define MAME_FORMATS_ESQ16_DSK_H
|
||||||
|
|
||||||
#ifndef ESQ16_DSK_H_
|
#pragma once
|
||||||
#define ESQ16_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -37,4 +38,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ESQIMG_FORMAT;
|
extern const floppy_format_type FLOPPY_ESQIMG_FORMAT;
|
||||||
|
|
||||||
#endif /* ESQ16_DSK_H_ */
|
#endif // MAME_FORMATS_ESQ16_DSK_H
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
Sectors 0-4 are 1024 bytes, sector 5 is 512 bytes
|
Sectors 0-4 are 1024 bytes, sector 5 is 512 bytes
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ESQ8_DSK_H
|
||||||
|
#define MAME_FORMATS_ESQ8_DSK_H
|
||||||
|
|
||||||
#ifndef ESQ8_DSK_H_
|
#pragma once
|
||||||
#define ESQ8_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -39,4 +40,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ESQ8IMG_FORMAT;
|
extern const floppy_format_type FLOPPY_ESQ8IMG_FORMAT;
|
||||||
|
|
||||||
#endif /* ESQ8_DSK_H_ */
|
#endif // MAME_FORMATS_ESQ8_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
Excalibur 64 disk image format
|
Excalibur 64 disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_EXCALI64_DSK_H
|
||||||
|
#define MAME_FORMATS_EXCALI64_DSK_H
|
||||||
|
|
||||||
#ifndef EXCALI64_DSK_H_
|
#pragma once
|
||||||
#define EXCALI64_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class excali64_format : public wd177x_format {
|
class excali64_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
excali64_format();
|
excali64_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_EXCALI64_FORMAT;
|
extern const floppy_format_type FLOPPY_EXCALI64_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_EXCALI64_DSK_H
|
||||||
|
@ -7,8 +7,13 @@
|
|||||||
Format code for Goldstar FC-100 cassette images (CAS format)
|
Format code for Goldstar FC-100 cassette images (CAS format)
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_FC100_CAS_H
|
||||||
|
#define MAME_FORMATS_FC100_CAS_H
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(fc100_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(fc100_cassette_formats);
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_FC100_CAS_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
PC98 FDD disk images
|
PC98 FDD disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_FDD_DSK_H
|
||||||
|
#define MAME_FORMATS_FDD_DSK_H
|
||||||
|
|
||||||
#ifndef FDD_DSK_H
|
#pragma once
|
||||||
#define FDD_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -30,4 +31,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_FDD_FORMAT;
|
extern const floppy_format_type FLOPPY_FDD_FORMAT;
|
||||||
|
|
||||||
#endif /* FDD_DSK_H */
|
#endif // MAME_FORMATS_FDD_DSK_H
|
||||||
|
@ -5,13 +5,15 @@
|
|||||||
*
|
*
|
||||||
* Created on: 24/06/2014
|
* Created on: 24/06/2014
|
||||||
*/
|
*/
|
||||||
|
#ifndef MAME_FORMATS_FLEX_DSK_H
|
||||||
|
#define MAME_FORMATS_FLEX_DSK_H
|
||||||
|
|
||||||
#ifndef FLEX_DSK_H_
|
#pragma once
|
||||||
#define FLEX_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
class flex_format : public floppy_image_format_t {
|
class flex_format : public floppy_image_format_t
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
flex_format();
|
flex_format();
|
||||||
|
|
||||||
@ -45,4 +47,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_FLEX_FORMAT;
|
extern const floppy_format_type FLOPPY_FLEX_FORMAT;
|
||||||
|
|
||||||
#endif /* FLEX_DSK_H_ */
|
#endif // MAME_FORMATS_FLEX_DSK_H
|
||||||
|
@ -7,15 +7,18 @@
|
|||||||
Floppy disk image abstraction code
|
Floppy disk image abstraction code
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_FLOPIMG_H
|
||||||
|
#define MAME_FORMATS_FLOPIMG_H
|
||||||
|
|
||||||
#ifndef FLOPIMG_H
|
#pragma once
|
||||||
#define FLOPIMG_H
|
|
||||||
|
|
||||||
#include "osdcore.h"
|
#include "osdcore.h"
|
||||||
#include "ioprocs.h"
|
#include "ioprocs.h"
|
||||||
#include "opresolv.h"
|
#include "opresolv.h"
|
||||||
#include "coretmpl.h"
|
#include "coretmpl.h"
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#ifndef LOG_FORMATS
|
#ifndef LOG_FORMATS
|
||||||
#define LOG_FORMATS if (0) printf
|
#define LOG_FORMATS if (0) printf
|
||||||
#endif
|
#endif
|
||||||
@ -170,8 +173,7 @@ floperr_t floppy_create(void *fp, const struct io_procs *procs, const struct Flo
|
|||||||
void floppy_close(floppy_image_legacy *floppy);
|
void floppy_close(floppy_image_legacy *floppy);
|
||||||
|
|
||||||
/* useful for identifying a floppy image */
|
/* useful for identifying a floppy image */
|
||||||
floperr_t floppy_identify(void *fp, const struct io_procs *procs, const char *extension,
|
floperr_t floppy_identify(void *fp, const struct io_procs *procs, const char *extension, const struct FloppyFormat *formats, int *identified_format);
|
||||||
const struct FloppyFormat *formats, int *identified_format);
|
|
||||||
|
|
||||||
/* functions useful within format constructors */
|
/* functions useful within format constructors */
|
||||||
void *floppy_tag(floppy_image_legacy *floppy);
|
void *floppy_tag(floppy_image_legacy *floppy);
|
||||||
@ -292,7 +294,8 @@ protected:
|
|||||||
//! Optional, you can always do things by hand, but useful nevertheless.
|
//! Optional, you can always do things by hand, but useful nevertheless.
|
||||||
//! A vector of these structures describes one track.
|
//! A vector of these structures describes one track.
|
||||||
|
|
||||||
struct desc_e {
|
struct desc_e
|
||||||
|
{
|
||||||
int type, //!< An opcode
|
int type, //!< An opcode
|
||||||
p1, //!< first param
|
p1, //!< first param
|
||||||
p2; //!< second param
|
p2; //!< second param
|
||||||
@ -361,7 +364,8 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! Sector data description
|
//! Sector data description
|
||||||
struct desc_s {
|
struct desc_s
|
||||||
|
{
|
||||||
int size; //!< Sector size, int bytes
|
int size; //!< Sector size, int bytes
|
||||||
const uint8_t *data; //!< Sector data
|
const uint8_t *data; //!< Sector data
|
||||||
uint8_t sector_id; //!< Sector ID
|
uint8_t sector_id; //!< Sector ID
|
||||||
@ -489,14 +493,16 @@ protected:
|
|||||||
void generate_bitstream_from_track(int track, int head, int cell_size, uint8_t *trackbuf, int &track_size, floppy_image *image, int subtrack = 0);
|
void generate_bitstream_from_track(int track, int head, int cell_size, uint8_t *trackbuf, int &track_size, floppy_image *image, int subtrack = 0);
|
||||||
|
|
||||||
//! Defines a standard sector for extracting.
|
//! Defines a standard sector for extracting.
|
||||||
struct desc_xs {
|
struct desc_xs
|
||||||
|
{
|
||||||
int track, //!< Track for this sector
|
int track, //!< Track for this sector
|
||||||
head, //!< Head for this sector
|
head, //!< Head for this sector
|
||||||
size; //!< Size of this sector
|
size; //!< Size of this sector
|
||||||
const uint8_t *data; //!< Data within this sector
|
const uint8_t *data; //!< Data within this sector
|
||||||
};
|
};
|
||||||
|
|
||||||
struct desc_pc_sector {
|
struct desc_pc_sector
|
||||||
|
{
|
||||||
uint8_t track, head, sector, size;
|
uint8_t track, head, sector, size;
|
||||||
int actual_size;
|
int actual_size;
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
@ -588,7 +594,8 @@ private:
|
|||||||
enum { MAX_CRC_COUNT = 64 };
|
enum { MAX_CRC_COUNT = 64 };
|
||||||
|
|
||||||
//! Holds data used internally for generating CRCs.
|
//! Holds data used internally for generating CRCs.
|
||||||
struct gen_crc_info {
|
struct gen_crc_info
|
||||||
|
{
|
||||||
int type, //!< Type of CRC
|
int type, //!< Type of CRC
|
||||||
start, //!< Start position
|
start, //!< Start position
|
||||||
end, //!< End position
|
end, //!< End position
|
||||||
@ -772,7 +779,8 @@ private:
|
|||||||
|
|
||||||
uint32_t form_factor, variant;
|
uint32_t form_factor, variant;
|
||||||
|
|
||||||
struct track_info {
|
struct track_info
|
||||||
|
{
|
||||||
std::vector<uint32_t> cell_data;
|
std::vector<uint32_t> cell_data;
|
||||||
uint32_t write_splice;
|
uint32_t write_splice;
|
||||||
|
|
||||||
@ -784,4 +792,4 @@ private:
|
|||||||
std::vector<std::vector<track_info> > track_array;
|
std::vector<std::vector<track_info> > track_array;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* FLOPIMG_H */
|
#endif // MAME_FORMATS_FLOPIMG_H
|
||||||
|
@ -3,12 +3,13 @@
|
|||||||
/*
|
/*
|
||||||
* Fujitsu FM-7 cassette format handling
|
* Fujitsu FM-7 cassette format handling
|
||||||
*/
|
*/
|
||||||
|
#ifndef MAME_FORMATS_FM7_CAS_H
|
||||||
|
#define MAME_FORMATS_FM7_CAS_H
|
||||||
|
|
||||||
#ifndef FM7_CAS_H_
|
#pragma once
|
||||||
#define FM7_CAS_H_
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN( fm7_cassette_formats );
|
CASSETTE_FORMATLIST_EXTERN( fm7_cassette_formats );
|
||||||
|
|
||||||
#endif /*FM7_CAS_H_*/
|
#endif // MAME_FORMATS_FM7_CAS_H
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
Format code for MSX cassette files
|
Format code for MSX cassette files
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_FMSX_CAS_H
|
||||||
|
#define MAME_FORMATS_FMSX_CAS_H
|
||||||
|
|
||||||
#ifndef FMSX_CAS_H
|
#pragma once
|
||||||
#define FMSX_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(fmsx_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(fmsx_cassette_formats);
|
||||||
|
|
||||||
#endif /* FMSX_CAS_H */
|
#endif // MAME_FORMATS_FMSX_CAS_H
|
||||||
|
@ -5,13 +5,15 @@
|
|||||||
*
|
*
|
||||||
* Created on: 23/03/2014
|
* Created on: 23/03/2014
|
||||||
*/
|
*/
|
||||||
|
#ifndef MAME_FORMATS_FMTOWNS_DSK_H
|
||||||
|
#define MAME_FORMATS_FMTOWNS_DSK_H
|
||||||
|
|
||||||
#ifndef FMTOWNS_DSK_H_
|
#pragma once
|
||||||
#define FMTOWNS_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class fmtowns_format : public wd177x_format {
|
class fmtowns_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
fmtowns_format();
|
fmtowns_format();
|
||||||
|
|
||||||
@ -25,5 +27,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_FMTOWNS_FORMAT;
|
extern const floppy_format_type FLOPPY_FMTOWNS_FORMAT;
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_FMTOWNS_DSK_H
|
||||||
#endif /* FMTOWNS_DSK_H_ */
|
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Disk image formats
|
Disk image formats
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_FSD_DSK_H
|
||||||
|
#define MAME_FORMATS_FSD_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __FSD_DSK_H__
|
|
||||||
#define __FSD_DSK_H__
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
@ -40,4 +39,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_FSD_FORMAT;
|
extern const floppy_format_type FLOPPY_FSD_FORMAT;
|
||||||
|
|
||||||
#endif // __FSD_DSK_H__
|
#endif // MAME_FORMATS_FSD_DSK_H
|
||||||
|
@ -7,14 +7,16 @@
|
|||||||
Commodore 1541/1571 GCR disk image format
|
Commodore 1541/1571 GCR disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_G64_DSK_H
|
||||||
|
#define MAME_FORMATS_G64_DSK_H
|
||||||
|
|
||||||
#ifndef G64_DSK_H_
|
#pragma once
|
||||||
#define G64_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
#include "imageutl.h"
|
#include "imageutl.h"
|
||||||
|
|
||||||
class g64_format : public floppy_image_format_t {
|
class g64_format : public floppy_image_format_t
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
g64_format();
|
g64_format();
|
||||||
|
|
||||||
@ -50,4 +52,4 @@ protected:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_G64_FORMAT;
|
extern const floppy_format_type FLOPPY_G64_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_G64_DSK_H
|
||||||
|
@ -6,12 +6,13 @@
|
|||||||
|
|
||||||
Format code for gtp cassette files
|
Format code for gtp cassette files
|
||||||
*/
|
*/
|
||||||
|
#ifndef MAME_FORMATS_GTP_CAS_H
|
||||||
|
#define MAME_FORMATS_GTP_CAS_H
|
||||||
|
|
||||||
#ifndef GTP_CAS_H
|
#pragma once
|
||||||
#define GTP_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(gtp_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(gtp_cassette_formats);
|
||||||
|
|
||||||
#endif /* GTP_CAS_H */
|
#endif // MAME_FORMATS_GTP_CAS_H
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Disk image format
|
Disk image format
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_GUAB_DSK_H
|
||||||
|
#define MAME_FORMATS_GUAB_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __GUAB_DSK_H__
|
|
||||||
#define __GUAB_DSK_H__
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class guab_format : public wd177x_format
|
class guab_format : public wd177x_format
|
||||||
@ -30,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_GUAB_FORMAT;
|
extern const floppy_format_type FLOPPY_GUAB_FORMAT;
|
||||||
|
|
||||||
#endif // __GUAB_DSK_H__
|
#endif // MAME_FORMATS_GUAB_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Hector disk images
|
Hector disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_HECT_DSK_H
|
||||||
|
#define MAME_FORMATS_HECT_DSK_H
|
||||||
|
|
||||||
#ifndef HECT_DSK_H
|
#pragma once
|
||||||
#define HECT_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -18,4 +19,5 @@
|
|||||||
|
|
||||||
LEGACY_FLOPPY_OPTIONS_EXTERN(hector_disc2);
|
LEGACY_FLOPPY_OPTIONS_EXTERN(hector_disc2);
|
||||||
LEGACY_FLOPPY_OPTIONS_EXTERN(hector_minidisc);
|
LEGACY_FLOPPY_OPTIONS_EXTERN(hector_minidisc);
|
||||||
#endif /* HECT_DSK_H */
|
|
||||||
|
#endif // MAME_FORMATS_HECT_DSK_H
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
Format code for Micronique cassette files
|
Format code for Micronique cassette files
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_HECT_TAP_H
|
||||||
|
#define MAME_FORMATS_HECT_TAP_H
|
||||||
|
|
||||||
#ifndef HECT_TAP_H
|
#pragma once
|
||||||
#define HECT_TAP_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(hector_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(hector_cassette_formats);
|
||||||
|
|
||||||
#endif /* HECT_TAP_H */
|
#endif // MAME_FORMATS_HECT_TAP_H
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Disk image format
|
Disk image format
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_HECTOR_MINIDISC_H
|
||||||
|
#define MAME_FORMATS_HECTOR_MINIDISC_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __HMD_DSK_H__
|
|
||||||
#define __HMD_DSK_H__
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
class hmd_format : public upd765_format
|
class hmd_format : public upd765_format
|
||||||
@ -30,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_HMD_FORMAT;
|
extern const floppy_format_type FLOPPY_HMD_FORMAT;
|
||||||
|
|
||||||
#endif // __HMD_DSK_H__
|
#endif // MAME_FORMATS_HECTOR_MINIDISC_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
hp_ipc format
|
hp_ipc format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_HP_IPC_DSK_H
|
||||||
|
#define MAME_FORMATS_HP_IPC_DSK_H
|
||||||
|
|
||||||
#ifndef HP_IPC_DSK_H_
|
#pragma once
|
||||||
#define HP_IPC_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class hp_ipc_format : public wd177x_format {
|
class hp_ipc_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
hp_ipc_format();
|
hp_ipc_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_HP_IPC_FORMAT;
|
extern const floppy_format_type FLOPPY_HP_IPC_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_HP_IPC_DSK_H
|
||||||
|
@ -7,14 +7,16 @@
|
|||||||
"HPI" disk format
|
"HPI" disk format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_HPI_DSK_H
|
||||||
|
#define MAME_FORMATS_HPI_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef _HPI_DSK_H_
|
|
||||||
#define _HPI_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
// Geometry constants
|
// Geometry constants
|
||||||
constexpr unsigned HPI_TRACKS = 77;
|
constexpr unsigned HPI_TRACKS = 77;
|
||||||
constexpr unsigned HPI_HEADS = 2;
|
constexpr unsigned HPI_HEADS = 2;
|
||||||
@ -53,4 +55,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_HPI_FORMAT;
|
extern const floppy_format_type FLOPPY_HPI_FORMAT;
|
||||||
|
|
||||||
#endif /* _HPI_DSK_H_ */
|
#endif // MAME_FORMATS_HPI_DSK_H
|
||||||
|
@ -7,8 +7,10 @@
|
|||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
#include "hti_tape.h"
|
#include "hti_tape.h"
|
||||||
|
|
||||||
#include "imageutl.h"
|
#include "imageutl.h"
|
||||||
|
|
||||||
|
|
||||||
static constexpr uint32_t FILE_MAGIC = 0x5441434f; // Magic value at start of image file: "TACO"
|
static constexpr uint32_t FILE_MAGIC = 0x5441434f; // Magic value at start of image file: "TACO"
|
||||||
|
|
||||||
// *** Position of tape holes ***
|
// *** Position of tape holes ***
|
||||||
|
@ -8,16 +8,17 @@
|
|||||||
and HP 85 systems.
|
and HP 85 systems.
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_HTI_TAPE_H
|
||||||
#ifndef _HTI_TAPE_H_
|
#define MAME_FORMATS_HTI_TAPE_H
|
||||||
#define _HTI_TAPE_H_
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include "ioprocs.h"
|
#include "ioprocs.h"
|
||||||
|
|
||||||
class hti_format_t {
|
#include <map>
|
||||||
|
|
||||||
|
class hti_format_t
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
hti_format_t();
|
hti_format_t();
|
||||||
|
|
||||||
@ -73,17 +74,19 @@ public:
|
|||||||
// Return position of next data word in a given direction
|
// Return position of next data word in a given direction
|
||||||
bool next_data(unsigned track_no , tape_pos_t pos , bool forward , bool inclusive , track_iterator_t& it);
|
bool next_data(unsigned track_no , tape_pos_t pos , bool forward , bool inclusive , track_iterator_t& it);
|
||||||
|
|
||||||
typedef enum {
|
enum adv_res_t
|
||||||
|
{
|
||||||
ADV_NO_MORE_DATA,
|
ADV_NO_MORE_DATA,
|
||||||
ADV_CONT_DATA,
|
ADV_CONT_DATA,
|
||||||
ADV_DISCONT_DATA
|
ADV_DISCONT_DATA
|
||||||
} adv_res_t;
|
};
|
||||||
|
|
||||||
// Advance an iterator to next word of data
|
// Advance an iterator to next word of data
|
||||||
adv_res_t adv_it(unsigned track_no , bool forward , track_iterator_t& it);
|
adv_res_t adv_it(unsigned track_no , bool forward , track_iterator_t& it);
|
||||||
|
|
||||||
// Scan for beginning of next gap in a given direction
|
// Scan for beginning of next gap in a given direction
|
||||||
bool next_gap(unsigned track_no , tape_pos_t& pos , bool forward , tape_pos_t min_gap);
|
bool next_gap(unsigned track_no , tape_pos_t& pos , bool forward , tape_pos_t min_gap);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Content of tape tracks
|
// Content of tape tracks
|
||||||
tape_track_t m_tracks[ 2 ];
|
tape_track_t m_tracks[ 2 ];
|
||||||
@ -96,4 +99,4 @@ private:
|
|||||||
static void ensure_a_lt_b(tape_pos_t& a , tape_pos_t& b);
|
static void ensure_a_lt_b(tape_pos_t& a , tape_pos_t& b);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _HTI_TAPE_H_ */
|
#endif // MAME_FORMATS_HTI_TAPE_H
|
||||||
|
@ -101,6 +101,8 @@
|
|||||||
|
|
||||||
#include "hxchfe_dsk.h"
|
#include "hxchfe_dsk.h"
|
||||||
|
|
||||||
|
#define HFE_FORMAT_HEADER "HXCPICFE"
|
||||||
|
|
||||||
#define HEADER_LENGTH 512
|
#define HEADER_LENGTH 512
|
||||||
#define TRACK_TABLE_LENGTH 1024
|
#define TRACK_TABLE_LENGTH 1024
|
||||||
|
|
||||||
|
@ -7,14 +7,16 @@
|
|||||||
HxC Floppy Emulator HFE file format
|
HxC Floppy Emulator HFE file format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_HXCHFE_DSK_H
|
||||||
|
#define MAME_FORMATS_HXCHFE_DSK_H
|
||||||
|
|
||||||
#ifndef HXCHFE_DSK_H
|
#pragma once
|
||||||
#define HXCHFE_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
#define HFE_FORMAT_HEADER "HXCPICFE"
|
class hfe_format : public floppy_image_format_t
|
||||||
|
{
|
||||||
|
public:
|
||||||
enum encoding_t
|
enum encoding_t
|
||||||
{
|
{
|
||||||
ISOIBM_MFM_ENCODING = 0x00,
|
ISOIBM_MFM_ENCODING = 0x00,
|
||||||
@ -43,9 +45,6 @@ enum floppymode_t
|
|||||||
DISABLE_FLOPPYMODE = 0xfe
|
DISABLE_FLOPPYMODE = 0xfe
|
||||||
};
|
};
|
||||||
|
|
||||||
class hfe_format : public floppy_image_format_t
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
hfe_format();
|
hfe_format();
|
||||||
|
|
||||||
virtual int identify(io_generic *io, uint32_t form_factor) override;
|
virtual int identify(io_generic *io, uint32_t form_factor) override;
|
||||||
@ -88,4 +87,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_HFE_FORMAT;
|
extern const floppy_format_type FLOPPY_HFE_FORMAT;
|
||||||
|
|
||||||
#endif /* HXCHFE_DSK_H */
|
#endif // MAME_FORMATS_HXCHFE_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
HxC Floppy Emulator disk images
|
HxC Floppy Emulator disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_HXCMFM_DSK_H
|
||||||
|
#define MAME_FORMATS_HXCMFM_DSK_H
|
||||||
|
|
||||||
#ifndef HXCMFM_DSK_H
|
#pragma once
|
||||||
#define HXCMFM_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -30,4 +31,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_MFM_FORMAT;
|
extern const floppy_format_type FLOPPY_MFM_FORMAT;
|
||||||
|
|
||||||
#endif /* HXCMFM_DSK_H */
|
#endif // MAME_FORMATS_HXCMFM_DSK_H
|
||||||
|
@ -7,12 +7,11 @@
|
|||||||
Image related utilities
|
Image related utilities
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_IMAGEUTL_H
|
||||||
|
#define MAME_FORMATS_IMAGEUTL_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __IMAGEUTL_H__
|
|
||||||
#define __IMAGEUTL_H__
|
|
||||||
|
|
||||||
#include "osdcore.h"
|
#include "osdcore.h"
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
@ -25,7 +24,7 @@ unsigned short ccitt_crc16_one( unsigned short crc, const unsigned char data );
|
|||||||
* Alignment-friendly integer placement
|
* Alignment-friendly integer placement
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------- */
|
||||||
|
|
||||||
static inline void place_integer_be(void *ptr, size_t offset, size_t size, uint64_t value)
|
inline void place_integer_be(void *ptr, size_t offset, size_t size, uint64_t value)
|
||||||
{
|
{
|
||||||
uint8_t *byte_ptr = ((uint8_t *) ptr) + offset;
|
uint8_t *byte_ptr = ((uint8_t *) ptr) + offset;
|
||||||
uint16_t val16;
|
uint16_t val16;
|
||||||
@ -56,7 +55,7 @@ static inline void place_integer_be(void *ptr, size_t offset, size_t size, uint6
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint64_t pick_integer_be(const void *ptr, size_t offset, size_t size)
|
inline uint64_t pick_integer_be(const void *ptr, size_t offset, size_t size)
|
||||||
{
|
{
|
||||||
uint64_t result = 0;
|
uint64_t result = 0;
|
||||||
const uint8_t *byte_ptr = ((const uint8_t *) ptr) + offset;
|
const uint8_t *byte_ptr = ((const uint8_t *) ptr) + offset;
|
||||||
@ -93,7 +92,7 @@ static inline uint64_t pick_integer_be(const void *ptr, size_t offset, size_t si
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void place_integer_le(void *ptr, size_t offset, size_t size, uint64_t value)
|
inline void place_integer_le(void *ptr, size_t offset, size_t size, uint64_t value)
|
||||||
{
|
{
|
||||||
uint8_t *byte_ptr = ((uint8_t *) ptr) + offset;
|
uint8_t *byte_ptr = ((uint8_t *) ptr) + offset;
|
||||||
uint16_t val16;
|
uint16_t val16;
|
||||||
@ -175,4 +174,4 @@ int compute_log2(int val);
|
|||||||
bool image_find_extension(const char *extensions, const char *ext);
|
bool image_find_extension(const char *extensions, const char *ext);
|
||||||
void image_specify_extension(char *buffer, size_t buffer_len, const char *extension);
|
void image_specify_extension(char *buffer, size_t buffer_len, const char *extension);
|
||||||
|
|
||||||
#endif /* __IMAGEUTL_H__ */
|
#endif // MAME_FORMATS_IMAGEUTL_H
|
||||||
|
@ -7,9 +7,8 @@
|
|||||||
IMD disk images
|
IMD disk images
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_IMD_DSK_H
|
||||||
#ifndef IMD_DSK_H
|
#define MAME_FORMATS_IMD_DSK_H
|
||||||
#define IMD_DSK_H
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
@ -33,4 +32,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_IMD_FORMAT;
|
extern const floppy_format_type FLOPPY_IMD_FORMAT;
|
||||||
|
|
||||||
#endif /* IMD_DSK_H */
|
#endif // MAME_FORMATS_IMD_DSK_H
|
||||||
|
@ -7,10 +7,12 @@
|
|||||||
File IO abstraction layer
|
File IO abstraction layer
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_IOPROCS_H
|
||||||
|
#define MAME_FORMATS_IOPROCS_H
|
||||||
|
|
||||||
#ifndef IOPROCS_H
|
#pragma once
|
||||||
#define IOPROCS_H
|
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
@ -59,14 +61,10 @@ extern const struct io_procs corefile_ioprocs_noclose;
|
|||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void io_generic_close(struct io_generic *genio);
|
void io_generic_close(struct io_generic *genio);
|
||||||
void io_generic_read(struct io_generic *genio, void *buffer, uint64_t offset, size_t length);
|
void io_generic_read(struct io_generic *genio, void *buffer, uint64_t offset, size_t length);
|
||||||
void io_generic_write(struct io_generic *genio, const void *buffer, uint64_t offset, size_t length);
|
void io_generic_write(struct io_generic *genio, const void *buffer, uint64_t offset, size_t length);
|
||||||
void io_generic_write_filler(struct io_generic *genio, uint8_t filler, uint64_t offset, size_t length);
|
void io_generic_write_filler(struct io_generic *genio, uint8_t filler, uint64_t offset, size_t length);
|
||||||
uint64_t io_generic_size(struct io_generic *genio);
|
uint64_t io_generic_size(struct io_generic *genio);
|
||||||
|
|
||||||
|
#endif // MAME_FORMATS_IOPROCS_H
|
||||||
|
|
||||||
#endif /* IOPROCS_H */
|
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Olivier Galibert
|
// copyright-holders:Olivier Galibert
|
||||||
#ifndef IPF_DSK_H_
|
#ifndef MAME_FORMATS_IPF_DSK_H
|
||||||
#define IPF_DSK_H_
|
#define MAME_FORMATS_IPF_DSK_H
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
class ipf_format : public floppy_image_format_t
|
class ipf_format : public floppy_image_format_t
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -86,4 +90,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_IPF_FORMAT;
|
extern const floppy_format_type FLOPPY_IPF_FORMAT;
|
||||||
|
|
||||||
#endif /*IPF_DSK_H_*/
|
#endif // MAME_FORMATS_IPF_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
iq151 format
|
iq151 format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_IQ151_DSK_H
|
||||||
|
#define MAME_FORMATS_IQ151_DSK_H
|
||||||
|
|
||||||
#ifndef IQ151_DSK_H_
|
#pragma once
|
||||||
#define IQ151_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
class iq151_format : public upd765_format {
|
class iq151_format : public upd765_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
iq151_format();
|
iq151_format();
|
||||||
|
|
||||||
@ -27,4 +29,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_IQ151_FORMAT;
|
extern const floppy_format_type FLOPPY_IQ151_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_IQ151_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
ITT3030 disk image format
|
ITT3030 disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_ITT3030_DSK_H
|
||||||
|
#define MAME_FORMATS_ITT3030_DSK_H
|
||||||
|
|
||||||
#ifndef ITT3030_DSK_H_
|
#pragma once
|
||||||
#define ITT3030_DSK_H_
|
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "wd177x_dsk.h"
|
||||||
|
|
||||||
class itt3030_format : public wd177x_format {
|
class itt3030_format : public wd177x_format
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
itt3030_format();
|
itt3030_format();
|
||||||
|
|
||||||
@ -28,4 +30,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_ITT3030_FORMAT;
|
extern const floppy_format_type FLOPPY_ITT3030_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_ITT3030_DSK_H
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
JASPP Floppy Disk image format
|
JASPP Floppy Disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_JFD_DSK_H
|
||||||
|
#define MAME_FORMATS_JFD_DSK_H
|
||||||
|
|
||||||
#ifndef JFD_DSK_H_
|
#pragma once
|
||||||
#define JFD_DSK_H_
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
class jfd_format : public floppy_image_format_t {
|
class jfd_format : public floppy_image_format_t
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
jfd_format();
|
jfd_format();
|
||||||
|
|
||||||
@ -28,4 +30,4 @@ public:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_JFD_FORMAT;
|
extern const floppy_format_type FLOPPY_JFD_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_JFD_DSK_H
|
||||||
|
@ -9,12 +9,11 @@
|
|||||||
Named after its creator, Jeff Vavasour
|
Named after its creator, Jeff Vavasour
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_JVC_DSK_H
|
||||||
|
#define MAME_FORMATS_JVC_DSK_H
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __JVC_DSK_H__
|
|
||||||
#define __JVC_DSK_H__
|
|
||||||
|
|
||||||
#include "flopimg.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
class jvc_format : public floppy_image_format_t
|
class jvc_format : public floppy_image_format_t
|
||||||
@ -47,4 +46,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_JVC_FORMAT;
|
extern const floppy_format_type FLOPPY_JVC_FORMAT;
|
||||||
|
|
||||||
#endif // __JVC_DSK_H__
|
#endif // MAME_FORMATS_JVC_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
Kaypro disk image format
|
Kaypro disk image format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_KAYPRO_DSK_H
|
||||||
|
#define MAME_FORMATS_KAYPRO_DSK_H
|
||||||
|
|
||||||
#ifndef KAYPRO_DSK_H_
|
#pragma once
|
||||||
#define KAYPRO_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
@ -39,4 +40,4 @@ private:
|
|||||||
extern const floppy_format_type FLOPPY_KAYPROII_FORMAT;
|
extern const floppy_format_type FLOPPY_KAYPROII_FORMAT;
|
||||||
extern const floppy_format_type FLOPPY_KAYPRO2X_FORMAT;
|
extern const floppy_format_type FLOPPY_KAYPRO2X_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_KAYPRO_DSK_H
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
kc85 format
|
kc85 format
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_KC85_DSK_H
|
||||||
|
#define MAME_FORMATS_KC85_DSK_H
|
||||||
|
|
||||||
#ifndef KC85_DSK_H_
|
#pragma once
|
||||||
#define KC85_DSK_H_
|
|
||||||
|
|
||||||
#include "upd765_dsk.h"
|
#include "upd765_dsk.h"
|
||||||
|
|
||||||
@ -27,4 +28,4 @@ private:
|
|||||||
|
|
||||||
extern const floppy_format_type FLOPPY_KC85_FORMAT;
|
extern const floppy_format_type FLOPPY_KC85_FORMAT;
|
||||||
|
|
||||||
#endif
|
#endif // MAME_FORMATS_KC85_DSK_H
|
||||||
|
@ -5,12 +5,13 @@
|
|||||||
kc_cas.h
|
kc_cas.h
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_KC_CAS_H
|
||||||
|
#define MAME_FORMATS_KC_CAS_H
|
||||||
|
|
||||||
#ifndef KC_CAS_H
|
#pragma once
|
||||||
#define KC_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(kc_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(kc_cassette_formats);
|
||||||
|
|
||||||
#endif /* KC_CAS_H */
|
#endif // MAME_FORMATS_KC_CAS_H
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
Format code for KIM-1 cassette files.
|
Format code for KIM-1 cassette files.
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_KIM1_CAS_H
|
||||||
|
#define MAME_FORMATS_KIM1_CAS_H
|
||||||
|
|
||||||
#ifndef __KIM1_CAS_H
|
#pragma once
|
||||||
#define __KIM1_CAS_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(kim1_cassette_formats);
|
CASSETTE_FORMATLIST_EXTERN(kim1_cassette_formats);
|
||||||
|
|
||||||
#endif /* __KIM1_CAS_H */
|
#endif // MAME_FORMATS_KIM1_CAS_H
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
Format code for Lviv cassette files
|
Format code for Lviv cassette files
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
#ifndef MAME_FORMATS_LVIV_LVT_H
|
||||||
|
#define MAME_FORMATS_LVIV_LVT_H
|
||||||
|
|
||||||
#ifndef LVIV_LVT_H
|
#pragma once
|
||||||
#define LVIV_LVT_H
|
|
||||||
|
|
||||||
#include "cassimg.h"
|
#include "cassimg.h"
|
||||||
|
|
||||||
CASSETTE_FORMATLIST_EXTERN(lviv_lvt_format);
|
CASSETTE_FORMATLIST_EXTERN(lviv_lvt_format);
|
||||||
|
|
||||||
#endif /* LVIV_LVT_H */
|
#endif // MAME_FORMATS_LVIV_LVT_H
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user