Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

C6510 Class Reference

implements the main CPU in the C64, MOS6510 More...

#include <6510_.h>

Collaboration diagram for C6510:

Collaboration graph
[legend]
List of all members.

Public Types

typedef void(C6510::* C6510ptr2func )()

Public Member Functions

 C6510 ()
 C'tor.

 ~C6510 ()
 D'tor.

bool c64memAlloc ()
void initInterpreter (int inMemoryMode)
void c64memReset (int clockSpeed, ubyte randomSeed)
void c64memClear ()
bool interpreter (uword p, ubyte ramrom, ubyte a, ubyte x, ubyte y)
ubyte c64memRamRom (uword address)
uword abso ()
ubyte my_read_data (uword w)

Public Attributes

ubytec64mem1
 64KB C64-RAM

ubytec64mem2
 Basic-ROM, VIC, SID, I/O, Kernal-ROM.

bool sidKeysOff [32]
 key_off detection

bool sidKeysOn [32]
 key_on detection

ubyte sidLastValue
 last value written to the SID

ubyte optr3readWave
 D41B.

ubyte optr3readEnve
 D41C.

ubyte AC
ubyte XR
ubyte YR
 6510 processor registers

uword PC
uword SP
 program-counter, stack-pointer

ubytepPCbase
 pointer to RAM/ROM buffer base

ubytepPCend
 pointer to RAM/ROM buffer end

ubytepPC
 pointer to PC location

ubyte c64ramBuf [65536+256]
 RAM buffer.

ubyte c64romBuf [65536+256]
 ROM buffer.

statusRegister SR
 8-bit status register

bool isBasic
 these flags are used to not have to repeatedly

bool isIO
 evaluate the bank-select register for each

bool isKernal
 address operand

ubytebankSelReg
 pointer to RAM[1], bank-select register

ubyte fakeReadTimer
ubyte(C6510::* readData )(uword)
void(C6510::* writeData )(uword, ubyte)
bool stackIsOkay
 true if the Stack is OK

int memoryMode
 the default is MPU_TRANSPARENT_ROM

C6510ptr2func instrList [256]
 list of instructions

ubyte iFakeRndSeed
 Fake Random Seed.


Private Member Functions

void affectNZ (ubyte reg)
void clearSR ()
ubyte codeSR ()
void decodeSR (ubyte stackByte)
void branchIfClear (ubyte flag)
void branchIfSet (ubyte flag)
uword absx ()
uword absy ()
ubyte imm ()
uword indx ()
uword indy ()
ubyte zp ()
ubyte zpx ()
ubyte zpy ()
void evalBankSelect ()
void evalBankJump ()
ubyte readData_bs (uword addr)
ubyte readData_transp (uword addr)
ubyte readData_plain (uword addr)
ubyte readData_zp (uword addr)
void writeData_bs (uword addr, ubyte data)
void writeData_plain (uword addr, ubyte data)
void writeData_zp (uword addr, ubyte data)
void resetSP ()
void checkSP ()
void ADC_m (ubyte x)
void ADC_imm ()
void ADC_abso ()
void ADC_absx ()
void ADC_absy ()
void ADC_indx ()
void ADC_indy ()
void ADC_zp ()
void ADC_zpx ()
void AND_m (ubyte x)
void AND_imm ()
void AND_abso ()
void AND_absx ()
void AND_absy ()
void AND_indx ()
void AND_indy ()
void AND_zp ()
void AND_zpx ()
ubyte ASL_m (ubyte x)
void ASL_AC ()
void ASL_abso ()
void ASL_absx ()
void ASL_zp ()
void ASL_zpx ()
void BCC_ ()
void BCS_ ()
void BEQ_ ()
void BIT_m (ubyte x)
void BIT_abso ()
void BIT_zp ()
void BMI_ ()
void BNE_ ()
void BPL_ ()
void BRK_ ()
void BVC_ ()
void BVS_ ()
void CLC_ ()
void CLD_ ()
void CLI_ ()
void CLV_ ()
void CMP_m (ubyte x)
void CMP_abso ()
void CMP_absx ()
void CMP_absy ()
void CMP_imm ()
void CMP_indx ()
void CMP_indy ()
void CMP_zp ()
void CMP_zpx ()
void CPX_m (ubyte x)
void CPX_abso ()
void CPX_imm ()
void CPX_zp ()
void CPY_m (ubyte x)
void CPY_abso ()
void CPY_imm ()
void CPY_zp ()
void DEC_m (uword addr)
void DEC_m_zp (uword addr)
void DEC_abso ()
void DEC_absx ()
void DEC_zp ()
void DEC_zpx ()
void DEX_ ()
void DEY_ ()
void EOR_m (ubyte x)
void EOR_abso ()
void EOR_absx ()
void EOR_absy ()
void EOR_imm ()
void EOR_indx ()
void EOR_indy ()
void EOR_zp ()
void EOR_zpx ()
void INC_m (uword addr)
void INC_m_zp (uword addr)
void INC_abso ()
void INC_absx ()
void INC_zp ()
void INC_zpx ()
void INX_ ()
void INY_ ()
void JMP_ ()
void JMP_transp ()
void JMP_plain ()
void JMP_vec ()
void JMP_vec_transp ()
void JMP_vec_plain ()
void JSR_main ()
void JSR_ ()
void JSR_transp ()
void JSR_plain ()
void LDA_abso ()
void LDA_absx ()
void LDA_absy ()
void LDA_imm ()
void LDA_indx ()
void LDA_indy ()
void LDA_zp ()
void LDA_zpx ()
void LDX_abso ()
void LDX_absy ()
void LDX_imm ()
void LDX_zp ()
void LDX_zpy ()
void LDY_abso ()
void LDY_absx ()
void LDY_imm ()
void LDY_zp ()
void LDY_zpx ()
ubyte LSR_m (ubyte x)
void LSR_AC ()
void LSR_abso ()
void LSR_absx ()
void LSR_zp ()
void LSR_zpx ()
void ORA_m (ubyte x)
void ORA_abso ()
void ORA_absx ()
void ORA_absy ()
void ORA_imm ()
void ORA_indx ()
void ORA_indy ()
void ORA_zp ()
void ORA_zpx ()
void NOP_ ()
void PHA_ ()
void PHP_ ()
void PLA_ ()
void PLP_ ()
ubyte ROL_m (ubyte x)
void ROL_AC ()
void ROL_abso ()
void ROL_absx ()
void ROL_zp ()
void ROL_zpx ()
ubyte ROR_m (ubyte x)
void ROR_AC ()
void ROR_abso ()
void ROR_absx ()
void ROR_zp ()
void ROR_zpx ()
void RTI_ ()
void RTS_ ()
void SBC_m (ubyte s)
void SBC_abso ()
void SBC_absx ()
void SBC_absy ()
void SBC_imm ()
void SBC_indx ()
void SBC_indy ()
void SBC_zp ()
void SBC_zpx ()
void SEC_ ()
void SED_ ()
void SEI_ ()
void STA_abso ()
void STA_absx ()
void STA_absy ()
void STA_indx ()
void STA_indy ()
void STA_zp ()
void STA_zpx ()
void STX_abso ()
void STX_zp ()
void STX_zpy ()
void STY_abso ()
void STY_zp ()
void STY_zpx ()
void TAX_ ()
void TAY_ ()
void TSX_ ()
void TXA_ ()
void TXS_ ()
void TYA_ ()
void ILL_TILT ()
void ILL_1NOP ()
void ILL_2NOP ()
void ILL_3NOP ()
void ASLORA_m (uword addr)
void ASLORA_m_zp (uword addr)
void ASLORA_abso ()
void ASLORA_absx ()
void ASLORA_absy ()
void ASLORA_indx ()
void ASLORA_indy ()
void ASLORA_zp ()
void ASLORA_zpx ()
void ROLAND_m (uword addr)
void ROLAND_m_zp (uword addr)
void ROLAND_abso ()
void ROLAND_absx ()
void ROLAND_absy ()
void ROLAND_indx ()
void ROLAND_indy ()
void ROLAND_zp ()
void ROLAND_zpx ()
void LSREOR_m (uword addr)
void LSREOR_m_zp (uword addr)
void LSREOR_abso ()
void LSREOR_absx ()
void LSREOR_absy ()
void LSREOR_indx ()
void LSREOR_indy ()
void LSREOR_zp ()
void LSREOR_zpx ()
void RORADC_m (uword addr)
void RORADC_m_zp (uword addr)
void RORADC_abso ()
void RORADC_absx ()
void RORADC_absy ()
void RORADC_indx ()
void RORADC_indy ()
void RORADC_zp ()
void RORADC_zpx ()
void DECCMP_m (uword addr)
void DECCMP_m_zp (uword addr)
void DECCMP_abso ()
void DECCMP_absx ()
void DECCMP_absy ()
void DECCMP_indx ()
void DECCMP_indy ()
void DECCMP_zp ()
void DECCMP_zpx ()
void INCSBC_m (uword addr)
void INCSBC_m_zp (uword addr)
void INCSBC_abso ()
void INCSBC_absx ()
void INCSBC_absy ()
void INCSBC_indx ()
void INCSBC_indy ()
void INCSBC_zp ()
void INCSBC_zpx ()
void ILL_0B ()
void ILL_4B ()
void ILL_6B ()
void ILL_83 ()
void ILL_87 ()
void ILL_8B ()
void ILL_8F ()
void ILL_93 ()
void ILL_97 ()
void ILL_9B ()
void ILL_9C ()
void ILL_9E ()
void ILL_9F ()
void ILL_A3 ()
void ILL_A7 ()
void ILL_AF ()
void ILL_B3 ()
void ILL_B7 ()
void ILL_BB ()
void ILL_BF ()
void ILL_CB ()
void ILL_EB ()

Detailed Description

implements the main CPU in the C64, MOS6510

Definition at line 51 of file 6510_.h.


Member Typedef Documentation

typedef void(C6510::* C6510::C6510ptr2func)()
 

Definition at line 1671 of file 6510_.h.


Constructor & Destructor Documentation

C6510::C6510  ) 
 

C'tor.

Definition at line 57 of file 6510_.cpp.

