diff options
Diffstat (limited to 'src/mame/machine/konppc.h')
-rw-r--r-- | src/mame/machine/konppc.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mame/machine/konppc.h b/src/mame/machine/konppc.h index cc3a3c386b9..a4657a01edc 100644 --- a/src/mame/machine/konppc.h +++ b/src/mame/machine/konppc.h @@ -21,14 +21,14 @@ class konppc_device : public device_t { public: // construction/destruction - konppc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + konppc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); static void static_set_num_boards(device_t &device, int num) { downcast<konppc_device &>(device).num_cgboards = num; } static void static_set_cbboard_type(device_t &device, int cgtype) { downcast<konppc_device &>(device).cgboard_type = cgtype; } void set_cgboard_id(int board_id); int get_cgboard_id(void); - void set_cgboard_texture_bank(int board, const char *bank, UINT8 *rom); + void set_cgboard_texture_bank(int board, const char *bank, uint8_t *rom); // read/write @@ -61,27 +61,27 @@ protected: // device-level overrides virtual void device_start() override; - UINT32 dsp_comm_sharc_r(int board, int offset); - void dsp_comm_sharc_w(address_space &space, int board, int offset, UINT32 data); - UINT32 dsp_shared_ram_r_sharc(int board, int offset); - void dsp_shared_ram_w_sharc(int board, int offset, UINT32 data); + uint32_t dsp_comm_sharc_r(int board, int offset); + void dsp_comm_sharc_w(address_space &space, int board, int offset, uint32_t data); + uint32_t dsp_shared_ram_r_sharc(int board, int offset); + void dsp_shared_ram_w_sharc(int board, int offset, uint32_t data); - UINT32 nwk_fifo_r(address_space &space, int board); - void nwk_fifo_w(int board, UINT32 data); + uint32_t nwk_fifo_r(address_space &space, int board); + void nwk_fifo_w(int board, uint32_t data); private: // internal state - UINT32 dsp_comm_ppc[MAX_CG_BOARDS][2]; - UINT32 dsp_comm_sharc[MAX_CG_BOARDS][2]; - UINT8 dsp_shared_ram_bank[MAX_CG_BOARDS]; + uint32_t dsp_comm_ppc[MAX_CG_BOARDS][2]; + uint32_t dsp_comm_sharc[MAX_CG_BOARDS][2]; + uint8_t dsp_shared_ram_bank[MAX_CG_BOARDS]; - INT32 cgboard_id; - INT32 cgboard_type; - INT32 num_cgboards; + int32_t cgboard_id; + int32_t cgboard_type; + int32_t num_cgboards; - std::unique_ptr<UINT32[]> dsp_shared_ram[MAX_CG_BOARDS]; + std::unique_ptr<uint32_t[]> dsp_shared_ram[MAX_CG_BOARDS]; - UINT32 dsp_state[MAX_CG_BOARDS]; - UINT32 nwk_device_sel[MAX_CG_BOARDS]; + uint32_t dsp_state[MAX_CG_BOARDS]; + uint32_t nwk_device_sel[MAX_CG_BOARDS]; const char *texture_bank[MAX_CG_BOARDS]; int nwk_fifo_half_full_r; @@ -89,11 +89,11 @@ private: int nwk_fifo_full; int nwk_fifo_mask; - std::unique_ptr<UINT32[]> nwk_fifo[MAX_CG_BOARDS]; - INT32 nwk_fifo_read_ptr[MAX_CG_BOARDS]; - INT32 nwk_fifo_write_ptr[MAX_CG_BOARDS]; + std::unique_ptr<uint32_t[]> nwk_fifo[MAX_CG_BOARDS]; + int32_t nwk_fifo_read_ptr[MAX_CG_BOARDS]; + int32_t nwk_fifo_write_ptr[MAX_CG_BOARDS]; - std::unique_ptr<UINT32[]> nwk_ram[MAX_CG_BOARDS]; + std::unique_ptr<uint32_t[]> nwk_ram[MAX_CG_BOARDS]; }; @@ -101,6 +101,6 @@ private: extern const device_type KONPPC; -void draw_7segment_led(bitmap_rgb32 &bitmap, int x, int y, UINT8 value); +void draw_7segment_led(bitmap_rgb32 &bitmap, int x, int y, uint8_t value); #endif |