diff options
author | aliaspider | 2014-11-03 15:26:54 +0100 |
---|---|---|
committer | aliaspider | 2014-11-03 15:26:54 +0100 |
commit | 4a54fd4018adf931fb436acba2399efc6d6d1176 (patch) | |
tree | efba5c3c8e1057bce6a7fff834f2dcda36707e5a /source/seta.h | |
parent | c599f551ea0862b397b2e8b1ca4b441b4ab8c8f1 (diff) | |
download | snes9x2005-4a54fd4018adf931fb436acba2399efc6d6d1176.tar.gz snes9x2005-4a54fd4018adf931fb436acba2399efc6d6d1176.tar.bz2 snes9x2005-4a54fd4018adf931fb436acba2399efc6d6d1176.zip |
use stdint/stdbool
Diffstat (limited to 'source/seta.h')
-rw-r--r-- | source/seta.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/source/seta.h b/source/seta.h index d50e588..fc8f5ce 100644 --- a/source/seta.h +++ b/source/seta.h @@ -97,54 +97,54 @@ #define ST_011 0x02 #define ST_018 0x03 -uint8 S9xGetSetaDSP(uint32 Address); -void S9xSetSetaDSP(uint8 byte, uint32 Address); -uint8 S9xGetST018(uint32 Address); -void S9xSetST018(uint8 Byte, uint32 Address); +uint8_t S9xGetSetaDSP(uint32_t Address); +void S9xSetSetaDSP(uint8_t byte, uint32_t Address); +uint8_t S9xGetST018(uint32_t Address); +void S9xSetST018(uint8_t Byte, uint32_t Address); -uint8 S9xGetST010(uint32 Address); -void S9xSetST010(uint32 Address, uint8 Byte); -uint8 S9xGetST011(uint32 Address); -void S9xSetST011(uint32 Address, uint8 Byte); +uint8_t S9xGetST010(uint32_t Address); +void S9xSetST010(uint32_t Address, uint8_t Byte); +uint8_t S9xGetST011(uint32_t Address); +void S9xSetST011(uint32_t Address, uint8_t Byte); -extern void (*SetSETA)(uint32, uint8); -extern uint8(*GetSETA)(uint32); +extern void (*SetSETA)(uint32_t, uint8_t); +extern uint8_t(*GetSETA)(uint32_t); typedef struct SETA_ST010_STRUCT { - uint8 input_params[16]; - uint8 output_params[16]; - uint8 op_reg; - uint8 execute; - bool8 control_enable; + uint8_t input_params[16]; + uint8_t output_params[16]; + uint8_t op_reg; + uint8_t execute; + bool control_enable; } ST010_Regs; typedef struct SETA_ST011_STRUCT { - bool8 waiting4command; - uint8 status; - uint8 command; - uint32 in_count; - uint32 in_index; - uint32 out_count; - uint32 out_index; - uint8 parameters [512]; - uint8 output [512]; + bool waiting4command; + uint8_t status; + uint8_t command; + uint32_t in_count; + uint32_t in_index; + uint32_t out_count; + uint32_t out_index; + uint8_t parameters [512]; + uint8_t output [512]; } ST011_Regs; typedef struct SETA_ST018_STRUCT { - bool8 waiting4command; - uint8 status; - uint8 part_command; - uint8 pass; - uint32 command; - uint32 in_count; - uint32 in_index; - uint32 out_count; - uint32 out_index; - uint8 parameters [512]; - uint8 output [512]; + bool waiting4command; + uint8_t status; + uint8_t part_command; + uint8_t pass; + uint32_t command; + uint32_t in_count; + uint32_t in_index; + uint32_t out_count; + uint32_t out_index; + uint8_t parameters [512]; + uint8_t output [512]; } ST018_Regs; #endif |