Пример #1
0
 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;
 }
Пример #2
0
 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;
 }