mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-01 22:00:44 +00:00
56 lines
1.5 KiB
C#
56 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using X86 = Indy.IL2CPU.Assembler.X86;
|
|
|
|
namespace Indy.IL2CPU.Assembler.X86.X {
|
|
public class Y86 {
|
|
public RegisterEAX EAX = RegisterEAX.Instance;
|
|
public RegisterAL AL = RegisterAL.Instance;
|
|
|
|
public RegisterDX DX = RegisterDX.Instance;
|
|
|
|
public RegisterESP ESP = RegisterESP.Instance;
|
|
|
|
public RegisterEBP EBP = RegisterEBP.Instance;
|
|
|
|
public readonly Ports Port = new Ports();
|
|
public readonly Memory Memory = new Memory();
|
|
|
|
public string Label {
|
|
set {
|
|
new Indy.IL2CPU.Assembler.Label(value);
|
|
}
|
|
}
|
|
|
|
public void Call(string aLabel) {
|
|
new X86.Call(aLabel);
|
|
}
|
|
public void Jump(string aLabel) {
|
|
new X86.Jump(aLabel);
|
|
}
|
|
public void JumpIfEqual(string aLabel) {
|
|
new X86.JumpIfEqual(aLabel);
|
|
}
|
|
public void JumpIfZero(string aLabel) {
|
|
new X86.JumpIfZero(aLabel);
|
|
}
|
|
public void JumpIfNotEqual(string aLabel) {
|
|
new X86.JumpIfNotEqual(aLabel);
|
|
}
|
|
public void PopAll32() {
|
|
new Popad();
|
|
}
|
|
public void PushAll32() {
|
|
new Pushad();
|
|
}
|
|
public void Return() {
|
|
new X86.Ret();
|
|
}
|
|
public void Return(UInt16 aBytes) {
|
|
new X86.Ret(aBytes);
|
|
}
|
|
|
|
}
|
|
}
|