mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +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 WriteALToComPort : CodeBlock {
|
||||
// Input AL
|
||||
// Input: AL
|
||||
// Output: None
|
||||
// Modifies: EAX, EDX, ESI
|
||||
public override void Assemble() {
|
||||
//TODO: Make a data point to put this in instead of using stack
|
||||
EAX.Push();
|
||||
ESI = ESP;
|
||||
Call("WriteByteToComPort");
|
||||
|
|
@ -27,7 +26,7 @@ namespace Cosmos.Compiler.DebugStub {
|
|||
ESI = xBase;
|
||||
// TODO: X# upgrade this
|
||||
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;
|
||||
Memory[ESI, 8] = AL; // Colour
|
||||
ESI++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue