summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8/h8_dtc.h
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2024-02-14 21:31:37 +0100
committer hap <happppp@users.noreply.github.com>2024-02-14 21:31:37 +0100
commit863e5496e2a69e2e4d745baa178673a47a298791 (patch)
tree4076796409481563c7a0becdc785c0fb322f11e5 /src/devices/cpu/h8/h8_dtc.h
parente759f776beb92864929455db868db2f895117a18 (diff)
m6800,h8: shorthand variable types
Diffstat (limited to 'src/devices/cpu/h8/h8_dtc.h')
-rw-r--r--src/devices/cpu/h8/h8_dtc.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/cpu/h8/h8_dtc.h b/src/devices/cpu/h8/h8_dtc.h
index 7f272c810c1..8709fe72ede 100644
--- a/src/devices/cpu/h8/h8_dtc.h
+++ b/src/devices/cpu/h8/h8_dtc.h
@@ -18,9 +18,9 @@
#include <list>
struct h8_dtc_state {
- uint32_t m_base, m_sra, m_dar, m_cr;
- int32_t m_incs, m_incd;
- uint32_t m_count;
+ u32 m_base, m_sra, m_dar, m_cr;
+ s32 m_incs, m_incd;
+ u32 m_count;
int m_id;
int m_next;
};
@@ -29,7 +29,7 @@ class h8_dtc_device : public device_t {
public:
enum { DTC_CHAINED = 1000 };
- h8_dtc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+ h8_dtc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
template<typename T, typename U> h8_dtc_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&cpu, U &&intc, int irq)
: h8_dtc_device(mconfig, tag, owner)
{
@@ -38,16 +38,16 @@ public:
m_irq = irq;
}
- uint8_t dtcer_r(offs_t offset);
- void dtcer_w(offs_t offset, uint8_t data);
- uint8_t dtvecr_r();
- void dtvecr_w(uint8_t data);
+ u8 dtcer_r(offs_t offset);
+ void dtcer_w(offs_t offset, u8 data);
+ u8 dtvecr_r();
+ void dtvecr_w(u8 data);
bool trigger_dtc(int vector);
void count_done(int id);
inline h8_dtc_state *get_object(int vector) { return m_states + vector; }
- inline uint32_t get_vector_address(int vector) { return 0x400 | ((vector ? vector : m_dtvecr & 0x7f) << 1); }
+ inline u32 get_vector_address(int vector) { return 0x400 | ((vector ? vector : m_dtvecr & 0x7f) << 1); }
int get_waiting_vector();
int get_waiting_writeback();
void vector_done(int vector);
@@ -64,7 +64,7 @@ protected:
virtual void device_start() override;
virtual void device_reset() override;
- uint8_t m_dtcer[6], m_dtvecr;
+ u8 m_dtcer[6], m_dtvecr;
int m_cur_active_vector;
std::vector<int> m_waiting_vector, m_waiting_writeback;