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

CPU1541.cpp File Reference

#include "sysdeps.h"
#include "CPU1541.h"
#include "1541job.h"
#include "C64.h"
#include "CIA.h"
#include "Display.h"
#include "main.h"
#include "CPU_emulline.i"

Include dependency graph for CPU1541.cpp:

Include dependency graph

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_byte()   ram[(++sp) | 0x0100]
#define push_byte(byte)   (ram[(sp--) & 0xff | 0x0100] = (byte))
#define pop_flags()
#define push_flags(b_flag)
#define IS_CPU_1541

Enumerations

enum  { INT_RESET = 3 }


Define Documentation

#define IS_CPU_1541
 

 
#define pop_byte  )     ram[(++sp) | 0x0100]
 

Definition at line 715 of file CPU1541.cpp.

Referenced by while().

 
#define pop_flags  ) 
 

Value:

n_flag = tmp = pop_byte(); \
        v_flag = BOOL_BIT(tmp, 0x40); \
        d_flag = BOOL_BIT(tmp, 0x08); \
        i_flag = BOOL_BIT(tmp, 0x04); \
        z_flag = !(tmp & 0x02); \
        c_flag = BOOL_BIT(tmp, 0x01);

Definition at line 722 of file CPU1541.cpp.

Referenced by switch(), and while().

#define push_byte byte   )     (ram[(sp--) & 0xff | 0x0100] = (byte))
 

Definition at line 718 of file CPU1541.cpp.

Referenced by MOS6510::EmulateLine(), MOS6502_1541::EmulateLine(), and while().

#define push_flags b_flag   ) 
 

Value:

tmp = 0x20 | (n_flag & 0x80); \
        if (v_flag) tmp |= 0x40; \
        if (b_flag) tmp |= 0x10; \
        if (d_flag) tmp |= 0x08; \
        if (i_flag) tmp |= 0x04; \
        if (!z_flag) tmp |= 0x02; \
        if (c_flag) tmp |= 0x01; \
        push_byte(tmp);

Definition at line 731 of file CPU1541.cpp.

Referenced by MOS6510::EmulateLine(), MOS6502_1541::EmulateLine(), switch(), and while().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
INT_RESET 

Definition at line 73 of file CPU1541.cpp.


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