Cosmos/source/Indy.IL2CPU.Assembler.X86/486AndUp/CmpAndXchg.cs
Dokugogagoji_cp 429167c7bf Added (empty) Pacman project
Added some x86 assembly opcodes
2008-08-20 12:46:08 +00:00

18 lines
452 B
C#

using System;
using System.Linq;
namespace Indy.IL2CPU.Assembler.X86 {
[OpCode(0xFFFFFFFF, "cmpxchg")]
public class CmpAndXchg: Instruction {
public readonly string Destination;
public readonly string Source;
public CmpAndXchg(string aDestination, string aSource) {
Destination = aDestination;
Source = aSource;
}
public override string ToString() {
return "cmpxchg " + Destination + ", " + Source;
}
}
}