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

CPU_emulcycle.i File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define pop_flags()
#define push_flags(b_flag)
#define Branch(flag)
#define set_nz(x)   (z_flag = n_flag = (x))
#define DoRMW   state = RMW_DO_IT; break;
#define Execute   state = OpTab[op]; break;
#define Last   state = 0; break;
#define pop_flags()
#define push_flags(b_flag)
#define Branch(flag)
#define set_nz(x)   (z_flag = n_flag = (x))
#define DoRMW   state = RMW_DO_IT; break;
#define Execute   state = OpTab[op]; break;
#define Last   state = 0; break;
#define pop_flags()
#define push_flags(b_flag)
#define Branch(flag)
#define set_nz(x)   (z_flag = n_flag = (x))
#define DoRMW   state = RMW_DO_IT; break;
#define Execute   state = OpTab[op]; break;
#define Last   state = 0; break;

Functions

 switch (state)


Define Documentation

#define Branch flag   ) 
 

Value:

read_to(pc++, data);  \
                if (flag) { \
                        ar = pc + (int8)data; \
                        if ((ar >> 8) != (pc >> 8)) { \
                                if (data & 0x80) \
                                        state = O_BRANCH_BP; \
                                else \
                                        state = O_BRANCH_FP; \
                        } else \
                                state = O_BRANCH_NP; \
                } else \
                        state = 0; \
                break;

Definition at line 41 of file CPU_emulcycle.i.

#define Branch flag   ) 
 

Value:

read_to(pc++, data);  \
                if (flag) { \
                        ar = pc + (int8)data; \
                        if ((ar >> 8) != (pc >> 8)) { \
                                if (data & 0x80) \
                                        state = O_BRANCH_BP; \
                                else \
                                        state = O_BRANCH_FP; \
                        } else \
                                state = O_BRANCH_NP; \
                } else \
                        state = 0; \
                break;

Definition at line 41 of file CPU_emulcycle.i.

#define Branch flag   ) 
 

Value:

read_to(pc++, data);  \
                if (flag) { \
                        ar = pc + (int8)data; \
                        if ((ar >> 8) != (pc >> 8)) { \
                                if (data & 0x80) \
                                        state = O_BRANCH_BP; \
                                else \
                                        state = O_BRANCH_FP; \
                        } else \
                                state = O_BRANCH_NP; \
                } else \
                        state = 0; \
                break;

Definition at line 41 of file CPU_emulcycle.i.

#define DoRMW   state = RMW_DO_IT; break;
 

Definition at line 60 of file CPU_emulcycle.i.

#define DoRMW   state = RMW_DO_IT; break;
 

Definition at line 60 of file CPU_emulcycle.i.

#define DoRMW   state = RMW_DO_IT; break;
 

Definition at line 60 of file CPU_emulcycle.i.

Referenced by switch().

#define Execute   state = OpTab[op]; break;
 

Definition at line 63 of file CPU_emulcycle.i.

#define Execute   state = OpTab[op]; break;
 

Definition at line 63 of file CPU_emulcycle.i.

#define Execute   state = OpTab[op]; break;
 

Definition at line 63 of file CPU_emulcycle.i.

Referenced by switch().

#define Last   state = 0; break;
 

Definition at line 66 of file CPU_emulcycle.i.

#define Last   state = 0; break;
 

Definition at line 66 of file CPU_emulcycle.i.

#define Last   state = 0; break;
 

Definition at line 66 of file CPU_emulcycle.i.

Referenced by switch().

 
#define pop_flags  ) 
 

Value:

read_to(sp | 0x100, data); \
        n_flag = data; \
        v_flag = data & 0x40; \
        d_flag = data & 0x08; \
        i_flag = data & 0x04; \
        z_flag = !(data & 0x02); \
        c_flag = data & 0x01;

Definition at line 15 of file CPU_emulcycle.i.

 
#define pop_flags  ) 
 

Value:

read_to(sp | 0x100, data); \
        n_flag = data; \
        v_flag = data & 0x40; \
        d_flag = data & 0x08; \
        i_flag = data & 0x04; \
        z_flag = !(data & 0x02); \
        c_flag = data & 0x01;

Definition at line 15 of file CPU_emulcycle.i.

 
#define pop_flags  ) 
 

Value:

read_to(sp | 0x100, data); \
        n_flag = data; \
        v_flag = data & 0x40; \
        d_flag = data & 0x08; \
        i_flag = data & 0x04; \
        z_flag = !(data & 0x02); \
        c_flag = data & 0x01;

Definition at line 15 of file CPU_emulcycle.i.

#define push_flags b_flag   ) 
 

Value:

data = 0x20 | (n_flag & 0x80); \
        if (v_flag) data |= 0x40; \
        if (b_flag) data |= 0x10; \
        if (d_flag) data |= 0x08; \
        if (i_flag) data |= 0x04; \
        if (!z_flag) data |= 0x02; \
        if (c_flag) data |= 0x01; \
        write_byte(sp-- | 0x100, data);

