Add default SGB border

This commit is contained in:
Lior Halphon 2018-11-16 17:22:57 +02:00
parent 398148f7ea
commit 69ac36cca1
3 changed files with 694 additions and 0 deletions

View File

@ -650,6 +650,7 @@ void GB_reset(GB_gameboy_t *gb)
}
memset(gb->sgb, 0, sizeof(*gb->sgb));
gb->sgb->player_count = 1;
GB_sgb_load_default_border(gb);
}
else {

View File

@ -269,3 +269,695 @@ void GB_sgb_render(GB_gameboy_t *gb)
}
}
}
void GB_sgb_load_default_border(GB_gameboy_t *gb)
{
static const uint16_t palette[] = {
0x5273, 0x14A5, 0x043C, 0x2529, 0x35AD, 0x2954, 0x739C, 0x5AD5,
0x41A8, 0x3D44, 0x4100, 0x20E7, 0x358C, 0x3DCE, 0x4A31, 0x1C75};
static const uint16_t tilemap[] = {
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1001, 0x1002, 0x1003, 0x1003, 0x1003, 0x1003, 0x1003,
0x1003, 0x1003, 0x1003, 0x1003, 0x1003, 0x1003, 0x1003, 0x1003,
0x1003, 0x1003, 0x1003, 0x1003, 0x1003, 0x1003, 0x1003, 0x1003,
0x1003, 0x1003, 0x1003, 0x1003, 0x1003, 0x5002, 0x5001, 0x1000,
0x1000, 0x1004, 0x1005, 0x1005, 0x1005, 0x1006, 0x1007, 0x1008,
0x1009, 0x100A, 0x100B, 0x100C, 0x100D, 0x100E, 0x100F, 0x1010,
0x1011, 0x1012, 0x1013, 0x1014, 0x1015, 0x1016, 0x1017, 0x1018,
0x1019, 0x101A, 0x101B, 0x1005, 0x1005, 0x1005, 0x5004, 0x1000,
0x1000, 0x101C, 0x101D, 0x101D, 0x101D, 0x101E, 0x101F, 0x1020,
0x1021, 0x1022, 0x1023, 0x1024, 0x1025, 0x1026, 0x1027, 0x1028,
0x1029, 0x102A, 0x102B, 0x102C, 0x102D, 0x102E, 0x102F, 0x1030,
0x1031, 0x1032, 0x1033, 0x101D, 0x101D, 0x101D, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1036, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1037, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0xC01C, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0x1038, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0x1039, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x1034, 0x103A, 0x1000,
0x1000, 0x101C, 0x1034, 0x1034, 0x1034, 0x1035, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0xC035, 0x1034, 0x1034, 0x103B, 0x103C, 0x1000,
0x1000, 0x5038, 0x1034, 0x1034, 0x1034, 0x103D, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x503D, 0x1034, 0x103E, 0x103F, 0x1000, 0x1000,
0x1000, 0x1040, 0x1041, 0x1034, 0x1034, 0x1042, 0x1043, 0x1044,
0x1044, 0x1044, 0x1044, 0x1044, 0x1044, 0x1044, 0x1044, 0x1044,
0x1044, 0x1044, 0x1044, 0x1044, 0x1044, 0x1044, 0x1044, 0x1044,
0x1044, 0x1045, 0x1046, 0x1047, 0x1048, 0x1000, 0x1000, 0x1000,
0x1000, 0x1049, 0x104A, 0x104B, 0x104B, 0x104B, 0x104B, 0x104B,
0x104B, 0x104B, 0x104B, 0x104B, 0x104B, 0x104B, 0x104B, 0x104B,
0x104B, 0x104B, 0x104B, 0x104B, 0x104B, 0x104B, 0x104B, 0x104B,
0x104B, 0x104C, 0x104D, 0x104E, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x104F, 0x1050,
0x1051, 0x1052, 0x1053, 0x1054, 0x1055, 0x1056, 0x1057, 0x1058,
0x1059, 0x105A, 0x105B, 0x105C, 0x105D, 0x105E, 0x105F, 0x1060,
0x1061, 0x1062, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1063, 0x1064,
0x1065, 0x1066, 0x1067, 0x1068, 0x1069, 0x106A, 0x106B, 0x106C,
0x106D, 0x106E, 0x106F, 0x1070, 0x1071, 0x1072, 0x1073, 0x1074,
0x1075, 0x1076, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1077, 0x1078,
0x1079, 0x107A, 0x107B, 0x107C, 0x107D, 0x107E, 0x107F, 0x1080,
0x1081, 0x1082, 0x1083, 0x1084, 0x1085, 0x1086, 0x1087, 0x1088,
0x1089, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
};
const uint8_t tiles[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x01, 0x02, 0x05, 0x01, 0x0F, 0x07,
0x1E, 0x0E, 0x1D, 0x3D, 0x1B, 0x1B, 0x37, 0x77,
0x00, 0x00, 0x03, 0x03, 0x06, 0x06, 0x08, 0x0B,
0x11, 0x16, 0x22, 0x28, 0x24, 0x39, 0x48, 0x73,
0x3F, 0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0x00,
0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xFF, 0xFF, 0xFA, 0xF9, 0x01, 0xFF,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0x81, 0x00, 0xFF, 0x07, 0xC7, 0xFF, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFE, 0xE4, 0xEF, 0xCC, 0xFC, 0xC0, 0xC0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x3F, 0x1F, 0xF8, 0xFC, 0x00, 0xC0, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x90, 0xF0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF0, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
0x01, 0x00, 0x03, 0x01, 0x03, 0x01, 0x03, 0x03,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
0x01, 0x00, 0x03, 0x01, 0x03, 0x01, 0x03, 0x03,
0x0F, 0x16, 0x3F, 0x1D, 0x7F, 0xF0, 0xE9, 0xE7,
0xD3, 0xCB, 0xE7, 0x93, 0xC6, 0x02, 0x87, 0x40,
0x1F, 0x16, 0x3F, 0x1D, 0xFF, 0xF6, 0xFF, 0xEF,
0xFB, 0xDB, 0xF7, 0xF3, 0xC7, 0x42, 0xC7, 0xC1,
0x00, 0x00, 0x80, 0x00, 0x80, 0x40, 0xC0, 0x00,
0xC0, 0x00, 0x80, 0x40, 0xB0, 0x01, 0x31, 0xE9,
0x00, 0x00, 0x80, 0x00, 0xC0, 0x40, 0xC0, 0x40,
0xC0, 0x40, 0xC0, 0xC0, 0xB1, 0x81, 0xF9, 0xE9,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x84, 0x85, 0xC6, 0xCE, 0x87,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x84, 0x84, 0xC7, 0xC6, 0xCF, 0xC7,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xC1, 0x80, 0xE3, 0x41,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xC1, 0x80, 0xE3, 0xC1,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x02, 0x03, 0xC3, 0xE3, 0xC7, 0xF7, 0x23,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x02, 0xC3, 0xC3, 0xE7, 0xC7, 0xF7, 0x63,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x80, 0x80, 0x40, 0xF0, 0x20, 0xF0, 0xF8,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x80, 0xC0, 0xC0, 0xF0, 0xA0, 0xF8, 0xF8,
0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0x00, 0x07,
0x01, 0x1E, 0x11, 0x0E, 0x00, 0x0E, 0x00, 0x1F,
0x00, 0x00, 0x01, 0x01, 0x00, 0x07, 0x00, 0x0F,
0x10, 0x1F, 0x11, 0x1F, 0x00, 0x1F, 0x10, 0x1F,
0x00, 0x00, 0x00, 0x10, 0x08, 0xF4, 0x00, 0xF8,
0x24, 0x12, 0x98, 0x64, 0x00, 0x00, 0x80, 0x40,
0x00, 0x00, 0x10, 0xF0, 0x04, 0xFC, 0x00, 0xFC,
0x06, 0xFE, 0xFC, 0xFC, 0x00, 0x00, 0x40, 0xC0,
0x00, 0x00, 0x00, 0x07, 0x00, 0x07, 0x00, 0x1F,
0x10, 0x0F, 0x00, 0x1F, 0x00, 0x7B, 0x4C, 0x33,
0x00, 0x00, 0x07, 0x07, 0x00, 0x0F, 0x10, 0x1F,
0x00, 0x1F, 0x00, 0x3F, 0x40, 0x7F, 0x04, 0x7F,
0x00, 0x00, 0x00, 0x01, 0x82, 0x01, 0x00, 0x41,
0x80, 0x41, 0x82, 0x41, 0x40, 0x83, 0x00, 0x87,
0x00, 0x00, 0x01, 0x01, 0x82, 0x83, 0x40, 0xC3,
0x40, 0xC3, 0x40, 0xC3, 0x40, 0xC3, 0x44, 0xC7,
0x00, 0x00, 0x00, 0xF0, 0x10, 0xE0, 0x18, 0xE0,
0x08, 0xF0, 0x00, 0xF0, 0x40, 0xB4, 0x49, 0xB4,
0x00, 0x00, 0xF0, 0xF0, 0x00, 0xF0, 0x08, 0xF8,
0x08, 0xF8, 0x08, 0xF8, 0x04, 0xFD, 0x04, 0xFD,
0x00, 0x00, 0x00, 0x3E, 0x40, 0x3F, 0x43, 0x3C,
0x83, 0x7C, 0x80, 0x7D, 0x20, 0xDD, 0x02, 0xDD,
0x00, 0x00, 0x3E, 0x3E, 0x41, 0x7F, 0x01, 0x7F,
0x81, 0xFF, 0x01, 0xFF, 0x03, 0xFD, 0x03, 0xFF,
0x00, 0x00, 0x00, 0x3F, 0x40, 0x3F, 0x00, 0x3F,
0x07, 0x38, 0x47, 0x30, 0x00, 0x74, 0x08, 0xF0,
0x00, 0x00, 0x3F, 0x3F, 0x40, 0x7F, 0x00, 0x7F,
0x00, 0x7F, 0x07, 0x7F, 0x0C, 0x7C, 0x80, 0xFF,
0x00, 0x00, 0x00, 0xE7, 0x24, 0xD3, 0x30, 0xC7,
0xC0, 0x1F, 0xE8, 0x17, 0x01, 0x06, 0x49, 0x06,
0x00, 0x00, 0xE7, 0xE7, 0x10, 0xF7, 0x10, 0xF7,
0x18, 0xFF, 0xF8, 0xFF, 0x00, 0x0F, 0x40, 0xCF,
0x00, 0x00, 0x00, 0xF0, 0x00, 0xF8, 0x02, 0xFC,
0xE0, 0x1F, 0x81, 0x6E, 0x83, 0x0C, 0x07, 0x18,
0x00, 0x00, 0xF0, 0xF0, 0x00, 0xFC, 0x00, 0xFE,
0x01, 0xFF, 0xE1, 0xFF, 0x81, 0x9F, 0x03, 0xFF,
0x00, 0x00, 0x00, 0x01, 0x00, 0x0B, 0x18, 0x07,
0x01, 0x3E, 0x21, 0x1C, 0x02, 0x39, 0x4C, 0x32,
0x00, 0x00, 0x01, 0x01, 0x08, 0x0F, 0x10, 0x1F,
0x20, 0x3F, 0x01, 0x3F, 0x03, 0x7F, 0x06, 0x7E,
0x00, 0x00, 0x20, 0x10, 0x0C, 0xF0, 0x00, 0xFC,
0xE1, 0x1E, 0x81, 0x6E, 0x09, 0x06, 0x00, 0x07,
0x00, 0x00, 0x30, 0xF0, 0x04, 0xFC, 0x00, 0xFE,
0x01, 0xFF, 0xE0, 0xFF, 0x00, 0x0F, 0x00, 0x0F,
0x00, 0x00, 0x00, 0xF8, 0x08, 0xF0, 0x04, 0x38,
0x00, 0x78, 0x25, 0x9A, 0x00, 0xBD, 0x90, 0x0F,
0x00, 0x00, 0xF8, 0xF8, 0x80, 0xF8, 0x04, 0x7C,
0x40, 0x7C, 0x83, 0xBF, 0xA0, 0xBF, 0x80, 0x9F,
0x00, 0x00, 0x00, 0x3E, 0x00, 0x7E, 0x42, 0x38,
0x04, 0x72, 0x18, 0xE4, 0x30, 0xC8, 0x60, 0x90,
0x00, 0x00, 0x3E, 0x3E, 0x42, 0x7E, 0x06, 0x7E,
0x06, 0xFE, 0x0C, 0xFC, 0x18, 0xF8, 0x30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1E, 0x00, 0x0E,
0x03, 0x5C, 0x82, 0x7D, 0x0E, 0xF0, 0x2C, 0xC0,
0x00, 0x0F, 0x00, 0x0F, 0x10, 0x1F, 0x01, 0x1F,
0x41, 0x7F, 0x03, 0xFF, 0x06, 0xFE, 0x0C, 0xFC,
0x90, 0x0F, 0x80, 0x0F, 0x89, 0x06, 0x00, 0x8E,
0x00, 0x9E, 0x11, 0x0E, 0x01, 0x0E, 0x13, 0x0C,
0x90, 0x9F, 0x80, 0x8F, 0x80, 0x8F, 0x80, 0x8F,
0x91, 0x9F, 0x11, 0x1F, 0x01, 0x1F, 0x01, 0x1F,
0x60, 0x80, 0x40, 0x00, 0x80, 0x40, 0x00, 0x80,
0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00,
0x60, 0xE0, 0xC0, 0x40, 0xC0, 0xC0, 0x80, 0x80,
0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF8, 0x05, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFD, 0x3D, 0xF0, 0xF0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x67, 0x10, 0x01, 0x63, 0x01, 0x03, 0x03, 0x01,
0x03, 0x00, 0x03, 0x00, 0x00, 0x01, 0x00, 0x00,
0xF7, 0x74, 0x63, 0x63, 0x03, 0x03, 0x03, 0x01,
0x03, 0x00, 0x03, 0x01, 0x01, 0x01, 0x00, 0x00,
0xE7, 0x88, 0xC0, 0xA3, 0xC0, 0x00, 0x80, 0x40,
0x80, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00,
0xEF, 0xA8, 0xE3, 0xE3, 0xC0, 0x40, 0xC0, 0xC0,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00,
0xA1, 0x54, 0x00, 0xC1, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF7, 0xF5, 0xC1, 0xC1, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x40, 0xA0, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xE0, 0xE0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xD0, 0x28, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF8, 0xB8, 0x70, 0x70, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x10, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x18, 0x1F, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x67, 0x10, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF7, 0x77, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF3, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF7, 0xF7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0E, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x8E, 0x8E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x38, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x3C, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x7F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xCF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xCF, 0xCF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF8, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x04, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0E, 0x0F, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x70, 0x08, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF8, 0xF8, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
memcpy(gb->sgb->map, tilemap, sizeof(tilemap));
memcpy(gb->sgb->border_palette, palette, sizeof(palette));
/* Expend tileset */
for (unsigned tile = 0; tile < sizeof(tiles) / 32; tile++) {
for (unsigned y = 0; y < 8; y++) {
for (unsigned x = 0; x < 8; x++) {
gb->sgb->tiles[tile * 8 * 8 + y * 8 + x] =
(tiles[tile * 32 + y * 2 + 0] & (1 << (7 ^ x)) ? 1 : 0) |
(tiles[tile * 32 + y * 2 + 1] & (1 << (7 ^ x)) ? 2 : 0) |
(tiles[tile * 32 + y * 2 + 16] & (1 << (7 ^ x)) ? 4 : 0) |
(tiles[tile * 32 + y * 2 + 17] & (1 << (7 ^ x)) ? 8 : 0);
}
}
}
}

View File

@ -39,6 +39,7 @@ typedef struct {
void GB_sgb_write(GB_gameboy_t *gb, uint8_t value);
void GB_sgb_render(GB_gameboy_t *gb);
void GB_sgb_load_default_border(GB_gameboy_t *gb);
#endif