/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
- * Copyright (C) 2002 Ben Parnell
+ * Copyright (C) 2002 Xodnizel
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*/
#include <string.h>
-#include <stdlib.h>
-#include "share.h"
+#include <stdlib.h>
+#include "share.h"
typedef struct {
uint32 mzx,mzb;
else
{
ret|=((FCArk.mzx>>(7-FCArk.readbit))&1)<<1;
- FCArk.readbit++;
+ if(!fceuindbg)
+ FCArk.readbit++;
}
}
else
static void FP_FASTAPASS(2) UpdateARKFC(void *data, int arg)
{
- uint32 *ptr=data;
+ uint32 *ptr=(uint32 *)data;
FCArk.mzx=FixX(ptr[0]);
FCArk.mzb=ptr[2]?1:0;
}
else
{
ret|=((NESArk[w].mzx>>(7-NESArk[w].readbit))&1)<<4;
- NESArk[w].readbit++;
+ if(!fceuindbg)
+ NESArk[w].readbit++;
}
ret|=(NESArk[w].mzb&1)<<3;
return(ret);
static void FP_FASTAPASS(3) UpdateARK(int w, void *data, int arg)
{
- uint32 *ptr=data;
+ uint32 *ptr=(uint32*)data;
NESArk[w].mzx=FixX(ptr[0]);
NESArk[w].mzb=ptr[2]?1:0;
}