Definition at line 25 of file CPU_emulcycle.i.

#define push_flags b_flag   ) 
 

Value:

data = 0x20 | (n_flag & 0x80); \
        if (v_flag) data |= 0x40; \
        if (b_flag) data |= 0x10; \
        if (d_flag) data |= 0x08; \
        if (i_flag) data |= 0x04; \
        if (!z_flag) data |= 0x02; \
        if (c_flag) data |= 0x01; \
        write_byte(sp-- | 0x100, data);

Definition at line 25 of file CPU_emulcycle.i.

#define push_flags b_flag   ) 
 

Value:

data = 0x20 | (n_flag & 0x80); \
        if (v_flag) data |= 0x40; \
        if (b_flag) data |= 0x10; \
        if (d_flag) data |= 0x08; \
        if (i_flag) data |= 0x04; \
        if (!z_flag) data |= 0x02; \
        if (c_flag) data |= 0x01; \
        write_byte(sp-- | 0x100, data);

Definition at line 25 of file CPU_emulcycle.i.

#define set_nz  )     (z_flag = n_flag = (x))
 

Definition at line 57 of file CPU_emulcycle.i.

#define set_nz  )     (z_flag = n_flag = (x))
 

Definition at line 57 of file CPU_emulcycle.i.

#define set_nz  )     (z_flag = n_flag = (x))
 

Definition at line 57 of file CPU_emulcycle.i.


Function Documentation

switch state   ) 
 

Definition at line 73 of file CPU_emulcycle.i.

References A_ABS, A_ABS1, A_ABSX, A_ABSX1, A_ABSX2, A_ABSX3, A_ABSY, A_ABSY1, A_ABSY2, A_ABSY3, A_INDX, A_INDX1, A_INDX2, A_INDX3, A_INDY, A_INDY1, A_INDY2, A_INDY3, A_INDY4, A_ZERO, A_ZEROX, A_ZEROX1, A_ZEROY, A_ZEROY1, AE_ABSX, AE_ABSX1, AE_ABSX2, AE_ABSY, AE_ABSY1, AE_ABSY2, AE_INDY, AE_INDY1, AE_INDY2, AE_INDY3, DoRMW, Execute, INT_NMI, Last, M_ABS, M_ABS1, M_ABSX, M_ABSX1, M_ABSX2, M_ABSX3, M_ABSY, M_ABSY1, M_ABSY2, M_ABSY3, M_INDX, M_INDX1, M_INDX2, M_INDX3, M_INDY, M_INDY1, M_INDY2, M_INDY3, M_INDY4, M_ZERO, M_ZEROX, M_ZEROX1, M_ZEROY, M_ZEROY1, ModeTab, O_ADC, O_ADC_I, O_ANC_I, O_AND, O_AND_I, O_ANE_I, O_ARR_I, O_ASL, O_ASL_A, O_ASR_I, O_BCC, O_BCS, O_BEQ, O_BIT, O_BMI, O_BNE, O_BPL, O_BRANCH_BP, O_BRANCH_BP1, O_BRANCH_FP, O_BRANCH_FP1, O_BRANCH_NP, O_BRK, O_BRK1, O_BRK2, O_BRK3, O_BRK4, O_BRK5, O_BVC, O_BVS, O_CLC, O_CLD, O_CLI, O_CLV, O_CMP, O_CMP_I, O_CPX, O_CPX_I, O_CPY, O_CPY_I, O_DCP, O_DEC, O_DEX, O_DEY, O_EOR, O_EOR_I, O_INC, O_INX, O_INY, O_ISB, O_JMP, O_JMP1, O_JMP_I, O_JMP_I1, O_JSR, O_JSR1, O_JSR2, O_JSR3, O_JSR4, O_LAS, O_LAX, O_LDA, O_LDA_I, O_LDX, O_LDX_I, O_LDY, O_LDY_I, O_LSR, O_LSR_A, O_LXA_I, O_NOP, O_NOP_A, O_NOP_I, O_ORA, O_ORA_I, O_PHA, O_PHA1, O_PHP, O_PHP1, O_PLA, O_PLA1, O_PLA2, O_PLP, O_PLP1, O_PLP2, O_RLA, O_ROL, O_ROL_A, O_ROR, O_ROR_A, O_RRA, O_RTI, O_RTI1, O_RTI2, O_RTI3, O_RTI4, O_RTS, O_RTS1, O_RTS2, O_RTS3, O_RTS4, O_SAX, O_SBC, O_SBC_I, O_SBX_I, O_SEC, O_SED, O_SEI, O_SHA, O_SHS, O_SHX, O_SHY, O_SLO, O_SRE, O_STA, O_STX, O_STY, O_TAX, O_TAY, O_TSX, O_TXA, O_TXS, O_TYA, pop_flags, push_flags, read_idle, read_to, RMW_DO_IT, RMW_DO_IT1, and set_nz.


Generated on Tue Feb 8 04:09:23 2005 for E32frodo by doxygen 1.3.3