References ADC_abso(), ADC_absx(), ADC_absy(), ADC_imm(), ADC_indx(), ADC_indy(), ADC_zp(), ADC_zpx(), AND_abso(), AND_absx(), AND_absy(), AND_imm(), AND_indx(), AND_indy(), AND_zp(), AND_zpx(), ASL_abso(), ASL_absx(), ASL_AC(), ASL_zp(), ASL_zpx(), ASLORA_abso(), ASLORA_absx(), ASLORA_absy(), ASLORA_indx(), ASLORA_indy(), ASLORA_zp(), ASLORA_zpx(), BCC_(), BCS_(), BEQ_(), BIT_abso(), BIT_zp(), BMI_(), BNE_(), BPL_(), BRK_(), BVC_(), BVS_(), CLC_(), CLD_(), CLI_(), CLV_(), CMP_abso(), CMP_absx(), CMP_absy(), CMP_imm(), CMP_indx(), CMP_indy(), CMP_zp(), CMP_zpx(), CPX_abso(), CPX_imm(), CPX_zp(), CPY_abso(), CPY_imm(), CPY_zp(), CTOR, DEC_abso(), DEC_absx(), DEC_zp(), DEC_zpx(), DECCMP_abso(), DECCMP_absx(), DECCMP_absy(), DECCMP_indx(), DECCMP_indy(), DECCMP_zp(), DECCMP_zpx(), DEX_(), DEY_(), EOR_abso(), EOR_absx(), EOR_absy(), EOR_imm(), EOR_indx(), EOR_indy(), EOR_zp(), EOR_zpx(), ILL_0B(), ILL_1NOP(), ILL_2NOP(), ILL_3NOP(), ILL_4B(), ILL_6B(), ILL_83(), ILL_87(), ILL_8B(), ILL_8F(), ILL_93(), ILL_97(), ILL_9B(), ILL_9C(), ILL_9E(), ILL_9F(), ILL_A3(), ILL_A7(), ILL_AF(), ILL_B3(), ILL_B7(), ILL_BB(), ILL_BF(), ILL_CB(), ILL_EB(), ILL_TILT(), INC_abso(), INC_absx(), INC_zp(), INC_zpx(), INCSBC_abso(), INCSBC_absx(), INCSBC_absy(), INCSBC_indx(), INCSBC_indy(), INCSBC_zp(), INCSBC_zpx(), instrList, INX_(), INY_(), JMP_(), JMP_vec(), JSR_(), LDA_abso(), LDA_absx(), LDA_absy(), LDA_imm(), LDA_indx(), LDA_indy(), LDA_zp(), LDA_zpx(), LDX_abso(), LDX_absy(), LDX_imm(), LDX_zp(), LDX_zpy(), LDY_abso(), LDY_absx(), LDY_imm(), LDY_zp(), LDY_zpx(), LSR_abso(), LSR_absx(), LSR_AC(), LSR_zp(), LSR_zpx(), LSREOR_abso(), LSREOR_absx(), LSREOR_absy(), LSREOR_indx(), LSREOR_indy(), LSREOR_zp(), LSREOR_zpx(), MPU_TRANSPARENT_ROM, NOP_(), ORA_abso(), ORA_absx(), ORA_absy(), ORA_imm(), ORA_indx(), ORA_indy(), ORA_zp(), ORA_zpx(), PHA_(), PHP_(), PLA_(), PLP_(), readData, readData_bs(), ROL_abso(), ROL_absx(), ROL_AC(), ROL_zp(), ROL_zpx(), ROLAND_abso(), ROLAND_absx(), ROLAND_absy(), ROLAND_indx(), ROLAND_indy(), ROLAND_zp(), ROLAND_zpx(), ROR_abso(), ROR_absx(), ROR_AC(), ROR_zp(), ROR_zpx(), RORADC_abso(), RORADC_absx(), RORADC_absy(), RORADC_indx(), RORADC_indy(), RORADC_zp(), RORADC_zpx(), RTI_(), RTS_(), SBC_abso(), SBC_absx(), SBC_absy(), SBC_imm(), SBC_indx(), SBC_indy(), SBC_zp(), SBC_zpx(), SEC_(), SED_(), SEI_(), STA_abso(), STA_absx(), STA_absy(), STA_indx(), STA_indy(), STA_zp(), STA_zpx(), STX_abso(), STX_zp(), STX_zpy(), STY_abso(), STY_zp(), STY_zpx(), TAX_(), TAY_(), TSX_(), TXA_(), TXS_(), TYA_(), writeData, and writeData_bs().

C6510::~C6510  ) 
 

D'tor.

Definition at line 356 of file 6510_.cpp.

References DTOR.


Member Function Documentation

uword C6510::abso  )  [inline]
 

Definition at line 143 of file 6510_.h.

References pPC, readLEword(), and uword.

Referenced by ASL_abso(), ASLORA_abso(), DEC_abso(), DECCMP_abso(), ILL_8F(), INC_abso(), INCSBC_abso(), JMP_(), JMP_plain(), JMP_transp(), JMP_vec(), JMP_vec_plain(), JMP_vec_transp(), JSR_main(), LSR_abso(), LSREOR_abso(), ROL_abso(), ROLAND_abso(), ROR_abso(), RORADC_abso(), SidPlayExceptionHandler(), STA_abso(), STX_abso(), and STY_abso().

uword C6510::absx  )  [inline, private]
 

Definition at line 149 of file 6510_.h.

References pPC, readLEword(), uword, and XR.

Referenced by ASL_absx(), ASLORA_absx(), DEC_absx(), DECCMP_absx(), ILL_9C(), INC_absx(), INCSBC_absx(), LSR_absx(), LSREOR_absx(), ROL_absx(), ROLAND_absx(), ROR_absx(), RORADC_absx(), and STA_absx().

uword C6510::absy  )  [inline, private]
 

Definition at line 154 of file 6510_.h.

References pPC, readLEword(), uword, and YR.

Referenced by ASLORA_absy(), DECCMP_absy(), ILL_9B(), ILL_9E(), ILL_9F(), ILL_BB(), INCSBC_absy(), LSREOR_absy(), ROLAND_absy(), RORADC_absy(), and STA_absy().

void C6510::ADC_abso  )  [inline, private]
 

Definition at line 593 of file 6510_.h.

References ADC_m(), pPC, and readData.

Referenced by C6510().

void C6510::ADC_absx  )  [inline, private]
 

Definition at line 594 of file 6510_.h.

References ADC_m(), pPC, and readData.

Referenced by C6510().

void C6510::ADC_absy  )  [inline, private]
 

Definition at line 595 of file 6510_.h.

References ADC_m(), pPC, and readData.

Referenced by C6510().

void C6510::ADC_imm  )  [inline, private]
 

Definition at line 592 of file 6510_.h.

References ADC_m(), imm(), and pPC.

Referenced by C6510().

void C6510::ADC_indx  )  [inline, private]
 

Definition at line 596 of file 6510_.h.

References ADC_m(), pPC, and readData.

Referenced by C6510().

void C6510::ADC_indy  )  [inline, private]
 

Definition at line 597 of file 6510_.h.

References ADC_m(), pPC, and readData.

Referenced by C6510().

void C6510::ADC_m ubyte  x  )  [inline, private]
 

Definition at line 565 of file 6510_.h.

References AC, affectNZ(), CF, DF, NF, ubyte, uword, VF, and ZF.

Referenced by ADC_abso(), ADC_absx(), ADC_absy(), ADC_imm(), ADC_indx(), ADC_indy(), ADC_zp(), ADC_zpx(), RORADC_m(), and RORADC_m_zp().

void C6510::ADC_zp  )  [inline, private]
 

Definition at line 598 of file 6510_.h.

References ADC_m(), pPC, readData_zp(), and zp().

Referenced by C6510().

void C6510::ADC_zpx  )  [inline, private]
 

Definition at line 599 of file 6510_.h.

References ADC_m(), pPC, readData_zp(), and zpx().

Referenced by C6510().

void C6510::affectNZ ubyte  reg  )  [inline, private]
 

Definition at line 76 of file 6510_.h.

References NF, and ZF.

Referenced by ADC_m(), AND_m(), ASL_m(), DEC_m(), DEC_m_zp(), DEX_(), DEY_(), EOR_m(), ILL_B7(), ILL_CB(), INC_m(), INC_m_zp(), INX_(), INY_(), LDA_abso(), LDA_absx(), LDA_absy(), LDA_imm(), LDA_indx(), LDA_indy(), LDA_zp(), LDA_zpx(), LDX_abso(), LDX_absy(), LDX_imm(), LDX_zp(), LDX_zpy(), LDY_abso(), LDY_absx(), LDY_imm(), LDY_zp(), LDY_zpx(), ORA_m(), PLA_(), ROL_m(), ROR_m(), SBC_m(), TAX_(), TAY_(), TSX_(), TXA_(), and TYA_().

void C6510::AND_abso  )  [inline, private]
 

Definition at line 607 of file 6510_.h.

References AND_m(), pPC, and readData.

Referenced by C6510().

void C6510::AND_absx  )  [inline, private]
 

Definition at line 608 of file 6510_.h.

References AND_m(), pPC, and readData.

Referenced by C6510().

void C6510::AND_absy  )  [inline, private]
 

Definition at line 609 of file 6510_.h.

References AND_m(), pPC, and readData.

Referenced by C6510().

void C6510::AND_imm  )  [inline, private]
 

Definition at line 606 of file 6510_.h.

References AND_m(), imm(), and pPC.

Referenced by C6510(), ILL_0B(), ILL_4B(), ILL_6B(), and ILL_8B().

void C6510::AND_indx  )  [inline, private]
 

Definition at line 610 of file 6510_.h.

References AND_m(), pPC, and readData.

Referenced by C6510().

void C6510::AND_indy  )  [inline, private]
 

Definition at line 611 of file 6510_.h.

References AND_m(), pPC, and readData.

Referenced by C6510().

void C6510::AND_m ubyte  x  )  [inline, private]
 

Definition at line 602 of file 6510_.h.

References AC, and affectNZ().

Referenced by AND_abso(), AND_absx(), AND_absy(), AND_imm(), AND_indx(), AND_indy(), AND_zp(), AND_zpx(), ROLAND_m(), and ROLAND_m_zp().

void C6510::AND_zp  )  [inline, private]
 

Definition at line 612 of file 6510_.h.

References AND_m(), pPC, readData_zp(), and zp().

Referenced by C6510().

void C6510::AND_zpx  )  [inline, private]
 

Definition at line 613 of file 6510_.h.

References AND_m(), pPC, readData_zp(), and zpx().

Referenced by C6510().

void C6510::ASL_abso  )  [inline, private]
 

Definition at line 626 of file 6510_.h.

References abso(), ASL_m(), pPC, readData, uword, and writeData.

Referenced by C6510().

void C6510::ASL_absx  )  [inline, private]
 

Definition at line 632 of file 6510_.h.

References absx(), ASL_m(), pPC, readData, uword, and writeData.

Referenced by C6510().

void C6510::ASL_AC  )  [inline, private]
 

Definition at line 622 of file 6510_.h.

References AC, and ASL_m().

Referenced by C6510().

ubyte C6510::ASL_m ubyte  x  )  [inline, private]
 

Definition at line 616 of file 6510_.h.

References affectNZ(), CF, and ubyte.

Referenced by ASL_abso(), ASL_absx(), ASL_AC(), ASL_zp(), ASL_zpx(), ASLORA_m(), and ASLORA_m_zp().

void C6510::ASL_zp  )  [inline, private]
 

Definition at line 638 of file 6510_.h.

References ASL_m(), pPC, readData_zp(), uword, writeData_zp(), and zp().

Referenced by C6510().

void C6510::ASL_zpx  )  [inline, private]
 

Definition at line 644 of file 6510_.h.

References ASL_m(), pPC, readData_zp(), uword, writeData_zp(), and zpx().

Referenced by C6510().

void C6510::ASLORA_abso  )  [inline, private]
 

Definition at line 1197 of file 6510_.h.

References abso(), ASLORA_m(), and pPC.

Referenced by C6510().

void C6510::ASLORA_absx  )  [inline, private]
 

Definition at line 1202 of file 6510_.h.

References absx(), ASLORA_m(), and pPC.

Referenced by C6510().

void C6510::ASLORA_absy  )  [inline, private]
 

Definition at line 1207 of file 6510_.h.

References absy(), ASLORA_m(), and pPC.

Referenced by C6510().

void C6510::ASLORA_indx  )  [inline, private]
 

Definition at line 1212 of file 6510_.h.

References ASLORA_m(), indx(), and pPC.

