void GenerateInstruction(uint opcode, string param) { OpcodeParamResult p1 = this.ParseParam(param); opcode |= ((uint)p1.Param << 10) & 0xFC00; this.machineCode.Add((ushort)opcode); if (p1.NextWord) { if (p1.LabelName.Length > 0) { this.labelReferences.Add((ushort)this.machineCode.Count, p1.LabelName); } this.machineCode.Add(p1.NextWordValue); } }