summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/igs036crypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/igs036crypt.h')
-rw-r--r--src/mame/machine/igs036crypt.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/machine/igs036crypt.h b/src/mame/machine/igs036crypt.h
index 2ae858e8389..c4d559f48d0 100644
--- a/src/mame/machine/igs036crypt.h
+++ b/src/mame/machine/igs036crypt.h
@@ -8,30 +8,30 @@
class igs036_decryptor
{
public:
- igs036_decryptor(const UINT16* game_key);
+ igs036_decryptor(const uint16_t* game_key);
void decrypter_rom(memory_region* region);
- UINT16 decrypt(UINT16 cipherword, int word_address)const;
- UINT16 deobfuscate(UINT16 cipherword, int word_address)const;
+ uint16_t decrypt(uint16_t cipherword, int word_address)const;
+ uint16_t deobfuscate(uint16_t cipherword, int word_address)const;
private:
- const UINT16* key;
+ const uint16_t* key;
static int (*rot_enabling[16][4])(int);
static int (*rot_direction[4][8])(int);
- static const UINT16 triggers[16][2];
+ static const uint16_t triggers[16][2];
int rotation(int address)const;
- UINT16 rol(UINT16 num, int shift)const;
+ uint16_t rol(uint16_t num, int shift)const;
int rot_enabled(int address, const int* group)const ;
int rot_group(int address, const int* group)const;
};
-extern const UINT16 orleg2_key[0x100];
-extern const UINT16 m312cn_key[0x100];
-extern const UINT16 cjddzsp_key[0x100];
-extern const UINT16 cjdh2_key[0x100];
-extern const UINT16 kov3_key[0x100];
-extern const UINT16 kov2_key[0x100];
-extern const UINT16 ddpdoj_key[0x100];
+extern const uint16_t orleg2_key[0x100];
+extern const uint16_t m312cn_key[0x100];
+extern const uint16_t cjddzsp_key[0x100];
+extern const uint16_t cjdh2_key[0x100];
+extern const uint16_t kov3_key[0x100];
+extern const uint16_t kov2_key[0x100];
+extern const uint16_t ddpdoj_key[0x100];
#endif