static void WriteInstruction(FileStream fo, ref UInt16 pc, instruction_t inst) { byte[] buf = {inst.opcode, (byte)((inst.operand & 0xFF00) >> 8), (byte)(inst.operand & 0xFF)}; fo.Write(buf, 0, 3); pc += 3; }
static void WriteInstruction(FileStream fo, ref UInt16 pc, instruction_t inst) { byte[] buf = { inst.opcode, (byte)((inst.operand & 0xFF00) >> 8), (byte)(inst.operand & 0xFF) }; fo.Write(buf, 0, 3); pc += 3; }