Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
vic6561.c File Reference
#include <stdio.h>
#include <SDL.h>
#include "xemu/emutools.h"
#include "vic6561.h"
Include dependency graph for vic6561.c:

Go to the source code of this file.

Macros

#define SCREEN_COLOUR   vic_cpal[0]
 
#define BORDER_COLOUR   vic_cpal[1]
 
#define SRAM_COLOUR   vic_cpal[2]
 
#define AUX_COLOUR   vic_cpal[3]
 

Functions

Uint8 cpu_vic_reg_read (int addr)
 
void cpu_vic_reg_write (int addr, Uint8 data)
 
void vic_vsync (int relock_texture)
 
void vic_init (Uint8 **lo8_pointers, Uint8 **hi4_pointers)
 
void vic_render_line (void)
 

Variables

Uint32 vic_palette [16]
 
int scanline
 

Macro Definition Documentation

◆ AUX_COLOUR

#define AUX_COLOUR   vic_cpal[3]

Definition at line 36 of file vic6561.c.

◆ BORDER_COLOUR

#define BORDER_COLOUR   vic_cpal[1]

Definition at line 34 of file vic6561.c.

◆ SCREEN_COLOUR

#define SCREEN_COLOUR   vic_cpal[0]

Definition at line 33 of file vic6561.c.

◆ SRAM_COLOUR

#define SRAM_COLOUR   vic_cpal[2]

Definition at line 35 of file vic6561.c.

Function Documentation

◆ cpu_vic_reg_read()

Uint8 cpu_vic_reg_read ( int  addr)

Definition at line 94 of file vic6561.c.

◆ cpu_vic_reg_write()

void cpu_vic_reg_write ( int  addr,
Uint8  data 
)

Definition at line 107 of file vic6561.c.

Here is the caller graph for this function:

◆ vic_init()

void vic_init ( Uint8 **  lo8_pointers,
Uint8 **  hi4_pointers 
)

Definition at line 168 of file vic6561.c.

Here is the call graph for this function:

◆ vic_render_line()

void vic_render_line ( void  )

Definition at line 200 of file vic6561.c.

◆ vic_vsync()

void vic_vsync ( int  relock_texture)

Definition at line 155 of file vic6561.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ scanline

int scanline

Definition at line 52 of file vic6561.c.

◆ vic_palette

Uint32 vic_palette[16]

Definition at line 51 of file vic6561.c.