Go to the documentation of this file.
23 #define VDC_SPRITE_COLOR(n) ((n))
24 #define VDC_SPRITE_COLOR_MASK (0xF)
25 #define VDC_SPRITE_BG 0
26 #define VDC_SPRITE_FG (0x1 << 7)
27 #define VDC_SPRITE_WIDTH_16 0
28 #define VDC_SPRITE_WIDTH_32 (0x1 << 8)
29 #define VDC_SPRITE_WIDTH_MASK (0x1 << 8)
30 #define VDC_SPRITE_HEIGHT_16 0
31 #define VDC_SPRITE_HEIGHT_32 (0x1 << 12)
32 #define VDC_SPRITE_HEIGHT_64 (0x3 << 12)
33 #define VDC_SPRITE_HEIGHT_MASK (0x3 << 12)
34 #define VDC_SPRITE_FLIP_X (0x1 << 11)
35 #define VDC_SPRITE_FLIP_Y (0x1 << 15)
volatile uint16_t * pce_sgx_vdc_get_data(void)
SuperGrafx: Get the current VDC's data port location.
void pce_vdc_irq_vblank_disable(void)
Disable the veritcal blank IRQ.
void pce_sgx_vdc_set(uint8_t id)
SuperGrafx: Set the specified VDC as the current VDC for pce_vdc functions.
::uint16_t uint16_t
Definition: cstdint:22
char const void * data
Definition: neslib.h:92
void pce_sgx_vdc2_set(void)
SuperGrafx: Set the VDC2 as the current VDC for pce_vdc functions.
void pce_vdc_irq_sprite_overflow_disable(void)
Disable the sprite overflow IRQ.
void pce_vdc_set_copy_64_words(void)
Set the VDC's copy method to copy every 64th word.
void pce_vdc_set_width(uint16_t pixels, uint8_t vce_flags)
void pce_vdc_enable(uint8_t value)
Enable VDC control flags.
volatile uint8_t * pce_sgx_vdc_get_index(void)
SuperGrafx: Get the current VDC's index port location.
void pce_vdc_set_copy_column_64(void)
Set the VDC's copy method to copy every column for a 64-wide display. Alias for pce_vdc_set_copy_64_w...
void pce_vdc_irq_vblank_enable(void)
Enable the veritcal blank IRQ.
uint8_t uint16_t uint16_t length
Definition: bios.h:181
void pce_vdc_sprite_set_table_start(uint16_t loc)
Set the sprite attribute table location.
::uint8_t uint8_t
Definition: cstdint:21
void pce_vdc_sprite_enable(void)
Enable the sprite layer.
void pce_vdc_irq_sprite_collide_enable(void)
Enable the sprite collision IRQ.
void pce_vdc_copy_from_vram(void *dest, uint16_t source, uint16_t length)
Copy data from VRAM to RAM.
char index
Definition: nesdoug.h:113
uint16_t pattern
Definition: vdc.h:40
void pce_vdc_irq_sprite_overflow_enable(void)
Enable the sprite overflow IRQ.
void pce_vdc_irq_sprite_collide_disable(void)
Disable the sprite collision IRQ.
uint16_t attr
Definition: vdc.h:41
void pce_vdc_sprite_disable(void)
Disable the sprite layer.
void pce_vdc_dma_start(uint8_t mode, uint16_t source, uint16_t dest, uint16_t length)
Start a DMA operation on the VDC.
void pce_vdc_set_copy_32_words(void)
Set the VDC's copy method to copy every 32nd word.
void pce_vdc_set_width_tiles(uint8_t tiles, uint8_t vce_flags)
Set the VDC width, in tiles.
void pce_vdc_poke(uint8_t index, uint16_t data)
Write a value to the VDC port.
void pce_vdc_set_copy_column_128(void)
Set the VDC's copy method to copy every column for a 128-wide display. Alias for pce_vdc_set_copy_128...
void pce_vdc_set_height(uint8_t lines)
Set the VDC height, in raster lines.
void pce_sgx_vdc1_set(void)
SuperGrafx: Set the VDC1 as the current VDC for pce_vdc functions.
void pce_vdc_bg_set_size(uint8_t value)
Set the VDC background size.
void pce_vdc_copy_to_vram(uint16_t dest, const void *source, uint16_t length)
Copy data from RAM to VRAM.
uint16_t y
Definition: vdc.h:38
void pce_vdc_irq_scanline_disable(void)
Disable the scanline IRQ.
bool pce_sgx_detect(void)
SuperGrafx: Check for presence.
void pce_vdc_set_resolution(uint16_t width_pixels, uint8_t height_pixels, uint8_t vce_flags)
void pce_vdc_bg_disable(void)
Disable the background layer.
void pce_vdc_bg_enable(void)
Enable the background layer.
void pce_vdc_irq_scanline_enable(void)
Enable the scanline IRQ.
uint16_t x
Definition: vdc.h:39
void pce_vdc_disable(uint8_t value)
Disable VDC control flags.
void pce_vdc_set_copy_128_words(void)
Set the VDC's copy method to copy every 128th word.
void pce_vdc_set_copy_word(void)
Set the VDC's copy method to copy every word.
void pce_vdc_set_copy_row(void)
Set the VDC's copy method to copy every row. Alias for pce_vdc_set_copy_word .
void pce_vdc_set_copy_column_32(void)
Set the VDC's copy method to copy every column for a 32-wide display. Alias for pce_vdc_set_copy_32_w...
const void uint16_t uint8_t mode
Definition: memory.h:58
uint16_t pce_vdc_peek(uint8_t index)
Read a value from the VDC port.
bool pce_vdc_dma_finished(void)
Check if the DMA operation has finished.
void pce_sgx_vdc_init(void)
SuperGrafx: Initialize the second VDC.