22 uint8_t staticgfx[16] = {0};
31 staticgfx[8] = 115 + 0;
33 staticgfx[10] = 115 + 6;
34 staticgfx[11] = 115 + 7;
44 uint8_t* allgfxData =
nullptr;
45 for (
int i = 0; i < 16; i++) {
46 for (
int j = 0; j < 2048; j++) {
47 uint8_t mapByte = allgfxData[j + (staticgfx[i] * 2048)];
57 currentmapgfx8Data[(i * 2048) + j] = mapByte;
64 (
rom_[0x138C + 3] << 16) + (
rom_[0x1383 + 3] << 8) +
rom_[0x137A + 3];
66 for (
int i = 0; i < 1024; i++) {
73 while ((
rom_[pos] & 0x80) != 0x80) {
77 bool increment64 = (length & 0x8000) == 0x8000;
78 bool fixsource = (length & 0x4000) == 0x4000;
81 length = (short)((length & 0x07FF));
86 while (j < (length / 2) + 1) {
87 uint16_t tiledata = (uint16_t)pos;
88 if (dest_addr >= 0x1000) {
90 if (dest_addr < 0x2000) {
94 if (dest_addr < 0x1000) {
void Create(int width, int height, int depth, std::span< uint8_t > data)
Create a bitmap with the given dimensions and data.
std::vector< uint8_t > & mutable_data()
uint16_t tilesBG2Buffer[0x1000]
gfx::Bitmap tilesBG2Bitmap
gfx::Bitmap tilesBG1Bitmap
uint16_t tilesBG1Buffer[0x1000]
Main namespace for the application.
uint32_t SnesToPc(uint32_t addr) noexcept