Referenced by C6510().

void C6510::ASLORA_indy  )  [inline, private]
 

Definition at line 1217 of file 6510_.h.

References ASLORA_m(), indy(), and pPC.

Referenced by C6510().

void C6510::ASLORA_m uword  addr  )  [inline, private]
 

Definition at line 1185 of file 6510_.h.

References ASL_m(), ORA_m(), readData, ubyte, and writeData.

Referenced by ASLORA_abso(), ASLORA_absx(), ASLORA_absy(), ASLORA_indx(), and ASLORA_indy().

void C6510::ASLORA_m_zp uword  addr  )  [inline, private]
 

Definition at line 1191 of file 6510_.h.

References ASL_m(), ORA_m(), readData_zp(), ubyte, and writeData_zp().

Referenced by ASLORA_zp(), and ASLORA_zpx().

void C6510::ASLORA_zp  )  [inline, private]
 

Definition at line 1222 of file 6510_.h.

References ASLORA_m_zp(), pPC, and zp().

Referenced by C6510().

void C6510::ASLORA_zpx  )  [inline, private]
 

Definition at line 1227 of file 6510_.h.

References ASLORA_m_zp(), pPC, and zpx().

Referenced by C6510().

void C6510::BCC_  )  [inline, private]
 

Definition at line 652 of file 6510_.h.

References branchIfClear(), and CF.

Referenced by C6510().

void C6510::BCS_  )  [inline, private]
 

Definition at line 654 of file 6510_.h.

References branchIfSet(), and CF.

Referenced by C6510().

void C6510::BEQ_  )  [inline, private]
 

Definition at line 656 of file 6510_.h.

References branchIfSet(), and ZF.

Referenced by C6510().

void C6510::BIT_abso  )  [inline, private]
 

Definition at line 665 of file 6510_.h.

References BIT_m(), pPC, and readData.

Referenced by C6510().

void C6510::BIT_m ubyte  x  )  [inline, private]
 

Definition at line 659 of file 6510_.h.

References AC, NF, VF, and ZF.

Referenced by BIT_abso(), and BIT_zp().

void C6510::BIT_zp  )  [inline, private]
 

Definition at line 666 of file 6510_.h.

References BIT_m(), pPC, readData_zp(), and zp().

Referenced by C6510().

void C6510::BMI_  )  [inline, private]
 

Definition at line 669 of file 6510_.h.

References branchIfSet(), and NF.

Referenced by C6510().

void C6510::BNE_  )  [inline, private]
 

Definition at line 671 of file 6510_.h.

References branchIfClear(), and ZF.

Referenced by C6510().

void C6510::BPL_  )  [inline, private]
 

Definition at line 673 of file 6510_.h.

References branchIfClear(), and NF.

Referenced by C6510().

void C6510::branchIfClear ubyte  flag  )  [inline, private]
 

Definition at line 116 of file 6510_.h.

References PC, pPC, pPCbase, sbyte, and uword.

Referenced by BCC_(), BNE_(), BPL_(), and BVC_().

void C6510::branchIfSet ubyte  flag  )  [inline, private]
 

Definition at line 127 of file 6510_.h.

References PC, pPC, pPCbase, sbyte, and uword.

Referenced by BCS_(), BEQ_(), BMI_(), and BVS_().

void C6510::BRK_  )  [inline, private]
 

Definition at line 676 of file 6510_.h.

References BF, IF, and RTS_().

Referenced by C6510().

void C6510::BVC_  )  [inline, private]
 

Definition at line 685 of file 6510_.h.

References branchIfClear(), and VF.

Referenced by C6510().

void C6510::BVS_  )  [inline, private]
 

Definition at line 687 of file 6510_.h.

References branchIfSet(), and VF.

Referenced by C6510().

bool C6510::c64memAlloc  ) 
 

Todo:
remove c64memAlloc func

Definition at line 367 of file 6510_.cpp.

References c64mem1, c64mem2, c64ramBuf, and c64romBuf.

Referenced by emuEngine::emuEngine().

void C6510::c64memClear  ) 
 

Definition at line 497 of file 6510_.cpp.

References c64mem1, c64mem2, memoryMode, MPU_PLAYSID_ENVIRONMENT, sidLastValue, and udword.

Referenced by emuEngine::MPUreset().

ubyte C6510::c64memRamRom uword  address  ) 
 

Definition at line 604 of file 6510_.cpp.

References memoryMode, MPU_PLAYSID_ENVIRONMENT, and ubyte.

Referenced by sidEmuInitializeSongOld().

void C6510::c64memReset int  clockSpeed,
ubyte  randomSeed
 

Definition at line 422 of file 6510_.cpp.

References c64mem1, c64mem2, evalBankSelect(), fakeReadTimer, iFakeRndSeed, memoryMode, MPU_PLAYSID_ENVIRONMENT, sidLastValue, and ubyte.

Referenced by emuEngine::MPUreset().

void C6510::checkSP  )  [inline, private]
 

Definition at line 558 of file 6510_.h.

References SP, and stackIsOkay.

Referenced by ILL_9B(), JSR_main(), RTI_(), RTS_(), and TXS_().

void C6510::CLC_  )  [inline, private]
 

Definition at line 690 of file 6510_.h.

References CF.

Referenced by C6510().

void C6510::CLD_  )  [inline, private]
 

Definition at line 692 of file 6510_.h.

References DF.

Referenced by C6510().

void C6510::clearSR  )  [inline, private]
 

Definition at line 82 of file 6510_.h.

References BF, CF, DF, IF, NF, NU, VF, and ZF.

Referenced by interpreter().

void C6510::CLI_  )  [inline, private]
 

Definition at line 694 of file 6510_.h.

References IF.

Referenced by C6510().

void C6510::CLV_  )  [inline, private]
 

Definition at line 696 of file 6510_.h.

References VF.

Referenced by C6510().

void C6510::CMP_abso  )  [inline, private]
 

Definition at line 705 of file 6510_.h.

References CMP_m(), pPC, and readData.

Referenced by C6510().

void C6510::CMP_absx  )  [inline, private]
 

Definition at line 706 of file 6510_.h.

References CMP_m(), pPC, and readData.

Referenced by C6510().

void C6510::CMP_absy  )  [inline, private]
 

Definition at line 707 of file 6510_.h.

References CMP_m(), pPC, and readData.

Referenced by C6510().

void C6510::CMP_imm  )  [inline, private]
 

Definition at line 708 of file 6510_.h.

References CMP_m(), imm(), and pPC.

Referenced by C6510().

void C6510::CMP_indx  )  [inline, private]
 

Definition at line 709 of file 6510_.h.

References CMP_m(), pPC, and readData.

Referenced by C6510().

void C6510::CMP_indy  )  [inline, private]
 

Definition at line 710 of file 6510_.h.

References CMP_m(), pPC, and readData.

Referenced by C6510().

void C6510::CMP_m ubyte  x  )  [inline, private]
 

Definition at line 699 of file 6510_.h.

References AC, CF, NF, sbyte, and ZF.

Referenced by CMP_abso(), CMP_absx(), CMP_absy(), CMP_imm(), CMP_indx(), CMP_indy(), CMP_zp(), CMP_zpx(), DECCMP_m(), and DECCMP_m_zp().

void C6510::CMP_zp  )  [inline, private]
 

Definition at line 711 of file 6510_.h.

References CMP_m(), pPC, readData_zp(), and zp().

Referenced by C6510().

void C6510::CMP_zpx  )  [inline, private]
 

Definition at line 712 of file 6510_.h.

References CMP_m(), pPC, readData_zp(), and zpx().

Referenced by C6510().

ubyte C6510::codeSR  )  [inline, private]
 

Definition at line 88 of file 6510_.h.

References BF, CF, DF, IF, NF, NU, ubyte, VF, and ZF.

Referenced by PHP_().

void C6510::CPX_abso  )  [inline, private]
 

Definition at line 721 of file 6510_.h.

References CPX_m(), pPC, and readData.

Referenced by C6510().

void C6510::CPX_imm  )  [inline, private]
 

Definition at line 722 of file 6510_.h.

References CPX_m(), imm(), and pPC.

Referenced by C6510().

void C6510::CPX_m ubyte  x  )  [inline, private]
 

Definition at line 715 of file 6510_.h.

References CF, NF, sbyte, XR, and ZF.

Referenced by CPX_abso(), CPX_imm(), and CPX_zp().

void C6510::CPX_zp  )  [inline, private]
 

Definition at line 723 of file 6510_.h.

References CPX_m(), pPC, readData_zp(), and zp().

Referenced by C6510().

void C6510::CPY_abso  )  [inline, private]
 

Definition at line 732 of file 6510_.h.

References CPY_m(), pPC, and readData.

Referenced by C6510().

void C6510::CPY_imm  )  [inline, private]
 

Definition at line 733 of file 6510_.h.

References CPY_m(), imm(), and pPC.

Referenced by C6510().

void C6510::CPY_m ubyte  x  )  [inline, private]
 

Definition at line 726 of file 6510_.h.

References CF, NF, sbyte, YR, and ZF.

Referenced by CPY_abso(), CPY_imm(), and CPY_zp().

void C6510::CPY_zp  )  [inline, private]
 

Definition at line 734 of file 6510_.h.

References CPY_m(), pPC, readData_zp(), and zp().

Referenced by C6510().

void C6510::DEC_abso  )  [inline, private]
 

Definition at line 749 of file 6510_.h.

References abso(), DEC_m(), and pPC.

Referenced by C6510().

void C6510::DEC_absx  )  [inline, private]
 

Definition at line 750 of file 6510_.h.

References absx(), DEC_m(), and pPC.

Referenced by C6510().

void C6510::DEC_m uword  addr  )  [inline, private]
 

Definition at line 737 of file 6510_.h.

References affectNZ(), readData, ubyte, and writeData.

Referenced by DEC_abso(), and DEC_absx().

void C6510::DEC_m_zp uword  addr  )  [inline, private]
 

Definition at line 743 of file 6510_.h.

References affectNZ(), readData_zp(), ubyte, and writeData_zp().

Referenced by DEC_zp(), and DEC_zpx().

void C6510::DEC_zp  )  [inline, private]
 

Definition at line 751 of file 6510_.h.

References DEC_m_zp(), pPC, and zp().

Referenced by C6510().

void C6510::DEC_zpx  )  [inline, private]
 

Definition at line 752 of file 6510_.h.

References DEC_m_zp(), pPC, and zpx().

Referenced by C6510().

void C6510::DECCMP_abso  )  [inline, private]
 

Definition at line 1393 of file 6510_.h.

References abso(), DECCMP_m(), and pPC.

Referenced by C6510().

void C6510::DECCMP_absx  )  [inline, private]
 

Definition at line 1398 of file 6510_.h.

References absx(), DECCMP_m(), and pPC.

Referenced by C6510().

void C6510::DECCMP_absy  )  [inline, private]
 

Definition at line 1403 of file 6510_.h.

References absy(), DECCMP_m(), and pPC.

Referenced by C6510().

void C6510::DECCMP_indx  )  [inline, private]
 

Definition at line 1408 of file 6510_.h.

References DECCMP_m(), indx(), and pPC.

Referenced by C6510().

void C6510::DECCMP_indy  )  [inline, private]
 

Definition at line 1413 of file 6510_.h.

References DECCMP_m(), indy(), and pPC.

Referenced by C6510().

