mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
30 lines
916 B
C#
30 lines
916 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() {
|
|
// Implicit: Write out DebugStub.WriteALToComPort
|
|
//Label = "WriteALToComPort";
|
|
|
|
//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)
|
|
|
|
// Return is implicit
|
|
//Return();
|
|
}
|
|
}
|
|
}
|
|
}
|