#if 1
RGB_COLOR( 0, 90,156), RGB_COLOR( 0, 0, 0), RGB_COLOR( 58,148,255), RGB_COLOR( 0, 0,255),
RGB_COLOR( 16,214, 0), RGB_COLOR( 66,255, 16), RGB_COLOR(123,230,197), RGB_COLOR( 0,173, 0),
#if 1
RGB_COLOR( 0, 90,156), RGB_COLOR( 0, 0, 0), RGB_COLOR( 58,148,255), RGB_COLOR( 0, 0,255),
RGB_COLOR( 16,214, 0), RGB_COLOR( 66,255, 16), RGB_COLOR(123,230,197), RGB_COLOR( 0,173, 0),
-static const uint8 color_pair0[16] = {0x0, 0xf, 0xc, 0xd, 0xa, 0xb, 0x8, 0x9, 0x6, 0x7, 0x4, 0x5, 0x2, 0x3, 0x1, 0x1};
-static const uint8 color_pair1[16] = {0x0, 0x1, 0x8, 0xb, 0x2, 0x3, 0xa, 0x9, 0x4, 0x5, 0xc, 0xd, 0x6, 0x7, 0xe, 0xf};
+static const uint8_t color_pair0[16] = {0x0, 0xf, 0xc, 0xd, 0xa, 0xb, 0x8, 0x9, 0x6, 0x7, 0x4, 0x5, 0x2, 0x3, 0x1, 0x1};
+static const uint8_t color_pair1[16] = {0x0, 0x1, 0x8, 0xb, 0x2, 0x3, 0xa, 0x9, 0x4, 0x5, 0xc, 0xd, 0x6, 0x7, 0xe, 0xf};
-static const uint8 color_pair0[16] = {0xe, 0xf, 0xc, 0xd, 0xa, 0xb, 0x8, 0x9, 0x6, 0x7, 0x4, 0x5, 0x2, 0x3, 0x0, 0x1};
-static const uint8 color_pair1[16] = {0x0, 0x1, 0x8, 0x9, 0x2, 0x3, 0xa, 0xb, 0x4, 0x5, 0xc, 0xd, 0x6, 0x7, 0xe, 0xf};
+static const uint8_t color_pair0[16] = {0xe, 0xf, 0xc, 0xd, 0xa, 0xb, 0x8, 0x9, 0x6, 0x7, 0x4, 0x5, 0x2, 0x3, 0x0, 0x1};
+static const uint8_t color_pair1[16] = {0x0, 0x1, 0x8, 0x9, 0x2, 0x3, 0xa, 0xb, 0x4, 0x5, 0xc, 0xd, 0x6, 0x7, 0xe, 0xf};
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x02,0x7a,0x84,0x84,0x7a,0x00,0x00},
{0x00,0x3c,0x42,0x7c,0x42,0x7c,0x40,0x40},{0x00,0x62,0x94,0x08,0x08,0x08,0x00,0x00},
{0x00,0xfc,0x50,0x50,0x52,0x8c,0x00,0x00},{0xfe,0x82,0x60,0x10,0x60,0x82,0xfe,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x02,0x7a,0x84,0x84,0x7a,0x00,0x00},
{0x00,0x3c,0x42,0x7c,0x42,0x7c,0x40,0x40},{0x00,0x62,0x94,0x08,0x08,0x08,0x00,0x00},
{0x00,0xfc,0x50,0x50,0x52,0x8c,0x00,0x00},{0xfe,0x82,0x60,0x10,0x60,0x82,0xfe,0x00},
for(int i = 0, c = 0x20, p = 0; i < 3; i++, c += 32) {
for(int j = 0; j < 16; j++) {
for(int k = 0; k < 8; k += 2) {
for(int i = 0, c = 0x20, p = 0; i < 3; i++, c += 32) {
for(int j = 0; j < 16; j++) {
for(int k = 0; k < 8; k += 2) {
- uint8 d0 = font_ptr[p++];
- uint8 d1 = font_ptr[p++];
- uint8 d2 = font_ptr[p++];
- uint8 d3 = font_ptr[p++];
+ uint8_t d0 = font_ptr[p++];
+ uint8_t d1 = font_ptr[p++];
+ uint8_t d2 = font_ptr[p++];
+ uint8_t d3 = font_ptr[p++];
draw_text(x, y, data, ct, cb);
} else if((vdc0 & 3) == 1) {
// semi graph
draw_text(x, y, data, ct, cb);
} else if((vdc0 & 3) == 1) {
// semi graph
draw_graph(x, y, data, cg);
} else if((vdc0 & 3) == 3) {
// block
draw_graph(x, y, data, cg);
} else if((vdc0 & 3) == 3) {
// block
- uint8 atb0 = vram1[0x200 + (index << 2)];
- uint8 atb1 = vram1[0x201 + (index << 2)];
- uint8 atb2 = vram1[0x202 + (index << 2)];
- uint8 atb3 = vram1[0x203 + (index << 2)];
+ uint8_t atb0 = vram1[0x200 + (index << 2)];
+ uint8_t atb1 = vram1[0x201 + (index << 2)];
+ uint8_t atb2 = vram1[0x202 + (index << 2)];
+ uint8_t atb3 = vram1[0x203 + (index << 2)];
int no1 = atb3, no2 = atb3 ^ ((conx ? 8 : 0) | (cony ? 1 : 0));
draw_sprite(dx, dy, sx, ex, sy, ey, no1, col0);
int no1 = atb3, no2 = atb3 ^ ((conx ? 8 : 0) | (cony ? 1 : 0));
draw_sprite(dx, dy, sx, ex, sy, ey, no1, col0);
-void VDP::draw_sprite(int dx, int dy, int sx, int ex, int sy, int ey, int no, uint8 col)
+void VDP::draw_sprite(int dx, int dy, int sx, int ex, int sy, int ey, int no, uint8_t col)