llvm-mos-sdk
|
Go to the source code of this file.
Classes | |
struct | pce_cdb_subq_data |
struct | pce_cdb_toc_data |
struct | pce_cdb_divmod_u16_result |
struct | pce_cdb_divmod_s16_result |
Typedefs | |
typedef struct pce_cdb_subq_data | pce_cdb_subq_data_t |
typedef struct pce_cdb_toc_data | pce_cdb_toc_data_t |
typedef struct pce_cdb_divmod_u16_result | pce_cdb_divmod_u16_result_t |
typedef struct pce_cdb_divmod_s16_result | pce_cdb_divmod_s16_result_t |
Functions | |
bool | pce_cdb_vram_in_use (void) |
Check if VRAM is currently in use by a CD BIOS command. More... | |
uint8_t | pce_cdb_cd_reset (void) |
Reset the CD drive. More... | |
void | pce_cdb_cd_base (pce_sector_t base, uint8_t mode) |
Set the starting sector, used as an offset for future BIOS calls. More... | |
uint8_t | pce_cdb_cd_read (pce_sector_t sector, uint8_t address_type, uint16_t address, uint16_t length) |
Read sectors from the CD drive. More... | |
void | pce_cdb_cd_seek (pce_sector_t sector) |
Seek the CD drive to the specified sector. More... | |
uint8_t | pce_cdb_cdda_play (uint8_t start_type, pce_sector_t start, uint8_t end_type, pce_sector_t end, uint8_t mode) |
Play CD audio. More... | |
uint8_t | pce_cdb_cdda_search (pce_sector_t sector, uint8_t mode) |
Search for a CD audio track. More... | |
uint8_t | pce_cdb_cdda_pause (void) |
Pause CD audio playback. More... | |
uint8_t | pce_cdb_cd_busy (void) |
Check if the CD drive is busy. More... | |
uint8_t | pce_cdb_cd_not_ready (void) |
Check if the CD drive is ready. More... | |
uint8_t | pce_cdb_cdda_read_subcode_q (pce_cdb_subq_data_t *buffer) |
Read CD audio Subcode Q (timing) data. More... | |
uint8_t | pce_cdb_cd_read_toc_track_count (pce_cdb_toc_data_t *buffer) |
uint8_t | pce_cdb_cd_read_toc_lead_out_time (pce_cdb_toc_data_t *buffer) |
uint8_t | pce_cdb_cd_read_toc_track_time (pce_cdb_toc_data_t *buffer, uint8_t track_id) |
uint8_t | pce_cdb_cd_read_toc_track_sector (pce_cdb_toc_data_t *buffer, uint8_t track_id) |
uint8_t | pce_cdb_cd_scan (void) |
Initialize information about the currently inserted CD. More... | |
bool | pce_cdb_cd_read_subcode_bits (uint8_t *buffer) |
Read the current CD subcode bits. More... | |
uint16_t | pce_cdb_cdda_read_sample (uint8_t channel) |
Read the currently played CD audio sample. More... | |
void | pce_cdb_fader (uint8_t mode) |
Configure the CD unit's audio fader. More... | |
void | pce_cdb_adpcm_reset (void) |
Reset the ADPCM controller. More... | |
uint8_t | pce_cdb_adpcm_read_from_cd (pce_sector_t sector, uint8_t length, uint16_t address) |
Read ADPCM data from CD to the ADPCM buffer. More... | |
uint8_t | pce_cdb_adpcm_read_next_cd (pce_sector_t sector, uint8_t length) |
Read ADPCM data from CD to the ADPCM buffer, continuing where the previous pce_cdb_adpcm_read_cd_buffer or read_next_cd_buffer command left off. More... | |
uint8_t | pce_cdb_adpcm_write_to_ram (uint16_t source, uint8_t dest_type, uint16_t dest, uint16_t length) |
Copy ADPCM data from the ADPCM buffer to RAM. More... | |
uint8_t | pce_cdb_adpcm_read_from_ram (uint8_t source_type, uint16_t source, uint16_t dest, uint16_t length) |
Copy ADPCM data from RAM to the ADPCM buffer. More... | |
uint8_t | pce_cdb_adpcm_play (uint16_t address, uint16_t length, uint8_t divider, uint8_t mode) |
Begin ADPCM sample playback from the ADPCM buffer. More... | |
uint8_t | pce_cdb_adpcm_continue (uint8_t mode) |
Continue existing ADPCM sample playback. More... | |
uint8_t | pce_cdb_adpcm_stream (pce_sector_t sector, pce_sector_t length, uint8_t divider) |
Begin ADPCM sample playback streamed from CD. More... | |
void | pce_cdb_adpcm_stop (void) |
Stop ADPCM playback. More... | |
uint16_t | pce_cdb_adpcm_status (void) |
Query the ADPCM status. More... | |
uint16_t | pce_cdb_version (void) |
Get the CD BIOS version. More... | |
void | pce_cdb_irq_set (uint8_t type, void(*irq_handler)(void)) |
Set the IRQ handler for a given interrupt. More... | |
void | pce_cdb_irq_enable (uint8_t mask) |
Enable the specified IRQs. More... | |
void | pce_cdb_irq_disable (uint8_t mask) |
Disable the specified IRQs. More... | |
void | pce_cdb_vdc_bg_set_size (uint8_t size) |
Set the BG size to the specified value. More... | |
bool | pce_cdb_vdc_set_resolution (uint8_t clock, uint8_t width_tiles, uint8_t height_tiles) |
Set the video resolution. More... | |
void | pce_cdb_vdc_set_copy (uint8_t mode) |
Set the automatic increment for VRAM addresses to a given mode. More... | |
void | pce_cdb_vdc_set_bg_column_copy (void) |
Set the automatic increment for VRAM addresses to write one word per background column. More... | |
void | pce_cdb_vdc_set_bg_row_copy (void) |
Set the automatic increment for VRAM addresses to write one word per background row. More... | |
void | pce_cdb_wait_vblank (void) |
Wait for VBlank. More... | |
void | pce_cdb_vdc_irq_scanline_enable (void) |
Enable the scanline IRQ. More... | |
void | pce_cdb_vdc_irq_scanline_disable (void) |
Disable the scanline IRQ. More... | |
void | pce_cdb_vdc_irq_vblank_enable (void) |
Enable the veritcal blank IRQ. More... | |
void | pce_cdb_vdc_irq_vblank_disable (void) |
Disable the veritcal blank IRQ. More... | |
void | pce_cdb_vdc_bg_enable (void) |
Enable the background layer. More... | |
void | pce_cdb_vdc_bg_disable (void) |
Disable the background layer. More... | |
void | pce_cdb_vdc_sprite_enable (void) |
Enable the sprite layer. More... | |
void | pce_cdb_vdc_sprite_disable (void) |
Disable the sprite layer. More... | |
void | pce_cdb_vdc_bg_sprite_enable (void) |
Enable the background and sprite layer. More... | |
void | pce_cdb_vdc_bg_sprite_disable (void) |
Disable the background and sprite layer. More... | |
void | pce_cdb_vdc_configure_dma (uint8_t value) |
Configure VRAM DMA. More... | |
void | pce_cdb_vdc_sprite_table_set_vram_addr (uint16_t address) |
Set the VRAM sprite table location. More... | |
void | pce_cdb_vdc_sprite_table_clear (void) |
Clear the VRAM sprite table. More... | |
void | pce_cdb_vdc_sprite_table_put (void) |
Put a sprite to the VRAM sprite table. More... | |
void | pce_cdb_vdc_irq_scanline_set (uint16_t line) |
Set the scanline #, on which the scanline IRQ should be emitted. More... | |
void | pce_cdb_vdc_vram_read_at (uint16_t addr) |
Set the VRAM read address. More... | |
void | pce_cdb_vdc_vram_write_at (uint16_t addr) |
Set the VRAM write address. More... | |
uint8_t | pce_cdb_bin_to_bcd (uint8_t value) |
Convert a binary number to a BCD number. More... | |
uint8_t | pce_cdb_bcd_to_bin (uint8_t value) |
Convert a BCD number to a binary number. More... | |
uint16_t | pce_cdb_mul_u8 (uint8_t a, uint8_t b) |
Perform an 8x8->16 unsigned multiplication. More... | |
int16_t | pce_cdb_mul_s8 (int8_t a, int8_t b) |
Perform an 8x8->16 signed multiplication. More... | |
uint32_t | pce_cdb_mul_u16 (uint16_t a, uint16_t b) |
Perform a 16x16->32 unsigned multiplication. More... | |
pce_cdb_divmod_u16_result_t | pce_cdb_divmod_u16 (uint16_t a, uint16_t b) |
Perform a 16/16 unsigned division/modulo. More... | |
pce_cdb_divmod_s16_result_t | pce_cdb_divmod_s16 (int16_t a, int16_t b) |
Perform a 16/16 signed division/modulo. More... | |
uint8_t | pce_cdb_sqrt (uint16_t a) |
Calculate the square root of a given value. More... | |
bool | pce_cdb_ram_query (uint8_t *bank_start, uint8_t *bank_size) |
Query for the presence of additional RAM. More... | |
void | pce_cdb_colors_bg_none (void) |
Clear the background palette RAM buffer. More... | |
void | pce_cdb_colors_bg_at (void *address, uint8_t count) |
Set the location of the background palette RAM buffer. More... | |
void | pce_cdb_colors_sprite_none (void) |
Clear the sprite palette RAM buffer. More... | |
void | pce_cdb_colors_sprite_at (void *address, uint8_t count) |
Set the location of the sprite palette RAM buffer. More... | |
bool | pce_cdb_colors_read (void) |
Queue a color transfer from the VCE to the RAM buffers. More... | |
bool | pce_cdb_colors_set (void) |
Queue a color transfer from the RAM buffers to the VCE. More... | |
Variables | |
uint8_t | address_type |
uint8_t uint16_t | address |
uint8_t uint16_t uint16_t | length |
Functionality related to the CD BIOS.
#define PCE_CDB_SPR_ATTR ((volatile uint16_t *)0x221D) |
#define PCE_CDB_SPR_ATTR_HI ((volatile uint8_t *)0x221E) |
#define PCE_CDB_SPR_ATTR_LO ((volatile uint8_t *)0x221D) |
#define PCE_CDB_SPR_INDEX ((volatile uint8_t *)0x2216) |
#define PCE_CDB_SPR_PATTERN ((volatile uint16_t *)0x221B) |
#define PCE_CDB_SPR_PATTERN_HI ((volatile uint8_t *)0x221C) |
#define PCE_CDB_SPR_PATTERN_LO ((volatile uint8_t *)0x221B) |
#define PCE_CDB_SPR_X ((volatile uint16_t *)0x2219) |
#define PCE_CDB_SPR_X_HI ((volatile uint8_t *)0x221A) |
#define PCE_CDB_SPR_X_LO ((volatile uint8_t *)0x2219) |
#define PCE_CDB_SPR_Y ((volatile uint16_t *)0x2217) |
#define PCE_CDB_SPR_Y_HI ((volatile uint8_t *)0x2218) |
#define PCE_CDB_SPR_Y_LO ((volatile uint8_t *)0x2217) |
#define PCE_CDB_SPRITE ((volatile vdc_sprite_t *)0x2217) |
#define PCE_CDB_SUBQ_PRE_EMPHASIS 0x1 |
#define PCE_CDB_SUBQ_SCMS 0x2 |
#define PCE_CDB_SUBQ_TYPE_2CH 0x0 |
#define PCE_CDB_SUBQ_TYPE_4CH 0x4 |
#define PCE_CDB_SUBQ_TYPE_DATA 0x8 |
#define PCE_CDB_SUBQ_TYPE_MASK 0xC |
#define PCE_CDB_VDC_BG_HEIGHT_32 (0 << 2) |
#define PCE_CDB_VDC_BG_HEIGHT_64 (1 << 2) |
#define PCE_CDB_VDC_BG_SIZE_128_32 (PCE_CDB_VDC_BG_WIDTH_128 | PCE_CDB_VDC_BG_HEIGHT_32) |
#define PCE_CDB_VDC_BG_SIZE_128_64 (PCE_CDB_VDC_BG_WIDTH_128 | PCE_CDB_VDC_BG_HEIGHT_64) |
#define PCE_CDB_VDC_BG_SIZE_32_32 (PCE_CDB_VDC_BG_WIDTH_32 | PCE_CDB_VDC_BG_HEIGHT_32) |
#define PCE_CDB_VDC_BG_SIZE_32_64 (PCE_CDB_VDC_BG_WIDTH_32 | PCE_CDB_VDC_BG_HEIGHT_64) |
#define PCE_CDB_VDC_BG_SIZE_64_32 (PCE_CDB_VDC_BG_WIDTH_64 | PCE_CDB_VDC_BG_HEIGHT_32) |
#define PCE_CDB_VDC_BG_SIZE_64_64 (PCE_CDB_VDC_BG_WIDTH_64 | PCE_CDB_VDC_BG_HEIGHT_64) |
#define PCE_CDB_VDC_BG_WIDTH_128 (2) |
#define PCE_CDB_VDC_BG_WIDTH_32 (0) |
#define PCE_CDB_VDC_BG_WIDTH_64 (1) |
#define PCE_CDB_VDC_CLOCK_5MHZ 0 |
#define PCE_CDB_VDC_CLOCK_7MHZ 1 |
#define PCE_CDB_VDC_COPY_1 0 |
#define PCE_CDB_VDC_COPY_128 3 |
#define PCE_CDB_VDC_COPY_32 1 |
#define PCE_CDB_VDC_COPY_64 2 |
typedef struct pce_cdb_divmod_s16_result pce_cdb_divmod_s16_result_t |
typedef struct pce_cdb_divmod_u16_result pce_cdb_divmod_u16_result_t |
typedef struct pce_cdb_subq_data pce_cdb_subq_data_t |
typedef struct pce_cdb_toc_data pce_cdb_toc_data_t |
enum pcd_cdb_irq_vector |
enum pce_cdb_address_type |
enum pce_cdb_adpcm_mode |
enum pce_cdb_error_code |
enum pce_cdb_fader_mode |
enum pce_cdb_subcode |
uint8_t pce_cdb_adpcm_continue | ( | uint8_t | mode | ) |
Continue existing ADPCM sample playback.
mode | pce_cdb_adpcm_mode |
uint8_t pce_cdb_adpcm_play | ( | uint16_t | address, |
uint16_t | length, | ||
uint8_t | divider, | ||
uint8_t | mode | ||
) |
Begin ADPCM sample playback from the ADPCM buffer.
address | The starting address in the ADPCM buffer to play from. |
length | The length, in bytes, to play. |
divider | The divider value - PCD_ADPCM_DIVIDER_HZ |
mode | pce_cdb_adpcm_mode |
uint8_t pce_cdb_adpcm_read_from_cd | ( | pce_sector_t | sector, |
uint8_t | length, | ||
uint16_t | address | ||
) |
Read ADPCM data from CD to the ADPCM buffer.
sector | The starting sector to read from. |
length | The length, in sectors, to read. |
address | The target ADPCM buffer address. |
uint8_t pce_cdb_adpcm_read_from_ram | ( | uint8_t | source_type, |
uint16_t | source, | ||
uint16_t | dest, | ||
uint16_t | length | ||
) |
Copy ADPCM data from RAM to the ADPCM buffer.
source_type | pce_cdb_address_type (only byte/bank variants). |
source | Source address. |
dest | Destination address (ADPCM buffer). |
length | Length, in bytes. |
uint8_t pce_cdb_adpcm_read_next_cd | ( | pce_sector_t | sector, |
uint8_t | length | ||
) |
Read ADPCM data from CD to the ADPCM buffer, continuing where the previous pce_cdb_adpcm_read_cd_buffer or read_next_cd_buffer command left off.
sector | The starting sector to read from. |
length | The length, in sectors, to read. |
void pce_cdb_adpcm_reset | ( | void | ) |
Reset the ADPCM controller.
uint16_t pce_cdb_adpcm_status | ( | void | ) |
Query the ADPCM status.
void pce_cdb_adpcm_stop | ( | void | ) |
Stop ADPCM playback.
uint8_t pce_cdb_adpcm_stream | ( | pce_sector_t | sector, |
pce_sector_t | length, | ||
uint8_t | divider | ||
) |
Begin ADPCM sample playback streamed from CD.
sector | The starting sector to read from. |
length | The length, in sectors, to play. |
divider | The divider value - PCD_ADPCM_DIVIDER_HZ |
uint8_t pce_cdb_adpcm_write_to_ram | ( | uint16_t | source, |
uint8_t | dest_type, | ||
uint16_t | dest, | ||
uint16_t | length | ||
) |
Copy ADPCM data from the ADPCM buffer to RAM.
source | Source address (ADPCM buffer). |
dest_type | pce_cdb_address_type (only byte/bank variants). |
dest | Destination address. |
length | Length, in bytes. |
uint8_t pce_cdb_bcd_to_bin | ( | uint8_t | value | ) |
Convert a BCD number to a binary number.
value | BCD number (0x00-0x99) |
uint8_t pce_cdb_bin_to_bcd | ( | uint8_t | value | ) |
Convert a binary number to a BCD number.
value | Binary number (0x00-0x63) |
void pce_cdb_cd_base | ( | pce_sector_t | base, |
uint8_t | mode | ||
) |
Set the starting sector, used as an offset for future BIOS calls.
The CD BIOS supports two sets of starting sectors, which can be used in case one of the CD's areas becomes too damaged to read.
base | The base sector. |
mode | The operation mode; pce_cdb_location_type , pce_cdb_base_set_mode |
uint8_t pce_cdb_cd_busy | ( | void | ) |
Check if the CD drive is busy.
uint8_t pce_cdb_cd_not_ready | ( | void | ) |
Check if the CD drive is ready.
uint8_t pce_cdb_cd_read | ( | pce_sector_t | sector, |
uint8_t | address_type, | ||
uint16_t | address, | ||
uint16_t | length | ||
) |
Read sectors from the CD drive.
sector | The starting sector to read from. |
address_type | pce_cdb_address_type |
address | The address to write to. |
length | The data length, in sectors unless otherwise specified by the address type. |
bool pce_cdb_cd_read_subcode_bits | ( | uint8_t * | buffer | ) |
Read the current CD subcode bits.
buffer | pce_cdb_subcode |
uint8_t pce_cdb_cd_read_toc_lead_out_time | ( | pce_cdb_toc_data_t * | buffer | ) |
uint8_t pce_cdb_cd_read_toc_track_count | ( | pce_cdb_toc_data_t * | buffer | ) |
uint8_t pce_cdb_cd_read_toc_track_sector | ( | pce_cdb_toc_data_t * | buffer, |
uint8_t | track_id | ||
) |
uint8_t pce_cdb_cd_read_toc_track_time | ( | pce_cdb_toc_data_t * | buffer, |
uint8_t | track_id | ||
) |
uint8_t pce_cdb_cd_reset | ( | void | ) |
Reset the CD drive.
uint8_t pce_cdb_cd_scan | ( | void | ) |
Initialize information about the currently inserted CD.
void pce_cdb_cd_seek | ( | pce_sector_t | sector | ) |
Seek the CD drive to the specified sector.
sector | The sector to seek to. |
uint8_t pce_cdb_cdda_pause | ( | void | ) |
Pause CD audio playback.
uint8_t pce_cdb_cdda_play | ( | uint8_t | start_type, |
pce_sector_t | start, | ||
uint8_t | end_type, | ||
pce_sector_t | end, | ||
uint8_t | mode | ||
) |
Play CD audio.
start_type | pce_cdb_location_type |
start | Starting location. |
end_type | pce_cdb_location_type |
end | Ending location. |
mode | pce_cdb_cdda_play_mode |
uint16_t pce_cdb_cdda_read_sample | ( | uint8_t | channel | ) |
Read the currently played CD audio sample.
channel | 0 for right channel, 1 for left channel. |
uint8_t pce_cdb_cdda_read_subcode_q | ( | pce_cdb_subq_data_t * | buffer | ) |
Read CD audio Subcode Q (timing) data.
buffer | The data buffer to store the result in. |
uint8_t pce_cdb_cdda_search | ( | pce_sector_t | sector, |
uint8_t | mode | ||
) |
Search for a CD audio track.
sector | The location to find. |
mode | The operation mode; pce_cdb_location_type , pce_cdb_cdda_search_mode |
void pce_cdb_colors_bg_at | ( | void * | address, |
uint8_t | count | ||
) |
Set the location of the background palette RAM buffer.
address | RAM buffer address. |
count | Palette count. |
void pce_cdb_colors_bg_none | ( | void | ) |
Clear the background palette RAM buffer.
bool pce_cdb_colors_read | ( | void | ) |
Queue a color transfer from the VCE to the RAM buffers.
Configure the RAM buffers and size using the remaining pce_cdb_colors methods.
bool pce_cdb_colors_set | ( | void | ) |
Queue a color transfer from the RAM buffers to the VCE.
Configure the RAM buffers and size using the remaining pce_cdb_colors methods.
void pce_cdb_colors_sprite_at | ( | void * | address, |
uint8_t | count | ||
) |
Set the location of the sprite palette RAM buffer.
address | RAM buffer address. |
count | Palette count. |
void pce_cdb_colors_sprite_none | ( | void | ) |
Clear the sprite palette RAM buffer.
pce_cdb_divmod_s16_result_t pce_cdb_divmod_s16 | ( | int16_t | a, |
int16_t | b | ||
) |
Perform a 16/16 signed division/modulo.
pce_cdb_divmod_u16_result_t pce_cdb_divmod_u16 | ( | uint16_t | a, |
uint16_t | b | ||
) |
Perform a 16/16 unsigned division/modulo.
void pce_cdb_fader | ( | uint8_t | mode | ) |
Configure the CD unit's audio fader.
mode | pce_cdb_fader_mode |
void pce_cdb_irq_disable | ( | uint8_t | mask | ) |
Disable the specified IRQs.
mask | pce_cdb_irq_vector_mask |
void pce_cdb_irq_enable | ( | uint8_t | mask | ) |
Enable the specified IRQs.
mask | pce_cdb_irq_vector_mask |
void pce_cdb_irq_set | ( | uint8_t | type, |
void(*)(void) | irq_handler | ||
) |
Set the IRQ handler for a given interrupt.
type | pce_cdb_irq_vector |
irq_handler | The function to call for the given IRQ. |
int16_t pce_cdb_mul_s8 | ( | int8_t | a, |
int8_t | b | ||
) |
Perform an 8x8->16 signed multiplication.
uint32_t pce_cdb_mul_u16 | ( | uint16_t | a, |
uint16_t | b | ||
) |
Perform a 16x16->32 unsigned multiplication.
uint16_t pce_cdb_mul_u8 | ( | uint8_t | a, |
uint8_t | b | ||
) |
Perform an 8x8->16 unsigned multiplication.
bool pce_cdb_ram_query | ( | uint8_t * | bank_start, |
uint8_t * | bank_size | ||
) |
Query for the presence of additional RAM.
bank_start | The starting bank index for additional RAM. |
bank_size |
|
uint8_t pce_cdb_sqrt | ( | uint16_t | a | ) |
Calculate the square root of a given value.
void pce_cdb_vdc_bg_disable | ( | void | ) |
Disable the background layer.
void pce_cdb_vdc_bg_enable | ( | void | ) |
Enable the background layer.
void pce_cdb_vdc_bg_set_size | ( | uint8_t | size | ) |
Set the BG size to the specified value.
size | BG size. |
void pce_cdb_vdc_bg_sprite_disable | ( | void | ) |
Disable the background and sprite layer.
void pce_cdb_vdc_bg_sprite_enable | ( | void | ) |
Enable the background and sprite layer.
void pce_cdb_vdc_configure_dma | ( | uint8_t | value | ) |
Configure VRAM DMA.
value | VRAM DMA flags. pce_cdb_vdc_vram_dma_flags |
void pce_cdb_vdc_irq_scanline_disable | ( | void | ) |
Disable the scanline IRQ.
void pce_cdb_vdc_irq_scanline_enable | ( | void | ) |
Enable the scanline IRQ.
void pce_cdb_vdc_irq_scanline_set | ( | uint16_t | line | ) |
Set the scanline #, on which the scanline IRQ should be emitted.
line | Scanline #. |
void pce_cdb_vdc_irq_vblank_disable | ( | void | ) |
Disable the veritcal blank IRQ.
void pce_cdb_vdc_irq_vblank_enable | ( | void | ) |
Enable the veritcal blank IRQ.
void pce_cdb_vdc_set_bg_column_copy | ( | void | ) |
Set the automatic increment for VRAM addresses to write one word per background column.
void pce_cdb_vdc_set_bg_row_copy | ( | void | ) |
Set the automatic increment for VRAM addresses to write one word per background row.
void pce_cdb_vdc_set_copy | ( | uint8_t | mode | ) |
Set the automatic increment for VRAM addresses to a given mode.
mode | The copying mode to set. |
bool pce_cdb_vdc_set_resolution | ( | uint8_t | clock, |
uint8_t | width_tiles, | ||
uint8_t | height_tiles | ||
) |
Set the video resolution.
clock | 0 for 5MHz, 1 for 7MHz |
width_tiles | Width, in tiles. |
height_tiles | Height, in tiles. |
void pce_cdb_vdc_sprite_disable | ( | void | ) |
Disable the sprite layer.
void pce_cdb_vdc_sprite_enable | ( | void | ) |
Enable the sprite layer.
void pce_cdb_vdc_sprite_table_clear | ( | void | ) |
Clear the VRAM sprite table.
void pce_cdb_vdc_sprite_table_put | ( | void | ) |
Put a sprite to the VRAM sprite table.
void pce_cdb_vdc_sprite_table_set_vram_addr | ( | uint16_t | address | ) |
Set the VRAM sprite table location.
address | Sprite table location, in VRAM. |
void pce_cdb_vdc_vram_read_at | ( | uint16_t | addr | ) |
Set the VRAM read address.
addr | Address in VRAM. |
void pce_cdb_vdc_vram_write_at | ( | uint16_t | addr | ) |
Set the VRAM write address.
addr | Address in VRAM. |
uint16_t pce_cdb_version | ( | void | ) |
Get the CD BIOS version.
bool pce_cdb_vram_in_use | ( | void | ) |
Check if VRAM is currently in use by a CD BIOS command.
void pce_cdb_wait_vblank | ( | void | ) |
Wait for VBlank.
uint8_t uint16_t address |
uint8_t address_type |
uint8_t uint16_t uint16_t length |