1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-22 21:29:50 +00:00

2BPP demo started.

This commit is contained in:
FlightControl 2021-01-13 19:41:12 +01:00
parent 598b5b81d2
commit bdfb6a21eb

View File

@ -34,11 +34,34 @@ void main() {
0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,
0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
byte map[16] = {0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x02,0x00,0x02,0x00,0x03,0x00,0x03,0x00};
memcpy_to_vram(1, 0x4000, tile, 64);
memcpy_to_vram(1, 0x0000, map, 16);
tilebase = 0;
dword mapbase = ver_get_vera_layer_mapbase_address(0);
for(byte y:0..15) {
tilerow = tilebase;
for(byte r:0..3) {
tilecolumn = tilerow;
for(byte x:0..15) {
for(byte c: 0..1) {
vera_vram_address0(mapbase,VERA_INC_1);
*VERA_DATA0 = map[x];
*VERA_DATA0 = map[x];
}
byte bit = data;
tilecolumn += 8;
printf("");
}
//printf("\n");
tilerow += 1;
}
}
while(!kbhit());