void C6510::DECCMP_m uword  addr  )  [inline, private]
 

Definition at line 1381 of file 6510_.h.

References CMP_m(), readData, ubyte, and writeData.

Referenced by DECCMP_abso(), DECCMP_absx(), DECCMP_absy(), DECCMP_indx(), and DECCMP_indy().

void C6510::DECCMP_m_zp uword  addr  )  [inline, private]
 

Definition at line 1387 of file 6510_.h.

References CMP_m(), readData_zp(), ubyte, and writeData_zp().

Referenced by DECCMP_zp(), and DECCMP_zpx().

void C6510::DECCMP_zp  )  [inline, private]
 

Definition at line 1418 of file 6510_.h.

References DECCMP_m_zp(), pPC, and zp().

Referenced by C6510().

void C6510::DECCMP_zpx  )  [inline, private]
 

Definition at line 1423 of file 6510_.h.

References DECCMP_m_zp(), pPC, and zpx().

Referenced by C6510().

void C6510::decodeSR ubyte  stackByte  )  [inline, private]
 

Definition at line 101 of file 6510_.h.

References BF, CF, DF, IF, NF, NU, VF, and ZF.

Referenced by PLP_().

void C6510::DEX_  )  [inline, private]
 

Definition at line 755 of file 6510_.h.

References affectNZ(), and XR.

Referenced by C6510().

void C6510::DEY_  )  [inline, private]
 

Definition at line 757 of file 6510_.h.

References affectNZ(), and YR.

Referenced by C6510().

void C6510::EOR_abso  )  [inline, private]
 

Definition at line 765 of file 6510_.h.

References EOR_m(), pPC, and readData.

Referenced by C6510().

void C6510::EOR_absx  )  [inline, private]
 

Definition at line 766 of file 6510_.h.

References EOR_m(), pPC, and readData.

Referenced by C6510().

void C6510::EOR_absy  )  [inline, private]
 

Definition at line 767 of file 6510_.h.

References EOR_m(), pPC, and readData.

Referenced by C6510().

void C6510::EOR_imm  )  [inline, private]
 

Definition at line 768 of file 6510_.h.

References EOR_m(), imm(), and pPC.

Referenced by C6510().

void C6510::EOR_indx  )  [inline, private]
 

Definition at line 769 of file 6510_.h.

References EOR_m(), pPC, and readData.

Referenced by C6510().

void C6510::EOR_indy  )  [inline, private]
 

Definition at line 770 of file 6510_.h.

References EOR_m(), pPC, and readData.

Referenced by C6510().

void C6510::EOR_m ubyte  x  )  [inline, private]
 

Definition at line 760 of file 6510_.h.

References AC, and affectNZ().

Referenced by EOR_abso(), EOR_absx(), EOR_absy(), EOR_imm(), EOR_indx(), EOR_indy(), EOR_zp(), EOR_zpx(), LSREOR_m(), and LSREOR_m_zp().

void C6510::EOR_zp  )  [inline, private]
 

Definition at line 771 of file 6510_.h.

References EOR_m(), pPC, readData_zp(), and zp().

Referenced by C6510().

void C6510::EOR_zpx  )  [inline, private]
 

Definition at line 772 of file 6510_.h.

References EOR_m(), pPC, readData_zp(), and zpx().

Referenced by C6510().

void C6510::evalBankJump  )  [inline, private]
 

Definition at line 231 of file 6510_.h.

References isBasic, isIO, isKernal, PC, and RTS_().

Referenced by JMP_(), JMP_vec(), and JSR_().

void C6510::evalBankSelect  )  [inline, private]
 

Definition at line 221 of file 6510_.h.

References bankSelReg, isBasic, isIO, and isKernal.

Referenced by c64memReset(), interpreter(), writeData_bs(), and writeData_zp().

void C6510::ILL_0B  )  [inline, private]
 

Definition at line 1487 of file 6510_.h.

References AND_imm(), CF, and NF.

Referenced by C6510().

void C6510::ILL_1NOP  )  [inline, private]
 

Definition at line 1175 of file 6510_.h.

Referenced by C6510().

void C6510::ILL_2NOP  )  [inline, private]
 

Definition at line 1177 of file 6510_.h.

References pPC.

Referenced by C6510().

void C6510::ILL_3NOP  )  [inline, private]
 

Definition at line 1179 of file 6510_.h.

References pPC.

Referenced by C6510().

void C6510::ILL_4B  )  [inline, private]
 

Definition at line 1493 of file 6510_.h.

References AND_imm(), and LSR_AC().

Referenced by C6510().

void C6510::ILL_6B  )  [inline, private]
 

Definition at line 1499 of file 6510_.h.

References AC, AND_imm(), CF, DF, ROR_AC(), and VF.

Referenced by C6510().

void C6510::ILL_83  )  [inline, private]
 

Definition at line 1510 of file 6510_.h.

References AC, indx(), pPC, writeData, and XR.

Referenced by C6510().

void C6510::ILL_87  )  [inline, private]
 

Definition at line 1516 of file 6510_.h.

References AC, pPC, writeData_zp(), XR, and zp().

Referenced by C6510().

void C6510::ILL_8B  )  [inline, private]
 

Definition at line 1522 of file 6510_.h.

References AND_imm(), and TXA_().

Referenced by C6510().

void C6510::ILL_8F  )  [inline, private]
 

Definition at line 1528 of file 6510_.h.

References abso(), AC, pPC, writeData, and XR.

Referenced by C6510().

void C6510::ILL_93  )  [inline, private]
 

Definition at line 1534 of file 6510_.h.

References AC, indy(), pPC, readData, writeData, and XR.

Referenced by C6510().

void C6510::ILL_97  )  [inline, private]
 

Definition at line 1540 of file 6510_.h.

References AC, pPC, writeData_zp(), XR, and zpx().

Referenced by C6510().

void C6510::ILL_9B  )  [inline, private]
 

Definition at line 1546 of file 6510_.h.

References absy(), AC, checkSP(), pPC, SP, uword, writeData, and XR.

Referenced by C6510().

void C6510::ILL_9C  )  [inline, private]
 

Definition at line 1554 of file 6510_.h.

References absx(), pPC, writeData, and YR.

Referenced by C6510().

void C6510::ILL_9E  )  [inline, private]
 

Definition at line 1560 of file 6510_.h.

References absy(), pPC, writeData, and XR.

Referenced by C6510().

void C6510::ILL_9F  )  [inline, private]
 

Definition at line 1566 of file 6510_.h.

References absy(), AC, pPC, writeData, and XR.

Referenced by C6510().

void C6510::ILL_A3  )  [inline, private]
 

Definition at line 1572 of file 6510_.h.

References LDA_indx(), and TAX_().

Referenced by C6510().

void C6510::ILL_A7  )  [inline, private]
 

Definition at line 1578 of file 6510_.h.

References LDA_zp(), and TAX_().

Referenced by C6510().

void C6510::ILL_AF  )  [inline, private]
 

Definition at line 1584 of file 6510_.h.

References LDA_abso(), and TAX_().

Referenced by C6510().

void C6510::ILL_B3  )  [inline, private]
 

Definition at line 1590 of file 6510_.h.

References LDA_indy(), and TAX_().

Referenced by C6510().

void C6510::ILL_B7  )  [inline, private]
 

Definition at line 1596 of file 6510_.h.

References AC, affectNZ(), pPC, readData_zp(), TAX_(), and zpy().

Referenced by C6510().

void C6510::ILL_BB  )  [inline, private]
 

Definition at line 1603 of file 6510_.h.

References absy(), pPC, SP, TXA_(), TXS_(), ubyte, and XR.

Referenced by C6510().

void C6510::ILL_BF  )  [inline, private]
 

Definition at line 1611 of file 6510_.h.

References LDA_absy(), and TAX_().

Referenced by C6510().

void C6510::ILL_CB  )  [inline, private]
 

Definition at line 1617 of file 6510_.h.

References AC, affectNZ(), CF, imm(), uword, and XR.

Referenced by C6510().

void C6510::ILL_EB  )  [inline, private]
 

Definition at line 1625 of file 6510_.h.

References SBC_imm().

Referenced by C6510().

void C6510::ILL_TILT  )  [inline, private]
 

Definition at line 1173 of file 6510_.h.

Referenced by C6510().

ubyte C6510::imm  )  [inline, private]
 

Definition at line 159 of file 6510_.h.

References pPC, and ubyte.

Referenced by ADC_imm(), AND_imm(), CMP_imm(), CPX_imm(), CPY_imm(), EOR_imm(), ILL_CB(), LDA_imm(), LDX_imm(), LDY_imm(), ORA_imm(), and SBC_imm().

void C6510::INC_abso  )  [inline, private]
 

Definition at line 787 of file 6510_.h.

References abso(), INC_m(), and pPC.

Referenced by C6510().

void C6510::INC_absx  )  [inline, private]
 

Definition at line 788 of file 6510_.h.

References absx(), INC_m(), and pPC.

Referenced by C6510().

void C6510::INC_m uword  addr  )  [inline, private]
 

Definition at line 775 of file 6510_.h.

References affectNZ(), readData, ubyte, and writeData.

Referenced by INC_abso(), and INC_absx().

void C6510::INC_m_zp uword  addr  )  [inline, private]
 

Definition at line 781 of file 6510_.h.

References affectNZ(), readData_zp(), ubyte, and writeData_zp().

Referenced by INC_zp(), and INC_zpx().

void C6510::INC_zp  )  [inline, private]
 

Definition at line 789 of file 6510_.h.

References INC_m_zp(), pPC, and zp().

Referenced by C6510().

void C6510::INC_zpx  )  [inline, private]
 

Definition at line 790 of file 6510_.h.

References INC_m_zp(), pPC, and zpx().

Referenced by C6510().

void C6510::INCSBC_abso  )  [inline, private]
 

Definition at line 1442 of file 6510_.h.

References abso(), INCSBC_m(), and pPC.

Referenced by C6510().

void C6510::INCSBC_absx  )  [inline, private]
 

Definition at line 1447 of file 6510_.h.

References absx(), INCSBC_m(), and pPC.

Referenced by C6510().

void C6510::INCSBC_absy  )  [inline, private]
 

Definition at line 1452 of file 6510_.h.

References absy(), INCSBC_m(), and pPC.

Referenced by C6510().

void C6510::INCSBC_indx  )  [inline, private]
 

Definition at line 1457 of file 6510_.h.

References INCSBC_m(), indx(), and pPC.

Referenced by C6510().

void C6510::INCSBC_indy  )  [inline, private]
 

Definition at line 1462 of file 6510_.h.

References INCSBC_m(), indy(), and pPC.

Referenced by C6510().

void C6510::INCSBC_m uword  addr  )  [inline, private]
 

Definition at line 1430 of file 6510_.h.

References readData, SBC_m(), ubyte, and writeData.

Referenced by INCSBC_abso(), INCSBC_absx(), INCSBC_absy(), INCSBC_indx(), and INCSBC_indy().

void C6510::INCSBC_m_zp uword  addr  )  [inline, private]
 

Definition at line 1436 of file 6510_.h.

References readData_zp(), SBC_m(), ubyte, and writeData_zp().

Referenced by INCSBC_zp(), and INCSBC_zpx().

void C6510::INCSBC_zp  )  [inline, private]
 

Definition at line 1467 of file 6510_.h.

References INCSBC_m_zp(), pPC, and zp().

