mirror of
https://github.com/holub/mame
synced 2025-05-27 16:21:34 +03:00
From: hoge hoge [c8cv@hotmail.com]
Sent: Friday, August 07, 2009 9:33 AM To: submit@mamedev.org Subject: z180 daatable removed Since I removed the daatable from i8085, and the z180 one is exactly the same, I might as well remove that one too, see attached diff. hap
This commit is contained in:
parent
4b7d4376ff
commit
6f8be150e6
@ -1544,7 +1544,6 @@ endif
|
||||
|
||||
$(CPUOBJ)/z180/z180.o: $(CPUSRC)/z180/z180.c \
|
||||
$(CPUSRC)/z180/z180.h \
|
||||
$(CPUSRC)/z180/z180daa.h \
|
||||
$(CPUSRC)/z180/z180op.c \
|
||||
$(CPUSRC)/z180/z180ops.h \
|
||||
$(CPUSRC)/z180/z180tbl.h \
|
||||
|
@ -912,7 +912,6 @@ static void z180_dma1(z180_state *cpustate);
|
||||
static CPU_BURN( z180 );
|
||||
static CPU_SET_INFO( z180 );
|
||||
|
||||
#include "z180daa.h"
|
||||
#include "z180ops.h"
|
||||
#include "z180tbl.h"
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -418,11 +418,17 @@ INLINE UINT8 DEC(z180_state *cpustate, UINT8 value)
|
||||
* DAA
|
||||
***************************************************************/
|
||||
#define DAA { \
|
||||
int idx = cpustate->_A; \
|
||||
if( cpustate->_F & CF ) idx |= 0x100; \
|
||||
if( cpustate->_F & HF ) idx |= 0x200; \
|
||||
if( cpustate->_F & NF ) idx |= 0x400; \
|
||||
cpustate->_AF = DAATable[idx]; \
|
||||
UINT8 r = cpustate->_A; \
|
||||
if (cpustate->_F&NF) { \
|
||||
if ((cpustate->_F&HF)|((cpustate->_A&0xf)>9)) r-=6; \
|
||||
if ((cpustate->_F&CF)|(cpustate->_A>0x99)) r-=0x60; \
|
||||
} \
|
||||
else { \
|
||||
if ((cpustate->_F&HF)|((cpustate->_A&0xf)>9)) r+=6; \
|
||||
if ((cpustate->_F&CF)|(cpustate->_A>0x99)) r+=0x60; \
|
||||
} \
|
||||
cpustate->_F=(cpustate->_F&3)|(cpustate->_A>0x99)|((cpustate->_A^r)&HF)|SZP[r]; \
|
||||
cpustate->_A=r; \
|
||||
}
|
||||
|
||||
/***************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user