mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-13 03:31:22 +00:00
This commit is contained in:
parent
39646c7f27
commit
af474aaf2d
9 changed files with 88 additions and 8 deletions
16
source2/Compiler/Cosmos.Compiler.DebugStub/CmdAsmBreak.cs
Normal file
16
source2/Compiler/Cosmos.Compiler.DebugStub/CmdAsmBreak.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Cosmos.Assembler;
|
||||
using Cosmos.Assembler.x86;
|
||||
|
||||
namespace Cosmos.Debug.DebugStub {
|
||||
public class CmdAsmBreak : Cosmos.Assembler.Code {
|
||||
|
||||
public CmdAsmBreak(Assembler.Assembler aAssembler) : base(aAssembler) {}
|
||||
|
||||
public override void Assemble() {
|
||||
new Comment("X#: Group DebugStub");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
Group DebugStub
|
||||
|
|
@ -4,9 +4,9 @@ using Cosmos.Assembler;
|
|||
using Cosmos.Assembler.x86;
|
||||
|
||||
namespace Cosmos.Debug.DebugStub {
|
||||
public class Commands : Cosmos.Assembler.Code {
|
||||
public class CmdMisc : Cosmos.Assembler.Code {
|
||||
|
||||
public Commands(Assembler.Assembler aAssembler) : base(aAssembler) {}
|
||||
public CmdMisc(Assembler.Assembler aAssembler) : base(aAssembler) {}
|
||||
|
||||
public override void Assemble() {
|
||||
new Comment("X#: Group DebugStub");
|
||||
|
|
@ -31,7 +31,8 @@ namespace Cosmos.Debug.DebugStub {
|
|||
|
||||
new Comment("Tracing.On");
|
||||
|
||||
new Comment(".TraceMode = 1");
|
||||
new Comment("X#: .TraceMode = 1");
|
||||
new Mov { DestinationRef = Cosmos.Assembler.ElementReference.New("DebugStub_TraceMode"), DestinationIsIndirect = true , SourceValue = 1 };
|
||||
|
||||
new Comment("X#: }");
|
||||
new Label("DebugStub_TraceOn_Exit");
|
||||
|
|
@ -42,7 +43,8 @@ namespace Cosmos.Debug.DebugStub {
|
|||
|
||||
new Comment("Tracing.Off");
|
||||
|
||||
new Comment(".TraceMode = 0");
|
||||
new Comment("X#: .TraceMode = 0");
|
||||
new Mov { DestinationRef = Cosmos.Assembler.ElementReference.New("DebugStub_TraceMode"), DestinationIsIndirect = true , SourceValue = 0 };
|
||||
|
||||
new Comment("X#: }");
|
||||
new Label("DebugStub_TraceOff_Exit");
|
||||
16
source2/Compiler/Cosmos.Compiler.DebugStub/CmdProcess.cs
Normal file
16
source2/Compiler/Cosmos.Compiler.DebugStub/CmdProcess.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Cosmos.Assembler;
|
||||
using Cosmos.Assembler.x86;
|
||||
|
||||
namespace Cosmos.Debug.DebugStub {
|
||||
public class CmdProcess : Cosmos.Assembler.Code {
|
||||
|
||||
public CmdProcess(Assembler.Assembler aAssembler) : base(aAssembler) {}
|
||||
|
||||
public override void Assemble() {
|
||||
new Comment("X#: Group DebugStub");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
1
source2/Compiler/Cosmos.Compiler.DebugStub/CmdProcess.xs
Normal file
1
source2/Compiler/Cosmos.Compiler.DebugStub/CmdProcess.xs
Normal file
|
|
@ -0,0 +1 @@
|
|||
Group DebugStub
|
||||
16
source2/Compiler/Cosmos.Compiler.DebugStub/CmdSend.cs
Normal file
16
source2/Compiler/Cosmos.Compiler.DebugStub/CmdSend.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Cosmos.Assembler;
|
||||
using Cosmos.Assembler.x86;
|
||||
|
||||
namespace Cosmos.Debug.DebugStub {
|
||||
public class CmdSend : Cosmos.Assembler.Code {
|
||||
|
||||
public CmdSend(Assembler.Assembler aAssembler) : base(aAssembler) {}
|
||||
|
||||
public override void Assemble() {
|
||||
new Comment("X#: Group DebugStub");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
1
source2/Compiler/Cosmos.Compiler.DebugStub/CmdSend.xs
Normal file
1
source2/Compiler/Cosmos.Compiler.DebugStub/CmdSend.xs
Normal file
|
|
@ -0,0 +1 @@
|
|||
Group DebugStub
|
||||
|
|
@ -64,10 +64,25 @@
|
|||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Commands.cs">
|
||||
<Compile Include="CmdAsmBreak.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Commands.xs</DependentUpon>
|
||||
<DependentUpon>CmdAsmBreak.xs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CmdMisc.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>CmdMisc.xs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CmdProcess.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>CmdProcess.xs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CmdSend.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>CmdSend.xs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Init.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
|
|
@ -115,9 +130,21 @@
|
|||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Commands.xs">
|
||||
<None Include="CmdAsmBreak.xs">
|
||||
<Generator>CosmosXSharpGenerator</Generator>
|
||||
<LastGenOutput>Commands.cs</LastGenOutput>
|
||||
<LastGenOutput>CmdAsmBreak.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="CmdMisc.xs">
|
||||
<Generator>CosmosXSharpGenerator</Generator>
|
||||
<LastGenOutput>CmdMisc.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="CmdProcess.xs">
|
||||
<Generator>CosmosXSharpGenerator</Generator>
|
||||
<LastGenOutput>CmdProcess.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="CmdSend.xs">
|
||||
<Generator>CosmosXSharpGenerator</Generator>
|
||||
<LastGenOutput>CmdSend.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="Cosmos.snk" />
|
||||
<None Include="Init.xs">
|
||||
|
|
|
|||
Loading…
Reference in a new issue