GD.c
// write sprite control lines, 32 bits, mostly used for single line, fixed address writing
write sprite control lines, 32 bits, mostly used for single line, fixed address writing
write sprite control lines 32 bits mostly used for single line fixed address writing
void vis_gd_sprite(int spr, int x, int y, byte image, byte palette, byte rot, byte jk)
{
  vis_gd_wstart(RAM_SPR + (spr << 2));
  vis_spi_transfer(lowByte(x));
  vis_spi_transfer((palette << 4) | (rot << 1) | (highByte(x) & 1));
  vis_spi_transfer(lowByte(y));
  vis_spi_transfer((jk << 7) | (image << 1) | (highByte(y) & 1));
  vis_gd_end();
}
void vis_gd_sprite ( int spr , int x , int y , byte image , byte palette , byte rot , byte jk ) { vis_gd_wstart ( RAM_SPR + ( spr << 2 ) ) ; vis_spi_transfer ( lowByte ( x ) ) ; vis_spi_transfer ( ( palette << 4 ) | ( rot << 1 ) | ( highByte ( x ) & 1 ) ) ; vis_spi_transfer ( lowByte ( y ) ) ; vis_spi_transfer ( ( jk << 7 ) | ( image << 1 ) | ( highByte ( y ) & 1 ) ) ; vis_gd_end ( ) ; }
write sprite control lines, 32 bits, mostly used for single line, fixed address writing
write sprite control lines 32 bits mostly used for single line fixed address writing