mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
core, structural cleanup, fixes and improvements for type issues #2
This commit is contained in:
parent
5ab80df952
commit
f821bb7011
64 changed files with 140 additions and 150 deletions
|
@ -5,12 +5,12 @@
|
|||
#undef int16
|
||||
#undef int32
|
||||
|
||||
#define uint8 unsigned char
|
||||
#define uint16 unsigned short
|
||||
#define uint32 unsigned int
|
||||
#define int8 signed char
|
||||
#define int16 signed short
|
||||
#define int32 signed int
|
||||
#define uint8 u8
|
||||
#define uint16 u16
|
||||
#define uint32 u32
|
||||
#define int8 s8
|
||||
#define int16 s16
|
||||
#define int32 s32
|
||||
|
||||
#define READ_BYTE(BASE, ADDR) (BASE)[(ADDR)^1]
|
||||
#define WRITE_BYTE(BASE, ADDR, VAL) (BASE)[(ADDR)^1] = (VAL)
|
||||
|
|
|
@ -311,7 +311,7 @@ static void gfx_render(uint32 bufferIndex, uint32 width)
|
|||
}
|
||||
}
|
||||
|
||||
void gfx_start(unsigned int base)
|
||||
void gfx_start(uint32 base)
|
||||
{
|
||||
/* make sure 2M mode is enabled */
|
||||
if (!(Pico_mcd->s68k_regs[3] & 0x04))
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
PICO_INTERNAL void DmaSlowCell(u32 source, u32 a, int len, unsigned char inc)
|
||||
{
|
||||
unsigned char *base;
|
||||
unsigned int asrc, a2;
|
||||
u32 asrc, a2;
|
||||
u16 *r;
|
||||
|
||||
base = Pico_mcd->word_ram1M[Pico_mcd->s68k_regs[3]&1];
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
@* See COPYING file in the top-level directory.
|
||||
@*
|
||||
|
||||
#include "../arm_features.h"
|
||||
#include "../pico_int_offs.h"
|
||||
#include <pico/arm_features.h>
|
||||
#include <pico/pico_int_offs.h>
|
||||
|
||||
.equiv PCM_STEP_SHIFT, 11
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue