41#if defined(__c64__) || defined(__c64reu__) || defined(__c128__)
177 colorTransparency = _flags & 0x000f;
184 for (
int i=0; i<colorUsed; ++i ) {
185 if ( palette[i].index == colorTransparency )
continue;
187 for (
int y=0; y<y_slots; ++y ) {
188 for (
int x=0; x<x_slots; ++x ) {
239 outline1(
"LDA #$%2.2x", ( (y_slots-1) & 0x03 ) | ( ( (x_slots-1) & 0x03 ) << 2 ) | ( ( (c_slots-1) & 0x07 ) << 4 ) | ( ( _flags &
SPRITE_FLAG_MULTICOLOR ) ? 0x80 : 0x00) );
void cpu_inc(Environment *_environment, char *_variable)
void cpu_move_8bit(Environment *_environment, char *_source, char *_destination)
CPU 6309: emit code to move 8 bit
Variable * variable_retrieve(Environment *_environment, char *_name)
Variable * variable_retrieve_or_define(Environment *_environment, char *_name, VariableType _type, int _value)
Variable * variable_temporary(Environment *_environment, VariableType _type, char *_meaning)
Define a temporary variable.
char * address_displacement(Environment *_environment, char *_address, char *_displacement)
Variable * msprite_init(Environment *_environment, char *_image, char *_sprite, int _flags)
Emit code for SPRITE(...).
Variable * sprite_converter(Environment *_environment, char *_data, int _width, int _height, int _depth, RGBi *_color, int _flags, int _slot_x, int _slot_y)
struct _RGBi RGBi
Structure to store color components (red, green and blue).
#define SPRITE_FLAG_TRANSPARENCY_COLOR
struct _Variable Variable
Structure of a single variable.
#define SPRITE_FLAG_MULTICOLOR
struct _Environment Environment
Structure of compilation environment.
#define CRITICAL_CANNOT_MIX_SPRITES_MSPRITES()
int vic2_palette_extract(Environment *_environment, char *_data, int _width, int _height, int _depth, int _flags, RGBi *_palette)
void vic2_sprite_data_from(Environment *_environment, char *_sprite, char *_image)