DGen/SDL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Enumerations | Functions | Variables
makez80.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
#include <inttypes.h>

Classes

struct  sOp

Macros

#define MZ80_VERSION   "3.4-dgen"
#define TRUE   0xff
#define FALSE   0x0
#define INVALID   0xff
#define UINT32   uint32_t
#define UINT8   uint8_t
#define INT8   char
#define TIMING_REGULAR   0x00
#define TIMING_XXCB   0x01
#define TIMING_CB   0xcb
#define TIMING_DDFD   0xdd
#define TIMING_ED   0xed
#define TIMING_EXCEPT   0x02

Enumerations

enum  { MZ80_ASSEMBLY_X86, MZ80_C, MZ80_UNKNOWN }

Functions

void ProcBegin (UINT32 dwOpcode)
void EDHandler (UINT32 dwOpcode)
void DDHandler (UINT32 dwOpcode)
void FDHandler (UINT32 dwOpcode)
void CBHandler (UINT32 dwOpcode)
void PushPopOperations (UINT32 dwOpcode)
void AddRegpairOperations (UINT32 dwOpcode)
void CallHandler (UINT32 dwOpcode)
void MiscHandler (UINT32 dwOpcode)
void IMHandler (UINT32 dwOpcode)
void IRHandler (UINT32 dwOpcode)
void LdRegPairImmediate (UINT32 dwOpcode)
void LoadImmediate (UINT32 dwOpcode)
void LdRegpairPtrByte (UINT32 dwOpcode)
void MathOperation (UINT32 dwOpcode)
void RegIntoMemory (UINT32 dwOpcode)
void JpHandler (UINT32 dwOpcode)
void LdRegImmediate (UINT32 dwOpcode)
void IncRegister (UINT32 dwOpcode)
void DecRegister (UINT32 dwOpcode)
void IncDecRegpair (UINT32 dwOpcode)
void LdRegReg (UINT32 dwOpcode)
void MathOperationDirect (UINT32 dwOpcode)
void JrHandler (UINT32 dwOpcode)
void RetHandler (UINT32 dwOpcode)
void RestartHandler (UINT32 dwOpcode)
void ToRegFromHl (UINT32)
void RraRlaHandler (UINT32)
void LdByteRegpair (UINT32)
void IncDecHLPtr (UINT32 dwOpcode)
void InOutHandler (UINT32 dwOpcode)
void RLCRRCRLRRSLASRASRLHandler (UINT32 dwOpcode)
void BITHandler (UINT32 dwOpcode)
void RESSETHandler (UINT32 dwOpcode)
void PushPopOperationsIndexed (UINT32 dwOpcode)
void LDILDRLDIRLDDRHandler (UINT32)
void LdRegpair (UINT32 dwOpcode)
void ExtendedRegIntoMemory (UINT32 dwOpcode)
void NegHandler (UINT32 dwOpcode)
void ExtendedInHandler (UINT32 dwOpcode)
void ExtendedOutHandler (UINT32 dwOpcode)
void RetIRetNHandler (UINT32 dwOcode)
void AdcSbcRegpair (UINT32 dwOpcode)
void CPICPDCPIRCPDRHandler (UINT32 dwOpcode)
void RRDRLDHandler (UINT32 dwOpcode)
void UndocRegToIndex (UINT32 dwOpcode)
void UndocIndexToReg (UINT32 dwOpcode)
void MathOperationIndexed (UINT32 dwOpcode)
void IncDecIndexed (UINT32 dwOpcode)
void DDFDCBHandler (UINT32 dwOpcode)
void JPIXIYHandler (UINT32 dwOpcode)
void AddIndexHandler (UINT32 dwOpcode)
void SPToIndex (UINT32 dwOpcode)
void LdByteToIndex (UINT32 dwOpcode)
void LdRegIndexOffset (UINT32 dwOpcode)
void IncDecIndexReg (UINT32 dwOpcode)
void ExIndexed (UINT32 dwOpcode)
void UndocIncDecIndexReg (UINT32 dwOpcode)
void UndocLoadHalfIndexReg (UINT32 dwOpcode)
void UndocMathIndex (UINT32 dwOpcode)
void ddcbBitWise (UINT32 dwOpcode)
void LdIndexPtrReg (UINT32 dwOpcode)
void StoreIndexReg (UINT32 dwOpcode)
void LoadIndexReg (UINT32 dwOpcode)
void OTIROTDROUTIOUTDHandler (UINT32 dwOpcode)
void INIRINDRINIINDHandler (UINT32 dwOpcode)
void InvalidInstructionC (UINT32 dwCount)
UINT32 Timing (UINT8 bWho, UINT32 dwOpcode)
void IndexedOffset (INT8 *Localmz80Index)
void StandardHeader (void)
void Alignment (void)
void SetSubFlagsSZHVC (INT8 *pszLeft, INT8 *pszRight)
void SetSbcFlagsSZHVC (INT8 *pszLeft, INT8 *pszRight)
void SetAddFlagsSZHVC (INT8 *pszLeft, INT8 *pszRight)
void SetAdcFlagsSZHVC (INT8 *pszLeft, INT8 *pszRight)
void SetOverflow (void)
void FetchNextInstruction (UINT32 dwOpcode)
void WriteValueToMemory (INT8 *pszAddress, INT8 *pszValue)
void WriteWordToMemory (INT8 *pszAddress, INT8 *pszTarget)
void WriteValueToIo (INT8 *pszIoAddress, INT8 *pszValue)
void ReadValueFromMemory (INT8 *pszAddress, INT8 *pszTarget)
void ReadWordFromMemory (INT8 *pszAddress, INT8 *pszTarget)
void ReadValueFromIo (INT8 *pszIoAddress, INT8 *pszTarget)
void GetTicksCode (void)
void ReleaseTimesliceCode (void)
void DataSegment (void)
void CodeSegmentBegin (void)
void CodeSegmentEnd (void)
void ProgramEnd (void)
void EmitRegularInstructions (void)
void EmitCBInstructions (void)
void EmitEDInstructions (void)
void EmitDDInstructions (void)
void EmitFDInstructions (void)
void ReadMemoryByteHandler ()
void WriteMemoryByteHandler ()
void PushWordHandler ()
void PopWordHandler ()
void ReadIoHandler ()
void WriteIoHandler ()
void ExecCode (void)
void NmiCode (void)
void IntCode (void)
void ResetCode (void)
void SetContextCode (void)
void GetContextCode (void)
void GetContextSizeCode (void)
void InitCode (void)
void ShutdownCode (void)
void DebuggerCode (void)
void EmitCode (void)
int main (int argc, char **argv)

