summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/coco_cas.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/lib/formats/coco_cas.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/lib/formats/coco_cas.cpp')
-rw-r--r--src/lib/formats/coco_cas.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/formats/coco_cas.cpp b/src/lib/formats/coco_cas.cpp
index cf711718a34..ba5186f539d 100644
--- a/src/lib/formats/coco_cas.cpp
+++ b/src/lib/formats/coco_cas.cpp
@@ -61,12 +61,12 @@ static cassette_image::error coco_cas_identify(cassette_image *cassette, struct
-static int get_cas_block(cassette_image *cassette, UINT64 *offset, UINT8 *block, int *block_len)
+static int get_cas_block(cassette_image *cassette, uint64_t *offset, uint8_t *block, int *block_len)
{
- UINT8 block_length = 0;
- UINT8 block_checksum = 0;
- UINT64 current_offset;
- UINT64 image_size;
+ uint8_t block_length = 0;
+ uint8_t block_checksum = 0;
+ uint64_t current_offset;
+ uint64_t image_size;
PAIR p;
int i;
int state = 0;
@@ -150,21 +150,21 @@ static int get_cas_block(cassette_image *cassette, UINT64 *offset, UINT8 *block,
-static cassette_image::error cas_load(cassette_image *cassette, UINT8 silence)
+static cassette_image::error cas_load(cassette_image *cassette, uint8_t silence)
{
cassette_image::error err;
- UINT64 offset;
- UINT64 image_size;
- UINT8 block[258]; /* 255 bytes per block + 3 (type, length, checksum) */
+ uint64_t offset;
+ uint64_t image_size;
+ uint8_t block[258]; /* 255 bytes per block + 3 (type, length, checksum) */
int block_length = 0;
- UINT8 last_blocktype;
+ uint8_t last_blocktype;
double time_index = 0.0;
double time_displacement;
- static const UINT8 magic_bytes[2] = { 0x55, 0x3C };
+ static const uint8_t magic_bytes[2] = { 0x55, 0x3C };
#if 0
{
- static const UINT8 dummy_bytes[] =
+ static const uint8_t dummy_bytes[] =
{
0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,