mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
This commit is contained in:
parent
be1bddb23a
commit
2e00f427cd
1 changed files with 2 additions and 3 deletions
|
|
@ -8,11 +8,10 @@ namespace Cosmos.Compiler.DebugStub {
|
||||||
public class DebugStub : CodeGroup {
|
public class DebugStub : CodeGroup {
|
||||||
|
|
||||||
public class WriteALToComPort : CodeBlock {
|
public class WriteALToComPort : CodeBlock {
|
||||||
// Input AL
|
// Input: AL
|
||||||
// Output: None
|
// Output: None
|
||||||
// Modifies: EAX, EDX, ESI
|
// Modifies: EAX, EDX, ESI
|
||||||
public override void Assemble() {
|
public override void Assemble() {
|
||||||
//TODO: Make a data point to put this in instead of using stack
|
|
||||||
EAX.Push();
|
EAX.Push();
|
||||||
ESI = ESP;
|
ESI = ESP;
|
||||||
Call("WriteByteToComPort");
|
Call("WriteByteToComPort");
|
||||||
|
|
@ -27,7 +26,7 @@ namespace Cosmos.Compiler.DebugStub {
|
||||||
ESI = xBase;
|
ESI = xBase;
|
||||||
// TODO: X# upgrade this
|
// TODO: X# upgrade this
|
||||||
Label = "DebugStub_Cls_More";
|
Label = "DebugStub_Cls_More";
|
||||||
//TODO: Fix to direct memory write after
|
//TODO: Fix to direct memory write after we fix the X# bug with Memory[ESI, 8] = 0x0A;
|
||||||
AL = 0x0A;
|
AL = 0x0A;
|
||||||
Memory[ESI, 8] = AL; // Colour
|
Memory[ESI, 8] = AL; // Colour
|
||||||
ESI++;
|
ESI++;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue