Future<void> setRom(NesRom rom) async { try { var buffer = await rom._buffer; await _portCall("setRom", data: buffer); } catch (e) { print(e); } }