diff options
Diffstat (limited to 'src/devices/machine/diablo_hd.h')
-rw-r--r-- | src/devices/machine/diablo_hd.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/devices/machine/diablo_hd.h b/src/devices/machine/diablo_hd.h index 786e8ed1139..9601d69dc5d 100644 --- a/src/devices/machine/diablo_hd.h +++ b/src/devices/machine/diablo_hd.h @@ -22,7 +22,7 @@ extern const device_type DIABLO_HD; class diablo_hd_device : public device_t { public: - diablo_hd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + diablo_hd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); ~diablo_hd_device(); static const int DIABLO_UNIT_MAX = 2; //!< max number of drive units @@ -108,8 +108,8 @@ private: int m_head; //!< current head (track) number on cylinder int m_sector; //!< current sector number in track int m_page; //!< current page (derived from cylinder, head and sector) - std::unique_ptr<UINT8[]> m_cache[2 * DIABLO_PAGES]; //!< pages raw bytes - UINT32** m_bits; //!< pages expanded to bits + std::unique_ptr<uint8_t[]> m_cache[2 * DIABLO_PAGES]; //!< pages raw bytes + uint32_t** m_bits; //!< pages expanded to bits int m_rdfirst; //!< set to first bit of a sector that is read from int m_rdlast; //!< set to last bit of a sector that was read from int m_wrfirst; //!< set to non-zero if a sector is written to @@ -125,42 +125,42 @@ private: void read_sector(); //! compute the checksum of a record - int cksum(UINT8 *src, size_t size, int start); + int cksum(uint8_t *src, size_t size, int start); //! expand a series of clock bits and 0 data bits - size_t expand_zeroes(UINT32 *bits, size_t dst, size_t size); + size_t expand_zeroes(uint32_t *bits, size_t dst, size_t size); //! expand a series of 0 words and write a final sync bit - size_t expand_sync(UINT32 *bits, size_t dst, size_t size); + size_t expand_sync(uint32_t *bits, size_t dst, size_t size); //! expand a record of words into a array of bits at dst - size_t expand_record(UINT32 *bits, size_t dst, UINT8 *field, size_t size); + size_t expand_record(uint32_t *bits, size_t dst, uint8_t *field, size_t size); //! expand a record's checksum word to 32 bits - size_t expand_cksum(UINT32 *bits, size_t dst, UINT8 *field, size_t size); + size_t expand_cksum(uint32_t *bits, size_t dst, uint8_t *field, size_t size); //! expand a sector into an array of clock and data bits - UINT32* expand_sector(); + uint32_t* expand_sector(); #if DIABLO_DEBUG //! dump a number of words as ASCII characters - void dump_ascii(UINT8 *src, size_t size); + void dump_ascii(uint8_t *src, size_t size); //! dump a record's contents - size_t dump_record(UINT8 *src, size_t addr, size_t size, const char *name, int cr); + size_t dump_record(uint8_t *src, size_t addr, size_t size, const char *name, int cr); #endif //! find a sync bit in an array of clock and data bits - size_t squeeze_sync(UINT32 *bits, size_t src, size_t size); + size_t squeeze_sync(uint32_t *bits, size_t src, size_t size); //! find a 16 x 0 bits sequence in an array of clock and data bits - size_t squeeze_unsync(UINT32 *bits, size_t src, size_t size); + size_t squeeze_unsync(uint32_t *bits, size_t src, size_t size); //! squeeze an array of clock and data bits into a sector's record - size_t squeeze_record(UINT32 *bits, size_t src, UINT8 *field, size_t size); + size_t squeeze_record(uint32_t *bits, size_t src, uint8_t *field, size_t size); //! squeeze an array of 32 clock and data bits into a checksum word - size_t squeeze_cksum(UINT32 *bits, size_t src, int *cksum); + size_t squeeze_cksum(uint32_t *bits, size_t src, int *cksum); //! squeeze a array of clock and data bits into a sector's data void squeeze_sector(); |