diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/lib/formats/concept_dsk.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (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/concept_dsk.cpp')
-rw-r--r-- | src/lib/formats/concept_dsk.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/formats/concept_dsk.cpp b/src/lib/formats/concept_dsk.cpp index c23a3c35675..eea65064fc7 100644 --- a/src/lib/formats/concept_dsk.cpp +++ b/src/lib/formats/concept_dsk.cpp @@ -72,15 +72,15 @@ bool cc525dsdd_format::supports_save() const return true; } -void cc525dsdd_format::find_size(io_generic *io, UINT8 &track_count, UINT8 &head_count, UINT8 §or_count) +void cc525dsdd_format::find_size(io_generic *io, uint8_t &track_count, uint8_t &head_count, uint8_t §or_count) { - UINT64 size = io_generic_size(io); + uint64_t size = io_generic_size(io); track_count = 77; head_count = 2; sector_count = 9; - UINT32 expected_size = 512 * track_count*head_count*sector_count; + uint32_t expected_size = 512 * track_count*head_count*sector_count; if (size == expected_size) { return; @@ -89,9 +89,9 @@ void cc525dsdd_format::find_size(io_generic *io, UINT8 &track_count, UINT8 &head track_count = head_count = sector_count = 0; } -int cc525dsdd_format::identify(io_generic *io, UINT32 form_factor) +int cc525dsdd_format::identify(io_generic *io, uint32_t form_factor) { - UINT8 track_count, head_count, sector_count; + uint8_t track_count, head_count, sector_count; find_size(io, track_count, head_count, sector_count); if(track_count) @@ -99,12 +99,12 @@ int cc525dsdd_format::identify(io_generic *io, UINT32 form_factor) return 0; } -bool cc525dsdd_format::load(io_generic *io, UINT32 form_factor, floppy_image *image) +bool cc525dsdd_format::load(io_generic *io, uint32_t form_factor, floppy_image *image) { - UINT8 track_count, head_count, sector_count; + uint8_t track_count, head_count, sector_count; find_size(io, track_count, head_count, sector_count); - UINT8 sectdata[10*512]; + uint8_t sectdata[10*512]; desc_s sectors[10]; for(int i=0; i<sector_count; i++) { sectors[i+1].data = sectdata + 512*i; @@ -140,7 +140,7 @@ bool cc525dsdd_format::save(io_generic *io, floppy_image *image) if(sector_count != 9) sector_count = 9; - UINT8 sectdata[9*512]; + uint8_t sectdata[9*512]; int track_size = sector_count*512; for(int track=0; track < track_count; track++) { |