Variables

FILE * fp = NULL
char string [150]
char cpubasename [150]
static char mz80Index [50]
static char mz80IndexHalfHigh [50]
static char mz80IndexHalfLow [50]
char majorOp [50]
char procname [150]
UINT32 dwGlobalLabel = 0
UINT8 bPlain = FALSE
UINT8 bNoTiming = FALSE
UINT8 bUseStack = 0
UINT8 bCurrentMode = TIMING_REGULAR
UINT8 b16BitIo = FALSE
UINT8 bThroughCallHandler = FALSE
UINT8 bOS2 = FALSE
UINT8 bWhat = MZ80_UNKNOWN
INT8pbLocalReg [8]
INT8pbLocalRegC [8]
INT8pbPushReg [8]
INT8pbFlags [8]
INT8pbRegPairC []
INT8pbFlagsC [8]
INT8pbMathReg [8]
INT8pbMathRegC [8]
INT8pbRegPairs [4]
INT8pbRegPairsC [4]
INT8pbPopRegPairs [4]
INT8pbPopRegPairC [4]
INT8pbIndexedRegPairs [4]
UINT8 bTimingRegular [0x100]
UINT8 bTimingCB [0x100]
UINT8 bTimingXXCB [0x100]
UINT8 bTimingDDFD [0x100]
UINT8 bTimingED [0x100]
struct sOp StandardOps []
struct sOp CBOps []
struct sOp EDOps []
struct sOp DDFDOps []
struct sOp DDFDCBOps []
UINT32 dwOverflowCount = 0

Macro Definition Documentation

#define FALSE   0x0
#define INT8   char
#define INVALID   0xff
#define MZ80_VERSION   "3.4-dgen"
#define TIMING_CB   0xcb
#define TIMING_DDFD   0xdd
#define TIMING_ED   0xed
#define TIMING_EXCEPT   0x02
#define TIMING_REGULAR   0x00
#define TIMING_XXCB   0x01
#define TRUE   0xff
#define UINT32   uint32_t
#define UINT8   uint8_t

Enumeration Type Documentation

anonymous enum
Enumerator:
MZ80_ASSEMBLY_X86 
MZ80_C 
MZ80_UNKNOWN 

Function Documentation

