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

VIC_SC.cpp File Reference

#include "sysdeps.h"
#include "VIC.h"
#include "C64.h"
#include "CPUC64.h"
#include "Display.h"
#include "Prefs.h"

Include dependency graph for VIC_SC.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define SetBALow
#define DisplayIfBadLine
#define FetchIfBadLine
#define RCIfBadLine
#define IdleAccess   read_byte(0x3fff)
#define RefreshAccess   read_byte(0x3f00 | ref_cnt--)
#define CheckSpriteDMA
#define SprPtrAccess(num)   spr_ptr[num] = read_byte(matrix_base | 0x03f8 | num) << 6;
#define SprDataAccess(num, bytenum)
#define SampleBorder

Functions

void memset8 (uint8 *p, uint8 c)

Variables

const int FIRST_DISP_LINE = 0x10
const int LAST_DISP_LINE = 0x11f
const int FIRST_DMA_LINE = 0x30
const int LAST_DMA_LINE = 0xf7
const int ROW25_YSTART = 0x33
const int ROW25_YSTOP = 0xfb
const int ROW24_YSTART = 0x37
const int ROW24_YSTOP = 0xf7
const int COL40_XSTART = 0x20
const int COL40_XSTOP = 0x160
const int COL38_XSTART = 0x27
const int COL38_XSTOP = 0x157
uint16 ExpTable [256]
uint16 MultiExpTable [256]


Define Documentation

#define CheckSpriteDMA
 

Value:

mask = 1; \
        for (i=0; i<8; i++, mask<<=1) \
                if ((me & mask) && (raster_y & 0xff) == my[i]) { \
                        spr_dma_on |= mask; \
                        mc_base[i] = 0; \
                        if (mye & mask) \
                                spr_exp_y &= ~mask; \
                }

Definition at line 1461 of file VIC_SC.cpp.

#define DisplayIfBadLine
 

Value:

if (is_bad_line) \
                display_state = true;

Definition at line 1433 of file VIC_SC.cpp.

#define FetchIfBadLine
 

Value:

if (is_bad_line) { \
                display_state = true; \
                SetBALow; \
        }

Definition at line 1438 of file VIC_SC.cpp.

#define IdleAccess   read_byte(0x3fff)
 

Definition at line 1453 of file VIC_SC.cpp.

#define RCIfBadLine
 

Value:

if (is_bad_line) { \
                display_state = true; \
                rc = 0; \
                SetBALow; \
        }

Definition at line 1445 of file VIC_SC.cpp.

#define RefreshAccess   read_byte(0x3f00 | ref_cnt--)
 

Definition at line 1457 of file VIC_SC.cpp.

#define SampleBorder
 

Value:

if (draw_this_line) { \
                if (border_on) \
                        border_color_sample[cycle-13] = ec_color; \
                chunky_ptr += 8; \
                fore_mask_ptr++; \
        }

Definition at line 1484 of file VIC_SC.cpp.

#define SetBALow
 

Value:

if (!the_cpu->BALow) { \
                first_ba_cycle = the_c64->CycleCounter; \
                the_cpu->BALow = true; \
        }

Definition at line 1426 of file VIC_SC.cpp.

#define SprDataAccess num,
bytenum   ) 
 

Value:

if (spr_dma_on & (1 << num)) { \
                spr_data[num][bytenum] = read_byte(mc[num] & 0x3f | spr_ptr[num]); \
                mc[num]++; \
        } else if (bytenum == 1) \
                IdleAccess;

Definition at line 1476 of file VIC_SC.cpp.

#define SprPtrAccess num   )     spr_ptr[num] = read_byte(matrix_base | 0x03f8 | num) << 6;
 

Definition at line 1472 of file VIC_SC.cpp.


Function Documentation

void memset8 uint8 p,
uint8  c
[inline]
 

Definition at line 813 of file VIC_SC.cpp.


Variable Documentation

const int COL38_XSTART = 0x27
 

Definition at line 54 of file VIC_SC.cpp.

const int COL38_XSTOP = 0x157
 

Definition at line 55 of file VIC_SC.cpp.

const int COL40_XSTART = 0x20
 

Definition at line 52 of file VIC_SC.cpp.

const int COL40_XSTOP = 0x160
 

Definition at line 53 of file VIC_SC.cpp.

uint16 ExpTable[256]
 

Definition at line 60 of file VIC_SC.cpp.

const int FIRST_DISP_LINE = 0x10
 

Definition at line 32 of file VIC_SC.cpp.

const int FIRST_DMA_LINE = 0x30
 

Definition at line 36 of file VIC_SC.cpp.

const int LAST_DISP_LINE = 0x11f
 

Definition at line 33 of file VIC_SC.cpp.

const int LAST_DMA_LINE = 0xf7
 

Definition at line 37 of file VIC_SC.cpp.

uint16 MultiExpTable[256]
 

Definition at line 95 of file VIC_SC.cpp.

const int ROW24_YSTART = 0x37
 

Definition at line 42 of file VIC_SC.cpp.

const int ROW24_YSTOP = 0xf7
 

Definition at line 43 of file VIC_SC.cpp.

const int ROW25_YSTART = 0x33
 

Definition at line 40 of file VIC_SC.cpp.

const int ROW25_YSTOP = 0xfb
 

Definition at line 41 of file VIC_SC.cpp.


Generated on Tue Feb 8 04:11:25 2005 for E32frodo by doxygen 1.3.3