Referenced by C6510().

void C6510::INCSBC_zpx  )  [inline, private]
 

Definition at line 1472 of file 6510_.h.

References INCSBC_m_zp(), pPC, and zpx().

Referenced by C6510().

uword C6510::indx  )  [inline, private]
 

Definition at line 164 of file 6510_.h.

References c64mem1, pPC, readEndian(), uword, and XR.

Referenced by ASLORA_indx(), DECCMP_indx(), ILL_83(), INCSBC_indx(), LSREOR_indx(), ROLAND_indx(), RORADC_indx(), and STA_indx().

uword C6510::indy  )  [inline, private]
 

Definition at line 169 of file 6510_.h.

References c64mem1, pPC, readEndian(), uword, and YR.

Referenced by ASLORA_indy(), DECCMP_indy(), ILL_93(), INCSBC_indy(), LSREOR_indy(), ROLAND_indy(), RORADC_indy(), and STA_indy().

void C6510::initInterpreter int  inMemoryMode  ) 
 

Definition at line 377 of file 6510_.cpp.

References bankSelReg, c64mem1, c64mem2, c64ramBuf, c64romBuf, instrList, JMP_(), JMP_plain(), JMP_transp(), JMP_vec(), JMP_vec_plain(), JMP_vec_transp(), JSR_(), JSR_plain(), JSR_transp(), memoryMode, MPU_PLAYSID_ENVIRONMENT, MPU_TRANSPARENT_ROM, pPCbase, pPCend, readData, readData_bs(), readData_plain(), readData_transp(), writeData, writeData_bs(), and writeData_plain().

Referenced by emuEngine::MPUreset().

bool C6510::interpreter uword  p,
ubyte  ramrom,
ubyte  a,
ubyte  x,
ubyte  y
 

Definition at line 561 of file 6510_.cpp.

References AC, bankSelReg, clearSR(), evalBankSelect(), instrList, memoryMode, MPU_PLAYSID_ENVIRONMENT, pPC, pPCbase, pPCend, resetSP(), sidKeysOff, sidKeysOn, stackIsOkay, ubyte, XR, and YR.

Referenced by sidEmu::sidEmuFillBuffer(), sidEmuInitializeSong(), and sidEmuInitializeSongOld().

void C6510::INX_  )  [inline, private]
 

Definition at line 793 of file 6510_.h.

References affectNZ(), and XR.

Referenced by C6510().

void C6510::INY_  )  [inline, private]
 

Definition at line 795 of file 6510_.h.

References affectNZ(), and YR.

Referenced by C6510().

void C6510::JMP_  )  [inline, private]
 

Definition at line 799 of file 6510_.h.

References abso(), evalBankJump(), PC, pPC, and pPCbase.

Referenced by C6510(), and initInterpreter().

void C6510::JMP_plain  )  [inline, private]
 

Definition at line 819 of file 6510_.h.

References abso(), PC, pPC, and pPCbase.

Referenced by initInterpreter().

void C6510::JMP_transp  )  [inline, private]
 

Definition at line 806 of file 6510_.h.

References abso(), isKernal, PC, pPC, pPCbase, and RTS_().

Referenced by initInterpreter().

void C6510::JMP_vec  )  [inline, private]
 

Definition at line 826 of file 6510_.h.

References abso(), evalBankJump(), PC, pPC, pPCbase, readData, readEndian(), and uword.

Referenced by C6510(), and initInterpreter().

void C6510::JMP_vec_plain  )  [inline, private]
 

Definition at line 850 of file 6510_.h.

References abso(), PC, pPC, pPCbase, readData, readEndian(), and uword.

Referenced by initInterpreter().

void C6510::JMP_vec_transp  )  [inline, private]
 

Definition at line 835 of file 6510_.h.

References abso(), isKernal, PC, pPC, pPCbase, readData, readEndian(), RTS_(), and uword.

Referenced by initInterpreter().

void C6510::JSR_  )  [inline, private]
 

Definition at line 872 of file 6510_.h.

References evalBankJump(), JSR_main(), PC, pPC, and pPCbase.

Referenced by C6510(), and initInterpreter().

void C6510::JSR_main  )  [inline, private]
 

Definition at line 859 of file 6510_.h.

References abso(), c64mem1, checkSP(), PC, pPC, pPCbase, SP, uword, and writeLEword().

Referenced by JSR_(), JSR_plain(), and JSR_transp().

void C6510::JSR_plain  )  [inline, private]
 

Definition at line 892 of file 6510_.h.

References JSR_main(), PC, pPC, and pPCbase.

Referenced by initInterpreter().

void C6510::JSR_transp  )  [inline, private]
 

Definition at line 879 of file 6510_.h.

References isKernal, JSR_main(), PC, pPC, pPCbase, and RTS_().

Referenced by initInterpreter().

void C6510::LDA_abso  )  [inline, private]
 

Definition at line 899 of file 6510_.h.

References AC, affectNZ(), pPC, and readData.

Referenced by C6510(), and ILL_AF().

void C6510::LDA_absx  )  [inline, private]
 

Definition at line 900 of file 6510_.h.

References AC, affectNZ(), pPC, and readData.

Referenced by C6510().

void C6510::LDA_absy  )  [inline, private]
 

Definition at line 901 of file 6510_.h.

References AC, affectNZ(), pPC, and readData.

Referenced by C6510(), and ILL_BF().

void C6510::LDA_imm  )  [inline, private]
 

Definition at line 902 of file 6510_.h.

References AC, affectNZ(), imm(), and pPC.

Referenced by C6510().

void C6510::LDA_indx  )  [inline, private]
 

Definition at line 903 of file 6510_.h.

References AC, affectNZ(), pPC, and readData.

Referenced by C6510(), and ILL_A3().

void C6510::LDA_indy  )  [inline, private]
 

Definition at line 904 of file 6510_.h.

References AC, affectNZ(), pPC, and readData.

Referenced by C6510(), and ILL_B3().

void C6510::LDA_zp  )  [inline, private]
 

Definition at line 905 of file 6510_.h.

References AC, affectNZ(), pPC, readData_zp(), and zp().

Referenced by C6510(), and ILL_A7().

void C6510::LDA_zpx  )  [inline, private]
 

Definition at line 906 of file 6510_.h.

References AC, affectNZ(), pPC, readData_zp(), and zpx().

Referenced by C6510().

void C6510::LDX_abso  )  [inline, private]
 

Definition at line 909 of file 6510_.h.

References affectNZ(), pPC, readData, and XR.

Referenced by C6510().

void C6510::LDX_absy  )  [inline, private]
 

Definition at line 910 of file 6510_.h.

References affectNZ(), pPC, readData, and XR.

Referenced by C6510().

void C6510::LDX_imm  )  [inline, private]
 

Definition at line 911 of file 6510_.h.

References affectNZ(), imm(), pPC, and XR.

Referenced by C6510().

void C6510::LDX_zp  )  [inline, private]
 

Definition at line 912 of file 6510_.h.

References affectNZ(), pPC, readData_zp(), XR, and zp().

Referenced by C6510().

void C6510::LDX_zpy  )  [inline, private]
 

Definition at line 913 of file 6510_.h.

References affectNZ(), pPC, readData_zp(), XR, and zpy().

Referenced by C6510().

void C6510::LDY_abso  )  [inline, private]
 

Definition at line 916 of file 6510_.h.

References affectNZ(), pPC, readData, and YR.

Referenced by C6510().

void C6510::LDY_absx  )  [inline, private]
 

Definition at line 917 of file 6510_.h.

References affectNZ(), pPC, readData, and YR.

Referenced by C6510().

void C6510::LDY_imm  )  [inline, private]
 

Definition at line 918 of file 6510_.h.

References affectNZ(), imm(), pPC, and YR.

Referenced by C6510().

void C6510::LDY_zp  )  [inline, private]
 

Definition at line 919 of file 6510_.h.

References affectNZ(), pPC, readData_zp(), YR, and zp().

Referenced by C6510().

void C6510::LDY_zpx  )  [inline, private]
 

Definition at line 920 of file 6510_.h.

References affectNZ(), pPC, readData_zp(), YR, and zpx().

Referenced by C6510().

void C6510::LSR_abso  )  [inline, private]
 

Definition at line 935 of file 6510_.h.

References abso(), LSR_m(), pPC, readData, uword, and writeData.

Referenced by C6510().

void C6510::LSR_absx  )  [inline, private]
 

Definition at line 941 of file 6510_.h.

References absx(), LSR_m(), pPC, readData, uword, and writeData.

Referenced by C6510().

void C6510::LSR_AC  )  [inline, private]
 

Definition at line 931 of file 6510_.h.

References AC, and LSR_m().

Referenced by C6510(), and ILL_4B().

ubyte C6510::LSR_m ubyte  x  )  [inline, private]
 

Definition at line 923 of file 6510_.h.

References CF, NF, ubyte, and ZF.

Referenced by LSR_abso(), LSR_absx(), LSR_AC(), LSR_zp(), LSR_zpx(), LSREOR_m(), and LSREOR_m_zp().

void C6510::LSR_zp  )  [inline, private]
 

Definition at line 947 of file 6510_.h.

References LSR_m(), pPC, readData_zp(), uword, writeData_zp(), and zp().

Referenced by C6510().

void C6510::LSR_zpx  )  [inline, private]
 

Definition at line 953 of file 6510_.h.

References LSR_m(), pPC, readData_zp(), uword, writeData_zp(), and zpx().

Referenced by C6510().

void C6510::LSREOR_abso  )  [inline, private]
 

Definition at line 1295 of file 6510_.h.

References abso(), LSREOR_m(), and pPC.

Referenced by C6510().

void C6510::LSREOR_absx  )  [inline, private]
 

Definition at line 1300 of file 6510_.h.

References absx(), LSREOR_m(), and pPC.

Referenced by C6510().

void C6510::LSREOR_absy  )  [inline, private]
 

Definition at line 1305 of file 6510_.h.

References absy(), LSREOR_m(), and pPC.

Referenced by C6510().

void C6510::LSREOR_indx  )  [inline, private]
 

Definition at line 1310 of file 6510_.h.

References indx(), LSREOR_m(), and pPC.

Referenced by C6510().

void C6510::LSREOR_indy  )  [inline, private]
 

Definition at line 1315 of file 6510_.h.

References indy(), LSREOR_m(), and pPC.

Referenced by C6510().

void C6510::LSREOR_m uword  addr  )  [inline, private]
 

Definition at line 1283 of file 6510_.h.

References EOR_m(), LSR_m(), readData, ubyte, and writeData.

Referenced by LSREOR_abso(), LSREOR_absx(), LSREOR_absy(), LSREOR_indx(), and LSREOR_indy().

void C6510::LSREOR_m_zp uword  addr  )  [inline, private]
 

Definition at line 1289 of file 6510_.h.

References EOR_m(), LSR_m(), readData_zp(), ubyte, and writeData_zp().

Referenced by LSREOR_zp(), and LSREOR_zpx().

void C6510::LSREOR_zp  )  [inline, private]
 

Definition at line 1320 of file 6510_.h.

References LSREOR_m_zp(), pPC, and zp().

Referenced by C6510().

void C6510::LSREOR_zpx  )  [inline, private]
 

Definition at line 1325 of file 6510_.h.

References LSREOR_m_zp(), pPC, and zpx().

Referenced by C6510().

