Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
vic4_palette.h
Go to the documentation of this file.
1 /* A work-in-progess MEGA65 (Commodore 65 clone origins) emulator
2  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  Copyright (C)2016-2021 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef XEMU_MEGA65_VIC4_PALETTE_H_INCLUDED
20 #define XEMU_MEGA65_VIC4_PALETTE_H_INCLUDED
21 
22 // 256 entries of 4 banks + 256 entries of one extra bank for ROM palette emulation
23 #define NO_OF_PALETTE_REGS 0x500
24 
29 
30 extern Uint32 *palette; // the current used palette for video/text (points into vic_palettes)
31 extern Uint32 *spritepalette; // the current used palette for sprites (points into vic_palettes)
32 extern Uint32 *altpalette;
33 extern unsigned int palregaccofs;
34 
35 extern void vic3_write_palette_reg_red ( unsigned int num, Uint8 data );
36 extern void vic3_write_palette_reg_green ( unsigned int num, Uint8 data );
37 extern void vic3_write_palette_reg_blue ( unsigned int num, Uint8 data );
38 extern void vic4_write_palette_reg_red ( unsigned int num, Uint8 data );
39 extern void vic4_write_palette_reg_green ( unsigned int num, Uint8 data );
40 extern void vic4_write_palette_reg_blue ( unsigned int num, Uint8 data );
41 extern Uint8 vic4_read_palette_reg_red ( unsigned int num );
42 extern Uint8 vic4_read_palette_reg_green ( unsigned int num );
43 extern Uint8 vic4_read_palette_reg_blue ( unsigned int num );
44 
45 extern void vic4_init_palette ( void );
46 extern void vic4_revalidate_all_palette ( void );
47 extern void check_if_rom_palette ( int rom_pal );
48 
49 #endif
vic4_write_palette_reg_red
void vic4_write_palette_reg_red(unsigned int num, Uint8 data)
Definition: vic4_palette.c:126
vic_palette_bytes_red
Uint8 vic_palette_bytes_red[NO_OF_PALETTE_REGS]
Definition: vic4_palette.c:29
vic_palette_bytes_green
Uint8 vic_palette_bytes_green[NO_OF_PALETTE_REGS]
Definition: vic4_palette.c:30
vic4_read_palette_reg_green
Uint8 vic4_read_palette_reg_green(unsigned int num)
Definition: vic4_palette.c:182
vic_palette_bytes_blue
Uint8 vic_palette_bytes_blue[NO_OF_PALETTE_REGS]
Definition: vic4_palette.c:31
NO_OF_PALETTE_REGS
#define NO_OF_PALETTE_REGS
Definition: vic4_palette.h:23
vic4_read_palette_reg_blue
Uint8 vic4_read_palette_reg_blue(unsigned int num)
Definition: vic4_palette.c:187
vic4_write_palette_reg_blue
void vic4_write_palette_reg_blue(unsigned int num, Uint8 data)
Definition: vic4_palette.c:148
vic4_init_palette
void vic4_init_palette(void)
Definition: vic4_palette.c:62
palregaccofs
unsigned int palregaccofs
Definition: vic4_palette.c:42
vic3_write_palette_reg_red
void vic3_write_palette_reg_red(unsigned int num, Uint8 data)
Definition: vic4_palette.c:159
m65-memcontent-generator.data
data
Definition: m65-memcontent-generator.py:119
Uint32
uint32_t Uint32
Definition: fat32.c:49
altpalette
Uint32 * altpalette
Definition: vic4_palette.c:35
Uint8
uint8_t Uint8
Definition: fat32.c:51
vic_palettes
Uint32 vic_palettes[NO_OF_PALETTE_REGS]
Definition: vic4_palette.c:32
vic4_revalidate_all_palette
void vic4_revalidate_all_palette(void)
Definition: vic4_palette.c:51
spritepalette
Uint32 * spritepalette
Definition: vic4_palette.c:34
vic3_write_palette_reg_blue
void vic3_write_palette_reg_blue(unsigned int num, Uint8 data)
Definition: vic4_palette.c:171
vic4_read_palette_reg_red
Uint8 vic4_read_palette_reg_red(unsigned int num)
Definition: vic4_palette.c:177
check_if_rom_palette
void check_if_rom_palette(int rom_pal)
Definition: vic4_palette.c:192
vic3_write_palette_reg_green
void vic3_write_palette_reg_green(unsigned int num, Uint8 data)
Definition: vic4_palette.c:165
palette
Uint32 * palette
Definition: vic4_palette.c:33
vic4_write_palette_reg_green
void vic4_write_palette_reg_green(unsigned int num, Uint8 data)
Definition: vic4_palette.c:137