void AdcSbcRegpair ( UINT32  dwOpcode)
void AddIndexHandler ( UINT32  dwOpcode)
void AddRegpairOperations ( UINT32  dwOpcode)
void Alignment ( void  )
void BITHandler ( UINT32  dwOpcode)
void CallHandler ( UINT32  dwOpcode)
void CBHandler ( UINT32  dwOpcode)
void CodeSegmentBegin ( void  )
void CodeSegmentEnd ( void  )
void CPICPDCPIRCPDRHandler ( UINT32  dwOpcode)
void DataSegment ( void  )
void ddcbBitWise ( UINT32  dwOpcode)
void DDFDCBHandler ( UINT32  dwOpcode)
void DDHandler ( UINT32  dwOpcode)
void DebuggerCode ( void  )
void DecRegister ( UINT32  dwOpcode)
void EDHandler ( UINT32  dwOpcode)
void EmitCBInstructions ( void  )
void EmitCode ( void  )
void EmitDDInstructions ( void  )
void EmitEDInstructions ( void  )
void EmitFDInstructions ( void  )
void EmitRegularInstructions ( void  )
void ExecCode ( void  )
void ExIndexed ( UINT32  dwOpcode)
void ExtendedInHandler ( UINT32  dwOpcode)
void ExtendedOutHandler ( UINT32  dwOpcode)
void ExtendedRegIntoMemory ( UINT32  dwOpcode)
void FDHandler ( UINT32  dwOpcode)
void FetchNextInstruction ( UINT32  dwOpcode)
void GetContextCode ( void  )
void GetContextSizeCode ( void  )
void GetTicksCode ( void  )
void IMHandler ( UINT32  dwOpcode)
void IncDecHLPtr ( UINT32  dwOpcode)
void IncDecIndexed ( UINT32  dwOpcode)
void IncDecIndexReg ( UINT32  dwOpcode)
void IncDecRegpair ( UINT32  dwOpcode)
void IncRegister ( UINT32  dwOpcode)
void IndexedOffset ( INT8 Localmz80Index)
void INIRINDRINIINDHandler ( UINT32  dwOpcode)
void InitCode ( void  )
void InOutHandler ( UINT32  dwOpcode)
void IntCode ( void  )
void InvalidInstructionC ( UINT32  dwCount)
void IRHandler ( UINT32  dwOpcode)
void JpHandler ( UINT32  dwOpcode)
void JPIXIYHandler ( UINT32  dwOpcode)
void JrHandler ( UINT32  dwOpcode)
void LdByteRegpair ( UINT32  dwOpcode)
void LdByteToIndex ( UINT32  dwOpcode)
void LDILDRLDIRLDDRHandler ( UINT32  dwOpcode)
void LdIndexPtrReg ( UINT32  dwOpcode)
void LdRegImmediate ( UINT32  dwOpcode)
void LdRegIndexOffset ( UINT32  dwOpcode)
void LdRegpair ( UINT32  dwOpcode)
void LdRegPairImmediate ( UINT32  dwOpcode)
void LdRegpairPtrByte ( UINT32  dwOpcode)
void LdRegReg ( UINT32  dwOpcode)
void LoadImmediate ( UINT32  dwOpcode)
void LoadIndexReg ( UINT32  dwOpcode)
int main ( int  argc,
char **  argv 
)
void MathOperation ( UINT32  dwOpcode)
void MathOperationDirect ( UINT32  dwOpcode)
void MathOperationIndexed ( UINT32  dwOpcode)
void MiscHandler ( UINT32  dwOpcode)
void NegHandler ( UINT32  dwOpcode)
void NmiCode ( void  )
void OTIROTDROUTIOUTDHandler ( UINT32  dwOpcode)
void PopWordHandler ( )
void ProcBegin ( UINT32  dwOpcode)
void ProgramEnd ( void  )
void PushPopOperations ( UINT32  dwOpcode)
void PushPopOperationsIndexed ( UINT32  dwOpcode)
void PushWordHandler ( )
void ReadIoHandler ( )
void ReadMemoryByteHandler ( )
void ReadValueFromIo ( INT8 pszIoAddress,
INT8 pszTarget 
)
void ReadValueFromMemory ( INT8 pszAddress,
INT8 pszTarget 
)
void ReadWordFromMemory ( INT8 pszAddress,
INT8 pszTarget 
)
void RegIntoMemory ( UINT32  dwOpcode)
void ReleaseTimesliceCode ( void  )
void ResetCode ( void  )
void RESSETHandler ( UINT32  dwOpcode)
void RestartHandler ( UINT32  dwOpcode)
void RetHandler ( UINT32  dwOpcode)
void RetIRetNHandler ( UINT32  dwOcode)
void RLCRRCRLRRSLASRASRLHandler ( UINT32  dwOpcode)
void RraRlaHandler ( UINT32  dwOpcode)
void RRDRLDHandler ( UINT32  dwOpcode)
void SetAdcFlagsSZHVC ( INT8 pszLeft,
INT8 pszRight 
)
void SetAddFlagsSZHVC ( INT8 pszLeft,
INT8 pszRight 
)
void SetContextCode ( void  )
void SetOverflow ( void  )
void SetSbcFlagsSZHVC ( INT8 pszLeft,
INT8 pszRight 
)
void SetSubFlagsSZHVC ( INT8 pszLeft,
INT8 pszRight 
)
void ShutdownCode ( void  )
void SPToIndex ( UINT32  dwOpcode)
void StandardHeader ( void  )
void StoreIndexReg ( UINT32  dwOpcode)
UINT32 Timing ( UINT8  bWho,
UINT32  dwOpcode 
)
void ToRegFromHl ( UINT32  dwOpcode)
void UndocIncDecIndexReg ( UINT32  dwOpcode)
void UndocIndexToReg ( UINT32  dwOpcode)
void UndocLoadHalfIndexReg ( UINT32  dwOpcode)
void UndocMathIndex ( UINT32  dwOpcode)
void UndocRegToIndex ( UINT32  dwOpcode)
void WriteIoHandler ( )
void WriteMemoryByteHandler ( )
void WriteValueToIo ( INT8 pszIoAddress,
INT8 pszValue 
)
void WriteValueToMemory ( INT8 pszAddress,
INT8 pszValue 
)
void WriteWordToMemory ( INT8 pszAddress,
INT8 pszTarget 
)

