mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +00:00
190 lines
No EOL
8 KiB
HTML
190 lines
No EOL
8 KiB
HTML
<html>
|
|
<body>
|
|
<h3>
|
|
Kudzu
|
|
To Do</h3>
|
|
<ul>
|
|
<li>CXDB to dataset<ul>
|
|
<li>Merge code so it doesnt copy to DS each time on load/save - or move sooner to a
|
|
db</li>
|
|
</ul>
|
|
</li>
|
|
<li>ring restrictions on console etc.. by class, or explict inclusion</li>
|
|
<li>PIT/RTC<ul>
|
|
<li>And sleep, needed for ATA</li>
|
|
</ul>
|
|
</li>
|
|
<li>ATA</li>
|
|
<li>int.parse plug<ul>
|
|
<li>plug article</li>
|
|
</ul>
|
|
</li>
|
|
<li>tohex plug based on string input of X8 etc</li>
|
|
<li>Express article</li>
|
|
<li>Guess Demo</li>
|
|
<li>Watches - at least locals first<ul>
|
|
<li>CXDB to dataset</li>
|
|
</ul>
|
|
</li>
|
|
<li>Step over</li>
|
|
<li>Bootstrap - clean up more</li>
|
|
</ul>
|
|
<h3>
|
|
Matthijs - Next Release</h3>
|
|
<ul>
|
|
<li>Express isnt showing any templates</li>
|
|
</ul>
|
|
<h3>
|
|
Trivalik - Next Release</h3>
|
|
<ul>
|
|
<li>Remove 2008<ul>
|
|
<li>And 2010 suffixes</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h3>
|
|
Next Release + 1</h3>
|
|
<ul>
|
|
<li>Warning 1 Could not read state file
|
|
"obj\Release\ResolveAssemblyReference.cache". Unable to cast object of type
|
|
'Microsoft.Build.Tasks.SystemState' to type
|
|
'Microsoft.Build.Tasks.StateFileBase'.
|
|
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 0 1 Guess
|
|
(source2\Demos\Guess\Guess) </li>
|
|
<li>Merge VSIP and Debugger projects into VSIP project</li>
|
|
<li>Output Window<ul>
|
|
<li><a href="http://msdn.microsoft.com/en-us/library/bb166236.aspx">
|
|
http://msdn.microsoft.com/en-us/library/bb166236.aspx</a></li>
|
|
<li>var xDTE = (DTE2)Shell.Package.GetGlobalService(typeof(EnvDTE.DTE));<br />
|
|
var xPane = xDTE.ToolWindows.OutputWindow.OutputWindowPanes;<br />
|
|
xPane.Add("Cosmos"); </li>
|
|
</ul>
|
|
</li>
|
|
<li>Throw exception on null ref...</li>
|
|
<li>Plugs - warn if plugging something that doesnt exists... caused the x08 bug?</li>
|
|
<li>Write out .asm line number to the cxdb file so I can use it in cgdb</li>
|
|
<li>(joint with Kudzu) - Move all critical plugs out of old asms and remove building
|
|
of old asms.<ul>
|
|
<li>And the plugs also from CustomImplementations in IL2CPU?</li>
|
|
</ul>
|
|
</li>
|
|
<li>Exceptions dont work. Try int.parse("asdf"). It runs but when the exception is
|
|
hit we get garbage back instead. (ie exceptions through plug proxy dont work)</li>
|
|
<li>We are still stuck on install.bat.. I made a change in Cosmos.Hardware.. but it
|
|
didnt take effect until I ran install.bat..</li>
|
|
<li>IL2CPU.AlwaysCompile attribute and get rid of IDT.Dummy</li>
|
|
<li>int j = Array.IndexOf(Digits, s[i]);<ul>
|
|
<li>When Digits is a char array, we get a plug needed error.</li>
|
|
</ul>
|
|
</li>
|
|
<li>cxdb contains full asm path and filenames over and over... cant we write them
|
|
out once and use a byte/word index to identify them? This will make it smaller
|
|
and make reading faster.</li><li>Plugs <ul>
|
|
<li>Source Plugs - Leave as they are</li>
|
|
<li>Assembly Plugs - Change to have attribute on the TARGET instead of the
|
|
implementation and only allow assembly.. this cuts out the "proxy" class and
|
|
makes it easier to find plug impls. See Rings.html for more info. The assembly
|
|
level plugs can even go in the same assembly, source file and if we can the same
|
|
class? That is currently these assembly plugs require 3 classes to implement.
|
|
its ugly and messy... we can get it down to 2 - 1 + assembly (X# only!). Current
|
|
way is such a mess we even comment them as plugged, but then have to go guessing
|
|
where the impl is... See example down below....</li>
|
|
<li>Convert all source plugs and disable old attributes...so for new ones use new
|
|
names</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<li>We need to dynamically
|
|
load the plugs etc so we can just rebuild and run and even trace them without
|
|
rerunnig the bat for each change</li>
|
|
</li>
|
|
<li>2010 support<ul>
|
|
<li>http://blogs.msdn.com/b/jacdavis/archive/2010/04/05/vs-2010-version-of-debugenginesample-is-now-available.aspx</li>
|
|
<li>Trivalik worked on some already</li>
|
|
</ul>
|
|
</li>
|
|
<li>Ring attributes and enforcement<ul>
|
|
<li>Also allow restriction of assembly references</li>
|
|
<li>Only allow core to be /unsafe, no others</li>
|
|
</ul>
|
|
</li>
|
|
<li>Ask on forums: How to debug the vsdebug pkg?<ul>
|
|
<li>http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/6a9a307a-19fa-4c06-8728-303c1f4dd0bc/</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h3>
|
|
Even later</h3>
|
|
<ul>
|
|
<li>localloc - int.parse needs plug for now because of this.</li>
|
|
<li>use INT3 for BP? Will save 3 bytes per call.. which is a lot...</li>
|
|
<li>Gradual X# upgrades (Kudzu)</li>
|
|
<li>Filesystem</li>
|
|
<li>Memory Manager<ul>
|
|
<li>http://www.osdever.net/tutorials/view/memory-management-1</li>
|
|
<li>http://www.osdever.net/tutorials/view/memory-management-2</li>
|
|
</ul>
|
|
</li>
|
|
<li>UDP</li>
|
|
<li>TCP</li>
|
|
<li>Cosmos.Debug.Common - much in here is not common and should be moved to
|
|
VSDebug.. Add Readme.html that NASM and VSDebug use whats left</li>
|
|
<li>foreach / interfaces</li>
|
|
</ul>
|
|
<h3>
|
|
Farther Down</h3>
|
|
<ul>
|
|
<li>USB</li>
|
|
</ul>
|
|
<h3>
|
|
Notes</h3>
|
|
<h3>
|
|
Assembly Plug Example</h3>
|
|
<h4>
|
|
Old way</h4>
|
|
<p>
|
|
(3 classes, often 3 source files as well)</p>
|
|
<pre>public class CPUBus {
|
|
// Plugged
|
|
public static void Write8(UInt16 aPort, byte aData) { }
|
|
...
|
|
|
|
[Plug(Target = typeof(Cosmos.Kernel.CPUBus))]
|
|
class CPUBus {
|
|
[PlugMethod(Assembler = typeof(Assemblers.IOWrite8))]
|
|
public static void Write8(UInt16 aPort, byte aData) { }
|
|
...
|
|
|
|
public sealed class IOWrite8: AssemblerMethod {
|
|
public override void AssembleNew(object aAssembler, object aMethodInfo) {
|
|
//TODO: This is a lot of work to write to a single port. We need to have some kind of inline ASM option that can emit a single out instruction
|
|
new CPUx86.Move { DestinationReg = CPUx86.Registers.EDX, SourceReg = CPUx86.Registers.EBP, SourceDisplacement = 0xC, SourceIsIndirect = true };
|
|
new CPUx86.Move { DestinationReg = CPUx86.Registers.EAX, SourceReg = CPUx86.Registers.EBP, SourceDisplacement = 0x8, SourceIsIndirect = true };
|
|
new CPUx86.Out { DestinationReg = CPUx86.Registers.AL };
|
|
}
|
|
} </pre>
|
|
<h4>
|
|
New way</h4>
|
|
<p>
|
|
See how much neater and self contained this is? :)</p>
|
|
<p>
|
|
public class CPUBus {<br />
|
|
|
|
<br />
|
|
[AsmBody(Assembler = typeof(IOWrite8))]<br />
|
|
public static void Write8(UInt16 aPort, byte aData) { }<br />
|
|
// Nested class even... :) Keeps it all in one unit!<br />
|
|
public class IOWrite8 : CodeBlock {
|
|
<br />
|
|
public override void Assemble() {<br />
|
|
EDX = EBP + 0x0C;<br />
|
|
EAX = EBP + 0x08;<br />
|
|
Port[DX] = AL;<br />
|
|
}<br />
|
|
}
|
|
<br />
|
|
<br />
|
|
} </p>
|
|
|
|
</body>
|
|
</html> |