Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions
vera.c File Reference
#include "xemu/emutools.h"
#include "xemu/emutools_files.h"
#include "vera.h"
#include "xemu/cpu65.h"
#include "sdcard.h"
#include "commander_x16.h"
Include dependency graph for vera.c:

Go to the source code of this file.

Macros

#define DEBUGVERA   DEBUGPRINT
 
#define SCANLINES_TOTAL   525
 
#define SCANLINE_START_VSYNC   492
 
#define SCANLINE_STOP_VSYNC   495
 
#define MODE_NTSC_COMPOSITE   2
 
#define INTERRUPT_REGISTER_MASK   15
 
#define VRAM_SIZE   0x20000
 
#define UART_CLOCK   25000000
 
#define UART_DEFAULT_BAUD_RATE   1000000
 
#define VSYNC_IRQ   1
 
#define RASTER_IRQ   2
 
#define SPRITE_IRQ   4
 
#define UART_IRQ   8
 

Functions

void vera_write_cpu_register (int reg, Uint8 data)
 
Uint8 vera_read_cpu_register (int reg)
 
int vera_dump_vram (const char *fn)
 
int vera_render_line (void)
 
void vera_reset (void)
 
void vera_init (void)
 

Macro Definition Documentation

◆ DEBUGVERA

#define DEBUGVERA   DEBUGPRINT

Definition at line 29 of file vera.c.

◆ INTERRUPT_REGISTER_MASK

#define INTERRUPT_REGISTER_MASK   15

Definition at line 39 of file vera.c.

◆ MODE_NTSC_COMPOSITE

#define MODE_NTSC_COMPOSITE   2

Definition at line 37 of file vera.c.

◆ RASTER_IRQ

#define RASTER_IRQ   2

Definition at line 45 of file vera.c.

◆ SCANLINE_START_VSYNC

#define SCANLINE_START_VSYNC   492

Definition at line 34 of file vera.c.

◆ SCANLINE_STOP_VSYNC

#define SCANLINE_STOP_VSYNC   495

Definition at line 35 of file vera.c.

◆ SCANLINES_TOTAL

#define SCANLINES_TOTAL   525

Definition at line 33 of file vera.c.

◆ SPRITE_IRQ

#define SPRITE_IRQ   4

Definition at line 46 of file vera.c.

◆ UART_CLOCK

#define UART_CLOCK   25000000

Definition at line 41 of file vera.c.

◆ UART_DEFAULT_BAUD_RATE

#define UART_DEFAULT_BAUD_RATE   1000000

Definition at line 42 of file vera.c.

◆ UART_IRQ

#define UART_IRQ   8

Definition at line 47 of file vera.c.

◆ VRAM_SIZE

#define VRAM_SIZE   0x20000

Definition at line 40 of file vera.c.

◆ VSYNC_IRQ

#define VSYNC_IRQ   1

Definition at line 44 of file vera.c.

Function Documentation

◆ vera_dump_vram()

int vera_dump_vram ( const char *  fn)

Definition at line 524 of file vera.c.

Here is the call graph for this function:

◆ vera_init()

void vera_init ( void  )

Definition at line 746 of file vera.c.

◆ vera_read_cpu_register()

Uint8 vera_read_cpu_register ( int  reg)

Definition at line 490 of file vera.c.

◆ vera_render_line()

int vera_render_line ( void  )

Definition at line 603 of file vera.c.

◆ vera_reset()

void vera_reset ( void  )

Definition at line 712 of file vera.c.

◆ vera_write_cpu_register()

void vera_write_cpu_register ( int  reg,
Uint8  data 
)

Definition at line 448 of file vera.c.

Variable Documentation

◆ addr

int addr

Definition at line 52 of file vera.c.

◆ all

Uint32 all[4096]

Definition at line 84 of file vera.c.

◆ all_mono

Uint32 all_mono[4096]

Definition at line 85 of file vera.c.

◆ bitmap_palette_offset

int bitmap_palette_offset

Definition at line 60 of file vera.c.

◆ changed

int changed

Definition at line 68 of file vera.c.

◆ chromakill

int chromakill

Definition at line 77 of file vera.c.

◆ colour

Uint32 colour

Definition at line 67 of file vera.c.

◆ colours

Uint32 colours[0x100]

Definition at line 83 of file vera.c.

◆ counter_map

int counter_map

Definition at line 62 of file vera.c.

◆ counter_tile_row

int counter_tile_row

Definition at line 62 of file vera.c.

◆ enabled

int enabled

Definition at line 61 of file vera.c.

◆ field

int field

Definition at line 75 of file vera.c.

◆ hscale

int hscale

Definition at line 74 of file vera.c.

◆ hscroll

int hscroll

Definition at line 60 of file vera.c.

◆ hstart

int hstart

Definition at line 73 of file vera.c.

◆ hstop

int hstop

Definition at line 73 of file vera.c.

◆ hwidth

int hwidth

Definition at line 79 of file vera.c.

◆ inc

int inc

Definition at line 53 of file vera.c.

◆ index

int index

Definition at line 66 of file vera.c.

◆ irqline

int irqline

Definition at line 76 of file vera.c.

◆ is_mono_mode

int is_mono_mode

Definition at line 78 of file vera.c.

◆ map_base

int map_base

Definition at line 59 of file vera.c.

◆ maph

int maph

Definition at line 61 of file vera.c.

◆ mapw

int mapw

Definition at line 61 of file vera.c.

◆ mode

int mode

Definition at line 61 of file vera.c.

◆ regspace

Uint8 regspace[0x200]

Definition at line 51 of file vera.c.

◆ spi_busy

int spi_busy

Definition at line 92 of file vera.c.

◆ spi_received_data

Uint8 spi_received_data

Definition at line 90 of file vera.c.

◆ spi_select

int spi_select

Definition at line 91 of file vera.c.

◆ tile_base

int tile_base

Definition at line 59 of file vera.c.

◆ tileh

int tileh

Definition at line 61 of file vera.c.

◆ tilew

int tilew

Definition at line 61 of file vera.c.

◆ uart_baud_divisor

int uart_baud_divisor

Definition at line 93 of file vera.c.

◆ uart_baud_rate

int uart_baud_rate

Definition at line 94 of file vera.c.

◆ vscale

int vscale

Definition at line 74 of file vera.c.

◆ vscroll

int vscroll

Definition at line 60 of file vera.c.

◆ vstart

int vstart

Definition at line 73 of file vera.c.

◆ vstop

int vstop

Definition at line 73 of file vera.c.