struct BSMemoryCartridge { BSMemoryCartridge(const uint8_t* data, uint size); string markup; }; BSMemoryCartridge::BSMemoryCartridge(const uint8_t* data, uint size) { markup.append("board\n"); markup.append(" rom type=flash name=program.rom size=0x", hex(size), "\n"); }