Cosmos/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs
kudzu_cp 853c416a92
2010-08-10 23:41:38 +00:00

24 lines
706 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cosmos.Compiler.XSharp;
namespace Cosmos.Compiler.DebugStub {
public class DebugStub : CodeGroup {
// Input AL
// Output: None
// Modifies: EAX, EDX, ESI
public class WriteALToComPort : CodeBlock {
// inherited .Call()
public override void Assemble() {
//TODO: Make a data point to put this in instead of using stack
EAX.Push();
ESI = ESP;
Call("WriteByteToComPort");
EAX.Pop(); // Is a local, cant use Return(4)
}
}
}
}