mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
fixed some portability issues
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@337 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
dca310c413
commit
10d84cb275
2 changed files with 13 additions and 2 deletions
|
@ -14,12 +14,20 @@
|
||||||
#include "cz80.h"
|
#include "cz80.h"
|
||||||
|
|
||||||
#if PICODRIVE_HACKS
|
#if PICODRIVE_HACKS
|
||||||
|
#undef EMU_M68K
|
||||||
#include <Pico/PicoInt.h>
|
#include <Pico/PicoInt.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ALIGN_DATA
|
#ifndef ALIGN_DATA
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define ALIGN_DATA
|
||||||
|
#define inline
|
||||||
|
#undef CZ80_USE_JUMPTABLE
|
||||||
|
#define CZ80_USE_JUMPTABLE 0
|
||||||
|
#else
|
||||||
#define ALIGN_DATA __attribute__((aligned(4)))
|
#define ALIGN_DATA __attribute__((aligned(4)))
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CF 0x01
|
#define CF 0x01
|
||||||
#define NF 0x02
|
#define NF 0x02
|
||||||
|
|
|
@ -33,7 +33,9 @@
|
||||||
|
|
||||||
|
|
||||||
#undef INLINE
|
#undef INLINE
|
||||||
#ifndef INLINE
|
#ifdef _MSC_VER
|
||||||
|
#define INLINE
|
||||||
|
#else
|
||||||
#define INLINE __inline__
|
#define INLINE __inline__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -914,9 +916,10 @@ famec_Exec:
|
||||||
#endif
|
#endif
|
||||||
if (cycles_needed != 0)
|
if (cycles_needed != 0)
|
||||||
{
|
{
|
||||||
|
u32 line;
|
||||||
m68kcontext.io_cycle_counter = cycles_needed;
|
m68kcontext.io_cycle_counter = cycles_needed;
|
||||||
cycles_needed = 0;
|
cycles_needed = 0;
|
||||||
s32 line=interrupt_chk__();
|
line=interrupt_chk__();
|
||||||
if (line>0)
|
if (line>0)
|
||||||
{
|
{
|
||||||
if (m68kcontext.iack_handler != NULL)
|
if (m68kcontext.iack_handler != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue