#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 } |
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 |
INT8 * | pbLocalReg [8] |
INT8 * | pbLocalRegC [8] |
INT8 * | pbPushReg [8] |
INT8 * | pbFlags [8] |
INT8 * | pbRegPairC [] |
INT8 * | pbFlagsC [8] |
INT8 * | pbMathReg [8] |
INT8 * | pbMathRegC [8] |
INT8 * | pbRegPairs [4] |
INT8 * | pbRegPairsC [4] |
INT8 * | pbPopRegPairs [4] |
INT8 * | pbPopRegPairC [4] |
INT8 * | pbIndexedRegPairs [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 |
#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 |
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 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 SetContextCode | ( | void | ) |
void SetOverflow | ( | void | ) |
void ShutdownCode | ( | void | ) |
void SPToIndex | ( | UINT32 | dwOpcode | ) |
void StandardHeader | ( | void | ) |
void StoreIndexReg | ( | 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 | ( | ) |
UINT8 bCurrentMode = TIMING_REGULAR |
UINT8 bTimingCB[0x100] |
UINT8 bTimingDDFD[0x100] |
UINT8 bTimingED[0x100] |
UINT8 bTimingRegular[0x100] |
UINT8 bTimingXXCB[0x100] |
UINT8 bUseStack = 0 |
UINT8 bWhat = MZ80_UNKNOWN |
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] |
|
static |
|
static |
|
static |
INT8* pbFlags[8] |
INT8* pbFlagsC[8] |
INT8* pbIndexedRegPairs[4] |
INT8* pbLocalReg[8] |
INT8* pbLocalRegC[8] |
INT8* pbMathReg[8] |
INT8* pbMathRegC[8] |
INT8* pbPopRegPairC[4] |
INT8* pbPopRegPairs[4] |
INT8* pbPushReg[8] |
INT8* pbRegPairC[] |
INT8* pbRegPairs[4] |
INT8* pbRegPairsC[4] |
char procname[150] |
struct sOp StandardOps[] |
char string[150] |