ubyte C6510::my_read_data uword  w  )  [inline]
 

Definition at line 1677 of file 6510_.h.

References readData, and ubyte.

Referenced by SidPlayExceptionHandler().

void C6510::NOP_  )  [inline, private]
 

Definition at line 975 of file 6510_.h.

Referenced by C6510().

void C6510::ORA_abso  )  [inline, private]
 

Definition at line 965 of file 6510_.h.

References ORA_m(), pPC, and readData.

Referenced by C6510().

void C6510::ORA_absx  )  [inline, private]
 

Definition at line 966 of file 6510_.h.

References ORA_m(), pPC, and readData.

Referenced by C6510().

void C6510::ORA_absy  )  [inline, private]
 

Definition at line 967 of file 6510_.h.

References ORA_m(), pPC, and readData.

Referenced by C6510().

void C6510::ORA_imm  )  [inline, private]
 

Definition at line 968 of file 6510_.h.

References imm(), ORA_m(), and pPC.

Referenced by C6510().

void C6510::ORA_indx  )  [inline, private]
 

Definition at line 969 of file 6510_.h.

References ORA_m(), pPC, and readData.

Referenced by C6510().

void C6510::ORA_indy  )  [inline, private]
 

Definition at line 970 of file 6510_.h.

References ORA_m(), pPC, and readData.

Referenced by C6510().

void C6510::ORA_m ubyte  x  )  [inline, private]
 

Definition at line 961 of file 6510_.h.

References AC, and affectNZ().

Referenced by ASLORA_m(), ASLORA_m_zp(), ORA_abso(), ORA_absx(), ORA_absy(), ORA_imm(), ORA_indx(), ORA_indy(), ORA_zp(), and ORA_zpx().

void C6510::ORA_zp  )  [inline, private]
 

Definition at line 971 of file 6510_.h.

References ORA_m(), pPC, readData_zp(), and zp().

Referenced by C6510().

void C6510::ORA_zpx  )  [inline, private]
 

Definition at line 972 of file 6510_.h.

References ORA_m(), pPC, readData_zp(), and zpx().

Referenced by C6510().

void C6510::PHA_  )  [inline, private]
 

Definition at line 977 of file 6510_.h.

References AC, c64mem1, and SP.

Referenced by C6510().

void C6510::PHP_  )  [inline, private]
 

Definition at line 980 of file 6510_.h.

References c64mem1, codeSR(), and SP.

Referenced by C6510().

void C6510::PLA_  )  [inline, private]
 

Definition at line 986 of file 6510_.h.

References AC, affectNZ(), c64mem1, and SP.

Referenced by C6510().

void C6510::PLP_  )  [inline, private]
 

Definition at line 992 of file 6510_.h.

References c64mem1, decodeSR(), and SP.

Referenced by C6510().

ubyte C6510::readData_bs uword  addr  )  [inline, private]
 

Definition at line 281 of file 6510_.h.

References c64mem1, c64mem2, fakeReadTimer, isBasic, isIO, isKernal, optr3readEnve, optr3readWave, sidLastValue, ubyte, and uword.

Referenced by C6510(), and initInterpreter().

ubyte C6510::readData_plain uword  addr  )  [inline, private]
 

Definition at line 442 of file 6510_.h.

References c64mem1, and ubyte.

Referenced by initInterpreter().

ubyte C6510::readData_transp uword  addr  )  [inline, private]
 

Definition at line 369 of file 6510_.h.

References c64mem1, c64mem2, fakeReadTimer, isIO, optr3readEnve, optr3readWave, sidLastValue, ubyte, and uword.

Referenced by initInterpreter().

ubyte C6510::readData_zp uword  addr  )  [inline, private]
 

Definition at line 447 of file 6510_.h.

References c64mem1, and ubyte.

Referenced by ADC_zp(), ADC_zpx(), AND_zp(), AND_zpx(), ASL_zp(), ASL_zpx(), ASLORA_m_zp(), BIT_zp(), CMP_zp(), CMP_zpx(), CPX_zp(), CPY_zp(), DEC_m_zp(), DECCMP_m_zp(), EOR_zp(), EOR_zpx(), ILL_B7(), INC_m_zp(), INCSBC_m_zp(), LDA_zp(), LDA_zpx(), LDX_zp(), LDX_zpy(), LDY_zp(), LDY_zpx(), LSR_zp(), LSR_zpx(), LSREOR_m_zp(), ORA_zp(), ORA_zpx(), ROL_zp(), ROL_zpx(), ROLAND_m_zp(), ROR_zp(), ROR_zpx(), RORADC_m_zp(), SBC_zp(), and SBC_zpx().

void C6510::resetSP  )  [inline, private]
 

Definition at line 552 of file 6510_.h.

References SP, and stackIsOkay.

Referenced by interpreter().

void C6510::ROL_abso  )  [inline, private]
 

Definition at line 1005 of file 6510_.h.

References abso(), pPC, readData, ROL_m(), uword, and writeData.

Referenced by C6510().

void C6510::ROL_absx  )  [inline, private]
 

Definition at line 1011 of file 6510_.h.

References absx(), pPC, readData, ROL_m(), uword, and writeData.

Referenced by C6510().

void C6510::ROL_AC  )  [inline, private]
 

Definition at line 1004 of file 6510_.h.

References AC, and ROL_m().

Referenced by C6510().

ubyte C6510::ROL_m ubyte  x  )  [inline, private]
 

Definition at line 997 of file 6510_.h.

References affectNZ(), CF, and ubyte.

Referenced by ROL_abso(), ROL_absx(), ROL_AC(), ROL_zp(), ROL_zpx(), ROLAND_m(), and ROLAND_m_zp().

void C6510::ROL_zp  )  [inline, private]
 

Definition at line 1017 of file 6510_.h.

References pPC, readData_zp(), ROL_m(), uword, writeData_zp(), and zp().

Referenced by C6510().

void C6510::ROL_zpx  )  [inline, private]
 

Definition at line 1023 of file 6510_.h.

References pPC, readData_zp(), ROL_m(), uword, writeData_zp(), and zpx().

Referenced by C6510().

void C6510::ROLAND_abso  )  [inline, private]
 

Definition at line 1246 of file 6510_.h.

References abso(), pPC, and ROLAND_m().

Referenced by C6510().

void C6510::ROLAND_absx  )  [inline, private]
 

Definition at line 1251 of file 6510_.h.

References absx(), pPC, and ROLAND_m().

Referenced by C6510().

void C6510::ROLAND_absy  )  [inline, private]
 

Definition at line 1256 of file 6510_.h.

References absy(), pPC, and ROLAND_m().

Referenced by C6510().

void C6510::ROLAND_indx  )  [inline, private]
 

Definition at line 1261 of file 6510_.h.

References indx(), pPC, and ROLAND_m().

Referenced by C6510().

void C6510::ROLAND_indy  )  [inline, private]
 

Definition at line 1266 of file 6510_.h.

References indy(), pPC, and ROLAND_m().

Referenced by C6510().

void C6510::ROLAND_m uword  addr  )  [inline, private]
 

Definition at line 1234 of file 6510_.h.

References AND_m(), readData, ROL_m(), ubyte, and writeData.

Referenced by ROLAND_abso(), ROLAND_absx(), ROLAND_absy(), ROLAND_indx(), and ROLAND_indy().

void C6510::ROLAND_m_zp uword  addr  )  [inline, private]
 

Definition at line 1240 of file 6510_.h.

References AND_m(), readData_zp(), ROL_m(), ubyte, and writeData_zp().

Referenced by ROLAND_zp(), and ROLAND_zpx().

void C6510::ROLAND_zp  )  [inline, private]
 

Definition at line 1271 of file 6510_.h.

References pPC, ROLAND_m_zp(), and zp().

Referenced by C6510().

void C6510::ROLAND_zpx  )  [inline, private]
 

Definition at line 1276 of file 6510_.h.

References pPC, ROLAND_m_zp(), and zpx().

Referenced by C6510().

void C6510::ROR_abso  )  [inline, private]
 

Definition at line 1041 of file 6510_.h.

References abso(), pPC, readData, ROR_m(), uword, and writeData.

Referenced by C6510().

void C6510::ROR_absx  )  [inline, private]
 

Definition at line 1047 of file 6510_.h.

References absx(), pPC, readData, ROR_m(), uword, and writeData.

Referenced by C6510().

void C6510::ROR_AC  )  [inline, private]
 

Definition at line 1037 of file 6510_.h.

References AC, and ROR_m().

Referenced by C6510(), and ILL_6B().

ubyte C6510::ROR_m ubyte  x  )  [inline, private]
 

Definition at line 1030 of file 6510_.h.

References affectNZ(), CF, and ubyte.

Referenced by ROR_abso(), ROR_absx(), ROR_AC(), ROR_zp(), ROR_zpx(), RORADC_m(), and RORADC_m_zp().

void C6510::ROR_zp  )  [inline, private]
 

Definition at line 1053 of file 6510_.h.

References pPC, readData_zp(), ROR_m(), uword, writeData_zp(), and zp().

Referenced by C6510().

void C6510::ROR_zpx  )  [inline, private]
 

Definition at line 1059 of file 6510_.h.

References pPC, readData_zp(), ROR_m(), uword, writeData_zp(), and zpx().

Referenced by C6510().

void C6510::RORADC_abso  )  [inline, private]
 

Definition at line 1344 of file 6510_.h.

References abso(), pPC, and RORADC_m().

Referenced by C6510().

void C6510::RORADC_absx  )  [inline, private]
 

Definition at line 1349 of file 6510_.h.

References absx(), pPC, and RORADC_m().

Referenced by C6510().

void C6510::RORADC_absy  )  [inline, private]
 

Definition at line 1354 of file 6510_.h.

References absy(), pPC, and RORADC_m().

Referenced by C6510().

void C6510::RORADC_indx  )  [inline, private]
 

Definition at line 1359 of file 6510_.h.

References indx(), pPC, and RORADC_m().

Referenced by C6510().

void C6510::RORADC_indy  )  [inline, private]
 

Definition at line 1364 of file 6510_.h.

References indy(), pPC, and RORADC_m().

Referenced by C6510().

void C6510::RORADC_m uword  addr  )  [inline, private]
 

Definition at line 1332 of file 6510_.h.

References ADC_m(), readData, ROR_m(), ubyte, and writeData.

Referenced by RORADC_abso(), RORADC_absx(), RORADC_absy(), RORADC_indx(), and RORADC_indy().

void C6510::RORADC_m_zp uword  addr  )  [inline, private]
 

Definition at line 1338 of file 6510_.h.

References ADC_m(), readData_zp(), ROR_m(), ubyte, and writeData_zp().

Referenced by RORADC_zp(), and RORADC_zpx().

void C6510::RORADC_zp  )  [inline, private]
 

Definition at line 1369 of file 6510_.h.

References pPC, RORADC_m_zp(), and zp().

Referenced by C6510().

void C6510::RORADC_zpx  )  [inline, private]
 

Definition at line 1374 of file 6510_.h.

References pPC, RORADC_m_zp(), and zpx().

Referenced by C6510().

void C6510::RTI_  )  [inline, private]
 

Definition at line 1067 of file 6510_.h.

References c64mem1, checkSP(), PC, pPC, pPCbase, readEndian(), SP, and uword.

Referenced by C6510().

void C6510::RTS_  )  [inline, private]
 

Definition at line 1078 of file 6510_.h.

