mirror of
https://github.com/holub/mame
synced 2025-07-06 02:18:09 +03:00
ipf: Describe the remaining fields [O. Galibert, SPS]
This commit is contained in:
parent
c965e4ad27
commit
55e17a2bb9
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1477,7 +1477,7 @@ src/lib/formats/imd_dsk.c svneol=native#text/plain
|
|||||||
src/lib/formats/ioprocs.c svneol=native#text/plain
|
src/lib/formats/ioprocs.c svneol=native#text/plain
|
||||||
src/lib/formats/ioprocs.h svneol=native#text/plain
|
src/lib/formats/ioprocs.h svneol=native#text/plain
|
||||||
src/lib/formats/ipf_dsk.c svneol=native#text/plain
|
src/lib/formats/ipf_dsk.c svneol=native#text/plain
|
||||||
src/lib/formats/ipf_dsk.h svneol=native#text/plain
|
src/lib/formats/ipf_dsk.h -text svneol=native#text/plain
|
||||||
src/lib/formats/kim1_cas.c svneol=native#text/plain
|
src/lib/formats/kim1_cas.c svneol=native#text/plain
|
||||||
src/lib/formats/kim1_cas.h svneol=native#text/plain
|
src/lib/formats/kim1_cas.h svneol=native#text/plain
|
||||||
src/lib/formats/lviv_lvt.c svneol=native#text/plain
|
src/lib/formats/lviv_lvt.c svneol=native#text/plain
|
||||||
|
@ -94,11 +94,11 @@ bool ipf_format::parse_info(const UINT8 *info)
|
|||||||
type = r32(info+12);
|
type = r32(info+12);
|
||||||
if(type != 1)
|
if(type != 1)
|
||||||
return false;
|
return false;
|
||||||
f4 = r32(info+16); // Usually 2
|
encoder_type = r32(info+16); // 1 for CAPS, 2 for SPS
|
||||||
f8 = r32(info+20); // Usually 1
|
encoder_revision = r32(info+20); // 1 always
|
||||||
release = r32(info+24);
|
release = r32(info+24);
|
||||||
revision = r32(info+28);
|
revision = r32(info+28);
|
||||||
f14 = r32(info+32); // Perhaps some kind of (unchecked) checksum
|
origin = r32(info+32); // Original source reference
|
||||||
min_cylinder = r32(info+36);
|
min_cylinder = r32(info+36);
|
||||||
max_cylinder = r32(info+40);
|
max_cylinder = r32(info+40);
|
||||||
min_head = r32(info+44);
|
min_head = r32(info+44);
|
||||||
@ -144,7 +144,7 @@ bool ipf_format::parse_imge(const UINT8 *imge)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
t->type = r32(imge+20);
|
t->type = r32(imge+20);
|
||||||
t->t12 = r32(imge+24); // Usually 1
|
t->sigtype = r32(imge+24); // 1 for 2us cells, no other value valid
|
||||||
t->size_bytes = r32(imge+28);
|
t->size_bytes = r32(imge+28);
|
||||||
t->index_bytes = r32(imge+32);
|
t->index_bytes = r32(imge+32);
|
||||||
t->index_cells = r32(imge+36);
|
t->index_cells = r32(imge+36);
|
||||||
@ -152,11 +152,11 @@ bool ipf_format::parse_imge(const UINT8 *imge)
|
|||||||
t->gapsize_cells = r32(imge+44);
|
t->gapsize_cells = r32(imge+44);
|
||||||
t->size_cells = r32(imge+48);
|
t->size_cells = r32(imge+48);
|
||||||
t->block_count = r32(imge+52);
|
t->block_count = r32(imge+52);
|
||||||
t->t44 = r32(imge+56); // Usually 0
|
t->process = r32(imge+56); // encoder process, always 0
|
||||||
t->weak_bits = r32(imge+60);
|
t->weak_bits = r32(imge+60);
|
||||||
t->t56 = r32(imge+68);
|
t->reserved[0] = r32(imge+68);
|
||||||
t->t60 = r32(imge+72);
|
t->reserved[1] = r32(imge+72);
|
||||||
t->t64 = r32(imge+76);
|
t->reserved[2] = r32(imge+76);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -167,7 +167,7 @@ bool ipf_format::parse_data(const UINT8 *data, UINT32 &pos, UINT32 max_extra_siz
|
|||||||
if(!t)
|
if(!t)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
t->d4 = r32(data+16); // Somehow related to the number of data cells
|
t->data_size_bits = r32(data+16);
|
||||||
t->data = data+28;
|
t->data = data+28;
|
||||||
t->data_size = r32(data+12);
|
t->data_size = r32(data+12);
|
||||||
if(t->data_size > max_extra_size)
|
if(t->data_size > max_extra_size)
|
||||||
|
@ -19,13 +19,13 @@ public:
|
|||||||
private:
|
private:
|
||||||
struct track_info {
|
struct track_info {
|
||||||
UINT32 cylinder, head, type;
|
UINT32 cylinder, head, type;
|
||||||
UINT32 t12, t44, t56, t60, t64;
|
UINT32 sigtype, process, reserved[3];
|
||||||
UINT32 size_bytes, size_cells;
|
UINT32 size_bytes, size_cells;
|
||||||
UINT32 index_bytes, index_cells;
|
UINT32 index_bytes, index_cells;
|
||||||
UINT32 datasize_cells, gapsize_cells;
|
UINT32 datasize_cells, gapsize_cells;
|
||||||
UINT32 block_count, weak_bits;
|
UINT32 block_count, weak_bits;
|
||||||
|
|
||||||
UINT32 d4;
|
UINT32 data_size_bits;
|
||||||
|
|
||||||
bool info_set;
|
bool info_set;
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ private:
|
|||||||
UINT32 tcount;
|
UINT32 tcount;
|
||||||
|
|
||||||
UINT32 type, release, revision;
|
UINT32 type, release, revision;
|
||||||
UINT32 f4, f8, f14;
|
UINT32 encoder_type, encoder_revision, origin;
|
||||||
UINT32 min_cylinder, max_cylinder, min_head, max_head;
|
UINT32 min_cylinder, max_cylinder, min_head, max_head;
|
||||||
UINT32 credit_day, credit_time;
|
UINT32 credit_day, credit_time;
|
||||||
UINT32 platform[4], extra[5];
|
UINT32 platform[4], extra[5];
|
||||||
|
Loading…
Reference in New Issue
Block a user