core, structural cleanup, fixes and improvements for type issues #2

This commit is contained in:
kub 2021-01-01 12:43:49 +01:00
parent 5ab80df952
commit f821bb7011
64 changed files with 140 additions and 150 deletions

View file

@ -5,7 +5,7 @@
;@ For commercial use, separate licencing terms must be obtained.
#include "../../pico/arm_features.h"
#include <pico/arm_features.h>
.data
.align 4

View file

@ -8,7 +8,7 @@
#define _GNU_SOURCE
#include <stdio.h>
#include "../pico/pico_int.h"
#include <pico/pico_int.h>
#include "debug.h"
static char pdb_pending_cmds[128];

View file

@ -60,6 +60,8 @@
#define FAMEC_EXTRA_INLINE INLINE
#endif
#include <pico/pico_types.h>
/*
#ifdef u8
#undef u8
#endif
@ -95,6 +97,7 @@
#define u32 unsigned int
#define s32 signed int
#define uptr uintptr_t
*/
/*
typedef unsigned char u8;

View file

@ -32,8 +32,8 @@
#include <stdlib.h>
#include <assert.h>
#include "../../pico/pico_int.h"
#include "../../pico/arm_features.h"
#include <pico/pico_int.h>
#include <pico/arm_features.h>
#include "sh2.h"
#include "compiler.h"
#include "../drc/cmn.h"

View file

@ -9,12 +9,12 @@
// MAME types
#ifndef INT8
typedef signed char INT8;
typedef signed short INT16;
typedef signed int INT32;
typedef unsigned int UINT32;
typedef unsigned short UINT16;
typedef unsigned char UINT8;
typedef s8 INT8;
typedef s16 INT16;
typedef s32 INT32;
typedef u32 UINT32;
typedef u16 UINT16;
typedef u8 UINT8;
#endif
#ifdef DRC_SH2

View file

@ -1,8 +1,8 @@
#ifndef __SH2_H__
#define __SH2_H__
#include "../../pico/pico_types.h"
#include "../../pico/pico_port.h"
#include <pico/pico_types.h>
#include <pico/pico_port.h>
// registers - matches structure order
typedef enum {