summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/kaneko_toybox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/kaneko_toybox.h')
-rw-r--r--src/mame/machine/kaneko_toybox.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/machine/kaneko_toybox.h b/src/mame/machine/kaneko_toybox.h
index 98b4bbbec34..1a01e5c9306 100644
--- a/src/mame/machine/kaneko_toybox.h
+++ b/src/mame/machine/kaneko_toybox.h
@@ -24,7 +24,7 @@
// MCU executed command: 4300 0100 - factory settings
// this command is issued whenever the nvram settings are corrupted
// the MCU writes directly to NVRAM
-static const UINT16 bonkadv_mcu_43[] = {
+static const uint16_t bonkadv_mcu_43[] = {
0x8BE0,0x8E71,0x0102,0x0102,0x0300,0x010C,0x0202,0x0202,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0030,0x0020,0x4F6B,0x0305,0x0000,0x0000,0x0000,0x0000,
@@ -47,12 +47,12 @@ static const UINT16 bonkadv_mcu_43[] = {
200E0E: 7E7F moveq #$7f, D7
200E10: 4E75 rts
*/
-static const UINT16 bonkadv_mcu_4_34[] = {
+static const uint16_t bonkadv_mcu_4_34[] = {
0x7071,0x7273,0x7475,0x7677,0x7879,0x7a7b,0x7c7d,0x7e7f,
0x4e75
};
// MCU executed command: 0400 0180 0032 - 128 bytes at $200180
-static const UINT16 bonkadv_mcu_4_32[] = {
+static const uint16_t bonkadv_mcu_4_32[] = {
0x00cc,0xcc0c,0xc0c0,0xc080,0x0484,0xb6a6,0x0404,0x80c0,
0x80b1,0xb1a1,0xa1b2,0xa2b3,0xb3a3,0xa3b1,0xb1b1,0xb1c0,
0xc0a1,0xa1a1,0xa1b2,0xb2a2,0xa290,0x9090,0xb9b9,0xa9a9,
@@ -63,7 +63,7 @@ static const UINT16 bonkadv_mcu_4_32[] = {
0xc0c0,0xa1a1,0xa1a1,0xb2b2,0xa2a2,0x9090,0x9000,0x0000
};
// MCU executed command: 0400 0280 0031 - 112 bytes at $200280
-static const UINT16 bonkadv_mcu_4_31[] = {
+static const uint16_t bonkadv_mcu_4_31[] = {
0x1013,0x1411,0x1216,0x1519,0x1a17,0x1824,0x2322,0x211f,
0x201e,0x1d1c,0x1b27,0x2825,0x2629,0x2a2b,0x2e2f,0x2c2d,
0x3130,0x3435,0x3233,0x3f3e,0x3d3c,0x3a3b,0x3938,0x3736,
@@ -73,7 +73,7 @@ static const UINT16 bonkadv_mcu_4_31[] = {
0x7071,0x6f6e,0x6d6c,0x7879,0x7677,0x7a7b,0x7c7d,0x7e7f
};
// MCU executed command: 0400 0E50 0030 - 655 bytes at $200E50 (656 here)
-static const UINT16 bonkadv_mcu_4_30[] = {
+static const uint16_t bonkadv_mcu_4_30[] = {
0x8c00,0x9700,0xa000,0xa700,0xb200,0xb700,0xc000,0xcc00,
0xd600,0xdf00,0xef00,0xf500,0xfd00,0x0501,0x0b01,0x1801,
0x1e01,0x2901,0x3101,0x3701,0x4101,0x4901,0x0b01,0x5d01,
@@ -119,7 +119,7 @@ static const UINT16 bonkadv_mcu_4_30[] = {
0xff00,0x0005,0x2495,0x96ff,0x0000,0x009a,0xff00,0x0000
};
// MCU executed command: 0400 0400 0033 - 2560 bytes at $200400
-static const UINT16 bonkadv_mcu_4_33[] = {
+static const uint16_t bonkadv_mcu_4_33[] = {
0x00a4,0x0001,0x00a5,0x005a,0x00a6,0x0074,0x00a7,0x009b,
0x00a8,0x00d0,0x00a9,0x00fe,0x00aa,0x015d,0x00ab,0x01b0,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
@@ -292,7 +292,7 @@ static const UINT16 bonkadv_mcu_4_33[] = {
};
/* decryption table */
-static const UINT8 decryption_table[0x100] = {
+static const uint8_t decryption_table[0x100] = {
0x7b,0x82,0xf0,0xbc,0x7f,0x1d,0xa2,0xc5,0x2a,0xfa,0x55,0xee,0x1a,0xd0,0x59,0x76,
0x5e,0x75,0x79,0x16,0xa5,0xf6,0x84,0xed,0x0f,0x2e,0xf2,0x36,0x61,0xac,0xcd,0xab,
0x01,0x3b,0x01,0x87,0x73,0xab,0xce,0x5d,0xd4,0x1d,0x68,0x2a,0x35,0xea,0x13,0x27,
@@ -312,7 +312,7 @@ static const UINT8 decryption_table[0x100] = {
};
/* alt decryption table (gtmr2) */
-static const UINT8 decryption_table_alt[0x100] = {
+static const uint8_t decryption_table_alt[0x100] = {
0x26,0x17,0xb9,0xcf,0x1a,0xf5,0x14,0x1e,0x0c,0x35,0xb3,0x66,0xa0,0x17,0xe9,0xe4,
0x90,0xf6,0xd5,0x35,0xac,0x95,0x49,0x43,0x64,0x0c,0x03,0x75,0x4d,0xda,0xb6,0xdf,
0x06,0xcf,0x83,0x9e,0x35,0x2c,0x71,0x2a,0xab,0xcc,0x65,0xd4,0x1f,0xb0,0x88,0x3c,
@@ -335,7 +335,7 @@ static const UINT8 decryption_table_alt[0x100] = {
class kaneko_toybox_device : public device_t
{
public:
- kaneko_toybox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ kaneko_toybox_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
static void set_table(device_t &device, int tabletype);
static void set_game_type(device_t &device, int gametype);
@@ -351,14 +351,14 @@ protected:
virtual void device_reset() override;
private:
- required_shared_ptr<UINT16> m_mcuram;
- UINT16 m_mcu_com[4];
+ required_shared_ptr<uint16_t> m_mcuram;
+ uint16_t m_mcu_com[4];
int m_gametype;
int m_tabletype;
- void mcu_com_w(offs_t offset, UINT16 data, UINT16 mem_mask, int _n_);
+ void mcu_com_w(offs_t offset, uint16_t data, uint16_t mem_mask, int _n_);
void decrypt_rom();
- void handle_04_subcommand(UINT8 mcu_subcmd, UINT16 *mcu_ram);
+ void handle_04_subcommand(uint8_t mcu_subcmd, uint16_t *mcu_ram);
void mcu_init();
void mcu_run();
};