References c64mem1, checkSP(), PC, pPC, pPCbase, readEndian(), SP, and uword.

Referenced by BRK_(), C6510(), evalBankJump(), JMP_transp(), JMP_vec_transp(), and JSR_transp().

void C6510::SBC_abso  )  [inline, private]
 

Definition at line 1116 of file 6510_.h.

References pPC, readData, and SBC_m().

Referenced by C6510().

void C6510::SBC_absx  )  [inline, private]
 

Definition at line 1117 of file 6510_.h.

References pPC, readData, and SBC_m().

Referenced by C6510().

void C6510::SBC_absy  )  [inline, private]
 

Definition at line 1118 of file 6510_.h.

References pPC, readData, and SBC_m().

Referenced by C6510().

void C6510::SBC_imm  )  [inline, private]
 

Definition at line 1119 of file 6510_.h.

References imm(), pPC, and SBC_m().

Referenced by C6510(), and ILL_EB().

void C6510::SBC_indx  )  [inline, private]
 

Definition at line 1120 of file 6510_.h.

References pPC, readData, and SBC_m().

Referenced by C6510().

void C6510::SBC_indy  )  [inline, private]
 

Definition at line 1121 of file 6510_.h.

References pPC, readData, and SBC_m().

Referenced by C6510().

void C6510::SBC_m ubyte  s  )  [inline, private]
 

Definition at line 1088 of file 6510_.h.

References AC, affectNZ(), CF, DF, NF, ubyte, uword, VF, and ZF.

Referenced by INCSBC_m(), INCSBC_m_zp(), SBC_abso(), SBC_absx(), SBC_absy(), SBC_imm(), SBC_indx(), SBC_indy(), SBC_zp(), and SBC_zpx().

void C6510::SBC_zp  )  [inline, private]
 

Definition at line 1122 of file 6510_.h.

References pPC, readData_zp(), SBC_m(), and zp().

Referenced by C6510().

void C6510::SBC_zpx  )  [inline, private]
 

Definition at line 1123 of file 6510_.h.

References pPC, readData_zp(), SBC_m(), and zpx().

Referenced by C6510().

void C6510::SEC_  )  [inline, private]
 

Definition at line 1126 of file 6510_.h.

References CF.

Referenced by C6510().

void C6510::SED_  )  [inline, private]
 

Definition at line 1128 of file 6510_.h.

References DF.

Referenced by C6510().

void C6510::SEI_  )  [inline, private]
 

Definition at line 1130 of file 6510_.h.

References IF.

Referenced by C6510().

void C6510::STA_abso  )  [inline, private]
 

Definition at line 1133 of file 6510_.h.

References abso(), AC, pPC, and writeData.

Referenced by C6510().

void C6510::STA_absx  )  [inline, private]
 

Definition at line 1134 of file 6510_.h.

References absx(), AC, pPC, and writeData.

Referenced by C6510().

void C6510::STA_absy  )  [inline, private]
 

Definition at line 1135 of file 6510_.h.

References absy(), AC, pPC, and writeData.

Referenced by C6510().

void C6510::STA_indx  )  [inline, private]
 

Definition at line 1136 of file 6510_.h.

References AC, indx(), pPC, and writeData.

Referenced by C6510().

void C6510::STA_indy  )  [inline, private]
 

Definition at line 1137 of file 6510_.h.

References AC, indy(), pPC, and writeData.

Referenced by C6510().

void C6510::STA_zp  )  [inline, private]
 

Definition at line 1138 of file 6510_.h.

References AC, pPC, writeData_zp(), and zp().

Referenced by C6510().

void C6510::STA_zpx  )  [inline, private]
 

Definition at line 1139 of file 6510_.h.

References AC, pPC, writeData_zp(), and zpx().

Referenced by C6510().

void C6510::STX_abso  )  [inline, private]
 

Definition at line 1142 of file 6510_.h.

References abso(), pPC, writeData, and XR.

Referenced by C6510().

void C6510::STX_zp  )  [inline, private]
 

Definition at line 1143 of file 6510_.h.

References pPC, writeData_zp(), XR, and zp().

Referenced by C6510().

void C6510::STX_zpy  )  [inline, private]
 

Definition at line 1144 of file 6510_.h.

References pPC, writeData_zp(), XR, and zpy().

Referenced by C6510().

void C6510::STY_abso  )  [inline, private]
 

Definition at line 1147 of file 6510_.h.

References abso(), pPC, writeData, and YR.

Referenced by C6510().

void C6510::STY_zp  )  [inline, private]
 

Definition at line 1148 of file 6510_.h.

References pPC, writeData_zp(), YR, and zp().

Referenced by C6510().

void C6510::STY_zpx  )  [inline, private]
 

Definition at line 1149 of file 6510_.h.

References pPC, writeData_zp(), YR, and zpx().

Referenced by C6510().

void C6510::TAX_  )  [inline, private]
 

Definition at line 1152 of file 6510_.h.

References AC, affectNZ(), and XR.

Referenced by C6510(), ILL_A3(), ILL_A7(), ILL_AF(), ILL_B3(), ILL_B7(), and ILL_BF().

void C6510::TAY_  )  [inline, private]
 

Definition at line 1154 of file 6510_.h.

References AC, affectNZ(), and YR.

Referenced by C6510().

void C6510::TSX_  )  [inline, private]
 

Definition at line 1157 of file 6510_.h.

References affectNZ(), SP, ubyte, and XR.

Referenced by C6510().

void C6510::TXA_  )  [inline, private]
 

Definition at line 1163 of file 6510_.h.

References AC, affectNZ(), and XR.

Referenced by C6510(), ILL_8B(), and ILL_BB().

void C6510::TXS_  )  [inline, private]
 

Definition at line 1165 of file 6510_.h.

References checkSP(), SP, and XR.

Referenced by C6510(), and ILL_BB().

void C6510::TYA_  )  [inline, private]
 

Definition at line 1167 of file 6510_.h.

References AC, affectNZ(), and YR.

Referenced by C6510().

void C6510::writeData_bs uword  addr,
ubyte  data
[inline, private]
 

Definition at line 455 of file 6510_.h.

References c64mem1, c64mem2, evalBankSelect(), isIO, sidKeysOff, sidKeysOn, sidLastValue, and uword.

Referenced by C6510(), and initInterpreter().

void C6510::writeData_plain uword  addr,
ubyte  data
[inline, private]
 

Definition at line 501 of file 6510_.h.

References c64mem1, c64mem2, sidKeysOff, sidKeysOn, sidLastValue, and uword.

Referenced by initInterpreter().

void C6510::writeData_zp uword  addr,
ubyte  data
[inline, private]
 

Definition at line 529 of file 6510_.h.

References c64mem1, and evalBankSelect().

Referenced by ASL_zp(), ASL_zpx(), ASLORA_m_zp(), DEC_m_zp(), DECCMP_m_zp(), ILL_87(), ILL_97(), INC_m_zp(), INCSBC_m_zp(), LSR_zp(), LSR_zpx(), LSREOR_m_zp(), ROL_zp(), ROL_zpx(), ROLAND_m_zp(), ROR_zp(), ROR_zpx(), RORADC_m_zp(), STA_zp(), STA_zpx(), STX_zp(), STX_zpy(), STY_zp(), and STY_zpx().

ubyte C6510::zp  )  [inline, private]
 

Definition at line 174 of file 6510_.h.

References pPC, and ubyte.

Referenced by ADC_zp(), AND_zp(), ASL_zp(), ASLORA_zp(), BIT_zp(), CMP_zp(), CPX_zp(), CPY_zp(), DEC_zp(), DECCMP_zp(), EOR_zp(), ILL_87(), INC_zp(), INCSBC_zp(), LDA_zp(), LDX_zp(), LDY_zp(), LSR_zp(), LSREOR_zp(), ORA_zp(), ROL_zp(), ROLAND_zp(), ROR_zp(), RORADC_zp(), SBC_zp(), STA_zp(), STX_zp(), and STY_zp().

ubyte C6510::zpx  )  [inline, private]
 

Definition at line 179 of file 6510_.h.

References pPC, ubyte, and XR.

Referenced by ADC_zpx(), AND_zpx(), ASL_zpx(), ASLORA_zpx(), CMP_zpx(), DEC_zpx(), DECCMP_zpx(), EOR_zpx(), ILL_97(), INC_zpx(), INCSBC_zpx(), LDA_zpx(), LDY_zpx(), LSR_zpx(), LSREOR_zpx(), ORA_zpx(), ROL_zpx(), ROLAND_zpx(), ROR_zpx(), RORADC_zpx(), SBC_zpx(), STA_zpx(), and STY_zpx().

ubyte C6510::zpy  )  [inline, private]
 

Definition at line 184 of file 6510_.h.

References pPC, ubyte, and YR.

Referenced by ILL_B7(), LDX_zpy(), and STX_zpy().


Member Data Documentation

ubyte C6510::AC
 

Definition at line 1644 of file 6510_.h.

Referenced by ADC_m(), AND_m(), ASL_AC(), BIT_m(), CMP_m(), EOR_m(), ILL_6B(), ILL_83(), ILL_87(), ILL_8F(), ILL_93(), ILL_97(), ILL_9B(), ILL_9F(), ILL_B7(), ILL_CB(), interpreter(), LDA_abso(), LDA_absx(), LDA_absy(), LDA_imm(), LDA_indx(), LDA_indy(), LDA_zp(), LDA_zpx(), LSR_AC(), ORA_m(), PHA_(), PLA_(), ROL_AC(), ROR_AC(), SBC_m(), SidPlayExceptionHandler(), STA_abso(), STA_absx(), STA_absy(), STA_indx(), STA_indy(), STA_zp(), STA_zpx(), TAX_(), TAY_(), TXA_(), and TYA_().

ubyte* C6510::bankSelReg
 

pointer to RAM[1], bank-select register

Definition at line 1659 of file 6510_.h.

Referenced by evalBankSelect(), initInterpreter(), and interpreter().

ubyte* C6510::c64mem1
 

64KB C64-RAM

Definition at line 1636 of file 6510_.h.

Referenced by c64memAlloc(), c64memClear(), c64memReset(), indx(), indy(), initInterpreter(), JSR_main(), emuEngine::MPUreturnRAMbase(), PHA_(), PHP_(), PLA_(), PLP_(), readData_bs(), readData_plain(), readData_transp(), readData_zp(), RTI_(), RTS_(), Sample::Sample(), sidEmu::sidEmu(), sidEmuInitializeSong(), sidEmuInitializeSongOld(), writeData_bs(), writeData_plain(), and writeData_zp().

ubyte* C6510::c64mem2
 

Basic-ROM, VIC, SID, I/O, Kernal-ROM.

Definition at line 1637 of file 6510_.h.

Referenced by c64memAlloc(), c64memClear(), c64memReset(), initInterpreter(), readData_bs(), readData_transp(), Sample::Sample(), sidEmu::sidEmu(), sidEmuInitializeSong(), sidEmuInitializeSongOld(), writeData_bs(), and writeData_plain().

ubyte C6510::c64ramBuf[65536+256]
 

RAM buffer.

Definition at line 1651 of file 6510_.h.

Referenced by c64memAlloc(), and initInterpreter().

ubyte C6510::c64romBuf[65536+256]
 

ROM buffer.

Definition at line 1652 of file 6510_.h.

