9 std::array<uint8_t, 16>& sheet_ids) {
86 for (
int i = 0; i < 0x2000; ++i) {
89 int tilemap_offset = 0;
92 for (
int tile_index = 0; tile_index < 512; tile_index++) {
95 std::cout <<
"Tile ID: " << std::hex << tile_id << std::endl;
97 int sheet_number = tile_id / 32;
98 std::cout <<
"Sheet number: " << std::hex << sheet_number << std::endl;
100 int row = tile_id / 8;
101 int column = tile_id % 8;
106 auto sheet =
rom()->mutable_gfx_sheets()->at(
vram_.
sheets[sheet_number]);
109 sheet.Get8x8Tile(tile_id, x, y,
tilemap_, tilemap_offset);
void WriteLong(uint32_t address, uint32_t value)
void PushLong(uint32_t value)
uint8_t ReadByte(uint32_t address)
void SetIndexSize(bool set)
void SetAccumulatorSize(bool set)
void ExecuteInstruction(uint8_t opcode)
uint16_t ReadWord(uint32_t address) const override
void Initialize(const std::vector< uint8_t > &romData, bool verbose=false)
void Create(int width, int height, int depth, const std::vector< uint8_t > &data)
Creates a bitmap object with the provided graphical data.
void LoadObject(uint32_t routine_ptr, std::array< uint8_t, 16 > &sheet_ids)
void UpdateObjectBitmap()
std::vector< uint8_t > rom_data_
void RenderObject(uint32_t routine_ptr)
emu::memory::MemoryImpl memory_
std::vector< uint8_t > tilemap_
std::array< uint8_t, 16 > sheets