use stdint.h for types

This commit is contained in:
Connor Olding 2017-07-05 02:30:12 +00:00
parent 56e4333bab
commit eb7ead0b78

19
adis.c
View File

@ -7,6 +7,7 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
typedef void (*Handler)( unsigned long int word );
@ -61,13 +62,13 @@ 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 float f32;
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 {
unsigned addr;
@ -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;