blob: be6bb6e080d4bea4c1b48bdf38a75c017a5cbc93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
// license:GPL-2.0+
// copyright-holders:Kevin Thacker
/*****************************************************************************
*
* machine/spec_snqk.h
*
****************************************************************************/
#ifndef MAME_MACHINE_SPEC_SNQK_H
#define MAME_MACHINE_SPEC_SNQK_H
#pragma once
#include "imagedev/snapquik.h"
#define BASE_RAM 0x4000
#define SPECTRUM_BANK 0x4000
/*****************************************************************************
*
* .SNA format (used by JPP)
*
****************************************************************************/
#define SNA48_OFFSET 0
#define SNA48_HDR 27
#define SNA48_SIZE (SNA48_HDR + 3*SPECTRUM_BANK)
#define SNA128_OFFSET (SNA48_HDR + 3*SPECTRUM_BANK)
#define SNA128_HDR 4
#define SNA128_SIZE_1 (SNA48_HDR + 3*SPECTRUM_BANK + SNA128_HDR + 5*SPECTRUM_BANK)
#define SNA128_SIZE_2 (SNA48_HDR + 3*SPECTRUM_BANK + SNA128_HDR + 6*SPECTRUM_BANK)
/*****************************************************************************
*
* .SP format (used by VGASPEC and Spanish Spectrum emulator)
*
****************************************************************************/
#define SP_OLD_HDR 32
#define SP_NEW_HDR 38
#define SP_OLD_SIZE (SP_OLD_HDR + 3*SPECTRUM_BANK)
#define SP_NEW_SIZE_16K (SP_NEW_HDR + 1*SPECTRUM_BANK)
#define SP_NEW_SIZE_48K (SP_NEW_HDR + 3*SPECTRUM_BANK)
/*****************************************************************************
*
* .ACH format (used by !Speccy)
*
****************************************************************************/
#define ACH_OFFSET 0
#define ACH_HDR 256
#define ACH_SIZE (ACH_HDR + BASE_RAM + 3*SPECTRUM_BANK)
/*****************************************************************************
*
* .PRG format (used by SpecEm)
*
****************************************************************************/
#define PRG_OFFSET 0
#define PRG_HDR 256
#define PRG_SIZE (PRG_HDR + 3*SPECTRUM_BANK)
/*****************************************************************************
*
* .PLUSD format (used by FUSE)
*
****************************************************************************/
#define PLUSD_OFFSET 0
#define PLUSD48_HDR 22
#define PLUSD48_SIZE (PLUSD48_HDR + 3*SPECTRUM_BANK)
#define PLUSD128_HDR 23
#define PLUSD128_SIZE (PLUSD128_HDR + 8*SPECTRUM_BANK)
/*****************************************************************************
*
* .SEM format (used by SpecEmu)
*
****************************************************************************/
#define SEM_SIGNATURE 6
#define SEM_OFFSET 49158
#define SEM_HDR 34
#define SEM_SIZE (SEM_SIGNATURE + 3*SPECTRUM_BANK + SEM_HDR)
/*****************************************************************************
*
* .SIT format (used by Sinclair)
*
****************************************************************************/
#define SIT_OFFSET 0
#define SIT_HDR 28
#define SIT_SIZE (SIT_HDR + BASE_RAM + 3*SPECTRUM_BANK)
/*****************************************************************************
*
* .ZX format (used by KGB)
*
****************************************************************************/
#define ZX_OFFSET 49284
#define ZX_HDR 202
#define ZX_SIZE (132 + 3*SPECTRUM_BANK + ZX_HDR)
/*****************************************************************************
*
* .SNP format (used by Nuclear ZX)
*
****************************************************************************/
#define SNP_OFFSET 49152
#define SNP_HDR 31
#define SNP_SIZE (3*SPECTRUM_BANK + SNP_HDR)
/*****************************************************************************
*
* .SNX format (used by Specci)
*
****************************************************************************/
#define SNX_OFFSET 0
#define SNX_HDR 43
#define SNX_COMPRESSED 0xff
#define SNX_UNCOMPRESSED 0x00
/*****************************************************************************
*
* .FRZ format (used by CBSpeccy, ZX-Live and ASp)
*
****************************************************************************/
#define FRZ_OFFSET 0
#define FRZ_HDR 42
#define FRZ_SIZE (FRZ_HDR + 8*SPECTRUM_BANK)
enum SPECTRUM_SNAPSHOT_TYPE
{
SPECTRUM_SNAPSHOT_NONE,
SPECTRUM_SNAPSHOT_SNA,
SPECTRUM_SNAPSHOT_Z80,
SPECTRUM_SNAPSHOT_SP,
SPECTRUM_TAPEFILE_TAP
};
enum SPECTRUM_Z80_SNAPSHOT_TYPE {
SPECTRUM_Z80_SNAPSHOT_INVALID,
SPECTRUM_Z80_SNAPSHOT_48K_OLD,
SPECTRUM_Z80_SNAPSHOT_48K,
SPECTRUM_Z80_SNAPSHOT_SAMRAM,
SPECTRUM_Z80_SNAPSHOT_128K,
SPECTRUM_Z80_SNAPSHOT_TS2068
};
/*****************************************************************************
*
* .SCR format (used by many emulators)
*
****************************************************************************/
#define SCR_BITMAP 6144
#define SCR_ATTR 768
#define SCR_SIZE (SCR_BITMAP + SCR_ATTR)
/*****************************************************************************
*
* .RAW format (used by many emulators)
*
****************************************************************************/
#define RAW_OFFSET 0
#define RAW_HDR 9
#define RAW_SIZE (RAW_HDR + 3*SPECTRUM_BANK)
#endif // MAME_MACHINE_SPEC_SNQK_H
|