Referenced by c64memAlloc(), and initInterpreter().

ubyte C6510::fakeReadTimer
 

Definition at line 1660 of file 6510_.h.

Referenced by c64memReset(), readData_bs(), and readData_transp().

ubyte C6510::iFakeRndSeed
 

Fake Random Seed.

Definition at line 1674 of file 6510_.h.

Referenced by c64memReset().

C6510ptr2func C6510::instrList[256]
 

list of instructions

Definition at line 1672 of file 6510_.h.

Referenced by C6510(), initInterpreter(), and interpreter().

bool C6510::isBasic
 

these flags are used to not have to repeatedly

Definition at line 1656 of file 6510_.h.

Referenced by evalBankJump(), evalBankSelect(), and readData_bs().

bool C6510::isIO
 

evaluate the bank-select register for each

Definition at line 1657 of file 6510_.h.

Referenced by evalBankJump(), evalBankSelect(), readData_bs(), readData_transp(), and writeData_bs().

bool C6510::isKernal
 

address operand

Definition at line 1658 of file 6510_.h.

Referenced by evalBankJump(), evalBankSelect(), JMP_transp(), JMP_vec_transp(), JSR_transp(), and readData_bs().

int C6510::memoryMode
 

the default is MPU_TRANSPARENT_ROM

Definition at line 1669 of file 6510_.h.

Referenced by c64memClear(), c64memRamRom(), c64memReset(), initInterpreter(), and interpreter().

ubyte C6510::optr3readEnve
 

D41C.

Definition at line 1642 of file 6510_.h.

Referenced by readData_bs(), readData_transp(), and sidEmu::sidEmuFillBuffer().

ubyte C6510::optr3readWave
 

D41B.

Definition at line 1641 of file 6510_.h.

Referenced by readData_bs(), readData_transp(), and sidEmu::sidEmuFillBuffer().

uword C6510::PC
 

Definition at line 1645 of file 6510_.h.

Referenced by branchIfClear(), branchIfSet(), evalBankJump(), JMP_(), JMP_plain(), JMP_transp(), JMP_vec(), JMP_vec_plain(), JMP_vec_transp(), JSR_(), JSR_main(), JSR_plain(), JSR_transp(), RTI_(), RTS_(), and SidPlayExceptionHandler().

ubyte* C6510::pPC
 

pointer to PC location

Definition at line 1650 of file 6510_.h.

Referenced by abso(), absx(), absy(), ADC_abso(), ADC_absx(), ADC_absy(), ADC_imm(), ADC_indx(), ADC_indy(), ADC_zp(), ADC_zpx(), AND_abso(), AND_absx(), AND_absy(), AND_imm(), AND_indx(), AND_indy(), AND_zp(), AND_zpx(), ASL_abso(), ASL_absx(), ASL_zp(), ASL_zpx(), ASLORA_abso(), ASLORA_absx(), ASLORA_absy(), ASLORA_indx(), ASLORA_indy(), ASLORA_zp(), ASLORA_zpx(), BIT_abso(), BIT_zp(), branchIfClear(), branchIfSet(), CMP_abso(), CMP_absx(), CMP_absy(), CMP_imm(), CMP_indx(), CMP_indy(), CMP_zp(), CMP_zpx(), CPX_abso(), CPX_imm(), CPX_zp(), CPY_abso(), CPY_imm(), CPY_zp(), DEC_abso(), DEC_absx(), DEC_zp(), DEC_zpx(), DECCMP_abso(), DECCMP_absx(), DECCMP_absy(), DECCMP_indx(), DECCMP_indy(), DECCMP_zp(), DECCMP_zpx(), EOR_abso(), EOR_absx(), EOR_absy(), EOR_imm(), EOR_indx(), EOR_indy(), EOR_zp(), EOR_zpx(), ILL_2NOP(), ILL_3NOP(), ILL_83(), ILL_87(), ILL_8F(), ILL_93(), ILL_97(), ILL_9B(), ILL_9C(), ILL_9E(), ILL_9F(), ILL_B7(), ILL_BB(), imm(), INC_abso(), INC_absx(), INC_zp(), INC_zpx(), INCSBC_abso(), INCSBC_absx(), INCSBC_absy(), INCSBC_indx(), INCSBC_indy(), INCSBC_zp(), INCSBC_zpx(), indx(), indy(), interpreter(), JMP_(), JMP_plain(), JMP_transp(), JMP_vec(), JMP_vec_plain(), JMP_vec_transp(), JSR_(), JSR_main(), JSR_plain(), JSR_transp(), LDA_abso(), LDA_absx(), LDA_absy(), LDA_imm(), LDA_indx(), LDA_indy(), LDA_zp(), LDA_zpx(), LDX_abso(), LDX_absy(), LDX_imm(), LDX_zp(), LDX_zpy(), LDY_abso(), LDY_absx(), LDY_imm(), LDY_zp(), LDY_zpx(), LSR_abso(), LSR_absx(), LSR_zp(), LSR_zpx(), LSREOR_abso(), LSREOR_absx(), LSREOR_absy(), LSREOR_indx(), LSREOR_indy(), LSREOR_zp(), LSREOR_zpx(), ORA_abso(), ORA_absx(), ORA_absy(), ORA_imm(), ORA_indx(), ORA_indy(), ORA_zp(), ORA_zpx(), ROL_abso(), ROL_absx(), ROL_zp(), ROL_zpx(), ROLAND_abso(), ROLAND_absx(), ROLAND_absy(), ROLAND_indx(), ROLAND_indy(), ROLAND_zp(), ROLAND_zpx(), ROR_abso(), ROR_absx(), ROR_zp(), ROR_zpx(), RORADC_abso(), RORADC_absx(), RORADC_absy(), RORADC_indx(), RORADC_indy(), RORADC_zp(), RORADC_zpx(), RTI_(), RTS_(), SBC_abso(), SBC_absx(), SBC_absy(), SBC_imm(), SBC_indx(), SBC_indy(), SBC_zp(), SBC_zpx(), STA_abso(), STA_absx(), STA_absy(), STA_indx(), STA_indy(), STA_zp(), STA_zpx(), STX_abso(), STX_zp(), STX_zpy(), STY_abso(), STY_zp(), STY_zpx(), zp(), zpx(), and zpy().

ubyte* C6510::pPCbase
 

pointer to RAM/ROM buffer base

Definition at line 1648 of file 6510_.h.

Referenced by branchIfClear(), branchIfSet(), initInterpreter(), interpreter(), JMP_(), JMP_plain(), JMP_transp(), JMP_vec(), JMP_vec_plain(), JMP_vec_transp(), JSR_(), JSR_main(), JSR_plain(), JSR_transp(), RTI_(), and RTS_().

ubyte* C6510::pPCend
 

pointer to RAM/ROM buffer end

Definition at line 1649 of file 6510_.h.

Referenced by initInterpreter(), and interpreter().

ubyte(C6510::* C6510::readData)(uword)
 

Referenced by ADC_abso(), ADC_absx(), ADC_absy(), ADC_indx(), ADC_indy(), AND_abso(), AND_absx(), AND_absy(), AND_indx(), AND_indy(), ASL_abso(), ASL_absx(), ASLORA_m(), BIT_abso(), C6510(), CMP_abso(), CMP_absx(), CMP_absy(), CMP_indx(), CMP_indy(), CPX_abso(), CPY_abso(), DEC_m(), DECCMP_m(), EOR_abso(), EOR_absx(), EOR_absy(), EOR_indx(), EOR_indy(), ILL_93(), INC_m(), INCSBC_m(), initInterpreter(), JMP_vec(), JMP_vec_plain(), JMP_vec_transp(), LDA_abso(), LDA_absx(), LDA_absy(), LDA_indx(), LDA_indy(), LDX_abso(), LDX_absy(), LDY_abso(), LDY_absx(), LSR_abso(), LSR_absx(), LSREOR_m(), my_read_data(), ORA_abso(), ORA_absx(), ORA_absy(), ORA_indx(), ORA_indy(), ROL_abso(), ROL_absx(), ROLAND_m(), ROR_abso(), ROR_absx(), RORADC_m(), SBC_abso(), SBC_absx(), SBC_absy(), SBC_indx(), and SBC_indy().

bool C6510::sidKeysOff[32]
 

key_off detection

Definition at line 1638 of file 6510_.h.

Referenced by interpreter(), sidEmu::sidEmuFillBuffer(), sidEmu::sidEmuReset(), writeData_bs(), and writeData_plain().

bool C6510::sidKeysOn[32]
 

key_on detection

Definition at line 1639 of file 6510_.h.

Referenced by interpreter(), sidEmu::sidEmuFillBuffer(), sidEmu::sidEmuReset(), writeData_bs(), and writeData_plain().

ubyte C6510::sidLastValue
 

last value written to the SID

Definition at line 1640 of file 6510_.h.

Referenced by c64memClear(), c64memReset(), readData_bs(), readData_transp(), writeData_bs(), and writeData_plain().

uword C6510::SP
 

program-counter, stack-pointer

Definition at line 1645 of file 6510_.h.

Referenced by checkSP(), ILL_9B(), ILL_BB(), JSR_main(), PHA_(), PHP_(), PLA_(), PLP_(), resetSP(), RTI_(), RTS_(), SidPlayExceptionHandler(), TSX_(), and TXS_().

statusRegister C6510::SR
 

8-bit status register

Definition at line 1654 of file 6510_.h.

bool C6510::stackIsOkay
 

true if the Stack is OK

Definition at line 1667 of file 6510_.h.

Referenced by checkSP(), interpreter(), resetSP(), and SidPlayExceptionHandler().

void(C6510::* C6510::writeData)(uword, ubyte)
 

Referenced by ASL_abso(), ASL_absx(), ASLORA_m(), C6510(), DEC_m(), DECCMP_m(), ILL_83(), ILL_8F(), ILL_93(), ILL_9B(), ILL_9C(), ILL_9E(), ILL_9F(), INC_m(), INCSBC_m(), initInterpreter(), LSR_abso(), LSR_absx(), LSREOR_m(), ROL_abso(), ROL_absx(), ROLAND_m(), ROR_abso(), ROR_absx(), RORADC_m(), STA_abso(), STA_absx(), STA_absy(), STA_indx(), STA_indy(), STX_abso(), and STY_abso().

ubyte C6510::XR
 

Definition at line 1644 of file 6510_.h.

Referenced by absx(), CPX_m(), DEX_(), ILL_83(), ILL_87(), ILL_8F(), ILL_93(), ILL_97(), ILL_9B(), ILL_9E(), ILL_9F(), ILL_BB(), ILL_CB(), indx(), interpreter(), INX_(), LDX_abso(), LDX_absy(), LDX_imm(), LDX_zp(), LDX_zpy(), SidPlayExceptionHandler(), STX_abso(), STX_zp(), STX_zpy(), TAX_(), TSX_(), TXA_(), TXS_(), and zpx().

ubyte C6510::YR
 

6510 processor registers

Definition at line 1644 of file 6510_.h.

Referenced by absy(), CPY_m(), DEY_(), ILL_9C(), indy(), interpreter(), INY_(), LDY_abso(), LDY_absx(), LDY_imm(), LDY_zp(), LDY_zpx(), SidPlayExceptionHandler(), STY_abso(), STY_zp(), STY_zpx(), TAY_(), TYA_(), and zpy().


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:32:11 2005 for Esidplay by doxygen 1.3.3