use stdint.h for types
This commit is contained in:
parent
56e4333bab
commit
eb7ead0b78
1 changed files with 8 additions and 11 deletions
17
adis.c
17
adis.c
|
@ -7,6 +7,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef void (*Handler)( unsigned long int word );
|
||||
|
||||
|
@ -61,12 +62,12 @@ typedef void (*Handler)( unsigned long int word );
|
|||
#define flip16(value)\
|
||||
(unsigned short) ((value&0xFF00)>>8) | ((value&0xFF)<<8)
|
||||
|
||||
typedef char u8;
|
||||
typedef unsigned short u16;
|
||||
typedef unsigned u32;
|
||||
typedef signed char s8;
|
||||
typedef signed short s16;
|
||||
typedef signed s32;
|
||||
typedef uint8_t u8;
|
||||
typedef uint16_t u16;
|
||||
typedef uint32_t u32;
|
||||
typedef int8_t s8;
|
||||
typedef int16_t s16;
|
||||
typedef int32_t s32;
|
||||
typedef float f32;
|
||||
|
||||
typedef struct {
|
||||
|
@ -1460,10 +1461,6 @@ char * getOP(unsigned long int word)
|
|||
return dis_op;
|
||||
}
|
||||
|
||||
/* prototype:
|
||||
adis o stalfo.s 2 ZELOOTMA.z64
|
||||
*/
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue