mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-30 21:00:30 +00:00
18 lines
446 B
C#
18 lines
446 B
C#
using System;
|
|
using System.Linq;
|
|
|
|
namespace Indy.IL2CPU.Assembler.X86 {
|
|
[OpCode(0xFFFFFFFF, "cmpxchg")]
|
|
public class CmpXchg: Instruction {
|
|
public readonly string Destination;
|
|
public readonly string Source;
|
|
public CmpXchg(string aDestination, string aSource) {
|
|
Destination = aDestination;
|
|
Source = aSource;
|
|
}
|
|
|
|
public override string ToString() {
|
|
return "cmpxchg " + Destination + ", " + Source;
|
|
}
|
|
}
|
|
}
|