Variable Documentation

UINT8 b16BitIo = FALSE
UINT8 bCurrentMode = TIMING_REGULAR
UINT8 bNoTiming = FALSE
UINT8 bOS2 = FALSE
UINT8 bPlain = FALSE
UINT8 bThroughCallHandler = FALSE
UINT8 bTimingCB[0x100]
Initial value:
{
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0f, 0x08
}
UINT8 bTimingDDFD[0x100]
Initial value:
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0e, 0x14, 0x0a, 0x09, 0x09, 0x09, 0x00, 0x00, 0x0f, 0x14, 0x0a, 0x09, 0x09, 0x09, 0x00,
0x00, 0x00, 0x00, 0x00, 0x17, 0x17, 0x13, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00,
0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00,
0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x13, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x13, 0x09,
0x13, 0x13, 0x13, 0x13, 0x13, 0x13, 0x13, 0x13, 0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00,
0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00,
0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00,
0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00,
0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x09, 0x13, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0e, 0x00, 0x17, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}
UINT8 bTimingED[0x100]
Initial value:
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0c, 0x0c, 0x0f, 0x14, 0x08, 0x0e, 0x08, 0x09, 0x0c, 0x0c, 0x0f, 0x14, 0x08, 0x0e, 0x08, 0x09,
0x0c, 0x0c, 0x0f, 0x14, 0x08, 0x08, 0x08, 0x09, 0x0c, 0x0c, 0x0f, 0x14, 0x08, 0x08, 0x08, 0x09,
0x0c, 0x0c, 0x0f, 0x14, 0x08, 0x08, 0x08, 0x12, 0x0c, 0x0c, 0x0f, 0x14, 0x08, 0x08, 0x08, 0x12,
0x0c, 0x0c, 0x0f, 0x14, 0x08, 0x08, 0x08, 0x00, 0x0c, 0x0c, 0x0f, 0x14, 0x08, 0x08, 0x08, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00,
0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}
UINT8 bTimingRegular[0x100]
Initial value:
{
0x04, 0x0a, 0x07, 0x06, 0x04, 0x04, 0x07, 0x04, 0x04, 0x0b, 0x07, 0x06, 0x04, 0x04, 0x07, 0x04,
0x08, 0x0a, 0x07, 0x06, 0x04, 0x04, 0x07, 0x04, 0x0c, 0x0b, 0x07, 0x06, 0x04, 0x04, 0x07, 0x04,
0x07, 0x0a, 0x10, 0x06, 0x04, 0x04, 0x07, 0x04, 0x07, 0x0b, 0x10, 0x06, 0x04, 0x04, 0x07, 0x04,
0x07, 0x0a, 0x0d, 0x06, 0x0b, 0x0b, 0x0a, 0x04, 0x07, 0x0b, 0x0d, 0x06, 0x04, 0x04, 0x07, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04,
0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04,
0x05, 0x0a, 0x0a, 0x0a, 0x0a, 0x0b, 0x07, 0x0b, 0x05, 0x0a, 0x0a, 0x00, 0x0a, 0x11, 0x07, 0x0b,
0x05, 0x0a, 0x0a, 0x0b, 0x0a, 0x0b, 0x07, 0x0b, 0x05, 0x04, 0x0a, 0x0b, 0x0a, 0x00, 0x07, 0x0b,
0x05, 0x0a, 0x0a, 0x13, 0x0a, 0x0b, 0x07, 0x0b, 0x05, 0x04, 0x0a, 0x04, 0x0a, 0x00, 0x07, 0x0b,
0x05, 0x0a, 0x0a, 0x04, 0x0a, 0x0b, 0x07, 0x0b, 0x05, 0x06, 0x0a, 0x04, 0x0a, 0x00, 0x07, 0x0b
}
UINT8 bTimingXXCB[0x100]
Initial value:
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14,
0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14,
0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14,
0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00
}
UINT8 bUseStack = 0
struct sOp CBOps[]
char cpubasename[150]
struct sOp DDFDCBOps[]
struct sOp DDFDOps[]
UINT32 dwGlobalLabel = 0
UINT32 dwOverflowCount = 0
struct sOp EDOps[]
FILE* fp = NULL
char majorOp[50]
char mz80Index[50]
static
char mz80IndexHalfHigh[50]
static
char mz80IndexHalfLow[50]
static
INT8* pbFlags[8]
Initial value:
{
"nz",
"z",
"nc",
"c",
"po",
"pe",
"ns",
"s"
}
INT8* pbFlagsC[8]
Initial value:
{
"(!(cpu.z80F & Z80_FLAG_ZERO))",
"(cpu.z80F & Z80_FLAG_ZERO)",
"(!(cpu.z80F & Z80_FLAG_CARRY))",
"(cpu.z80F & Z80_FLAG_CARRY)",
"(!(cpu.z80F & Z80_FLAG_OVERFLOW_PARITY))",
"(cpu.z80F & Z80_FLAG_OVERFLOW_PARITY)",
"(!(cpu.z80F & Z80_FLAG_SIGN))",
"(cpu.z80F & Z80_FLAG_SIGN)"
}
INT8* pbIndexedRegPairs[4]
Initial value:
{
"cx",
"word [_z80de]",
"di",
"word [_z80sp]"
}
INT8* pbLocalReg[8]
Initial value:
{
"ch",
"cl",
"dh",
"dl",
"bh",
"bl",
"dl",
"al"
}
INT8* pbLocalRegC[8]
Initial value:
{
"cpu.z80B",
"cpu.z80C",
"cpu.z80D",
"cpu.z80E",
"cpu.z80H",
"cpu.z80L",
"barf",
"cpu.z80A"
}
INT8* pbMathReg[8]
Initial value:
{
"ch",
"cl",
"byte [_z80de + 1]",
"byte [_z80de]",
"bh",
"bl",
"INVALID",
"al"
}
INT8* pbMathRegC[8]
Initial value:
{
"cpu.z80B",
"cpu.z80C",
"cpu.z80D",
"cpu.z80E",
"cpu.z80H",
"cpu.z80L",
"bTemp",
"cpu.z80A"
}
INT8* pbPopRegPairC[4]
Initial value:
{
"cpu.z80BC",
"cpu.z80DE",
"cpu.z80HL",
"cpu.z80AF"
}
INT8* pbPopRegPairs[4]
Initial value:
{
"cx",
"word [_z80de]",
"bx",
"ax"
}
INT8* pbPushReg[8]
Initial value:
{
"cl",
"ch",
"byte [_z80de]",
"byte [_z80de + 1]",
"bl",
"bh",
"ah",
"al"
}
INT8* pbRegPairC[]
Initial value:
{
"cpu.z80BC",
"cpu.z80DE",
"cpu.z80HL",
"cpu.z80sp"
}
INT8* pbRegPairs[4]
Initial value:
{
"cx",
"word [_z80de]",
"bx",
"word [_z80sp]"
}
INT8* pbRegPairsC[4]
Initial value:
{
"cpu.z80BC",
"cpu.z80DE",
"cpu.z80HL",
"cpu.z80sp"
}
char procname[150]
struct sOp StandardOps[]
char string[150]