General list of stuff left to do...
- ATA / FAT
- Extend System.IO plugs so FAT16/32 etc. can be used
- X#
- use includes for compiling nasm
- AL = ComRead8()
- ComWrite(AL)
- Code completion
- Plugs
- Allow plug attrib to specify asm name and link to X# directly.
- warn if plugging something that doesnt exists... caused the x08 bug?
- (joint with Kudzu) - Move all critical plugs out of old asms and remove building of old asms.
- And the plugs also from CustomImplementations in IL2CPU?
- Source Plugs - Leave as they are
- 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....
- Convert all source plugs and disable old attributes...so for new ones use new names
- int j = Array.IndexOf(Digits, s[i]);
- When Digits is a char array, we get a plug needed error.
- We need to dynamically load the plugs etc so we can just rebuild and run and even trace them without rerunning the bat for each change
- tohex plug based on string input of X8 etc
- OutputDebug Catcher with filters, categories, timestamps
- Debug Stub
- Increase speed of DebugStub
- Compile / Build speed. Current slow areas. Time each of these.
- IL2CPUTask
- xScanner.Execute(xInitMethod); - This used to be faster... something has slowed this down. What?
- Cosmos.Debug.Common - new DebugInfo(xOutputFilename + ".mdf", true) - Takes longer than Id like. But its SQL... not sure if we can do much. Maybe could do a copy of raw file? Or is the problem SQL local startup time? If so would using express solve this?
- ExtractMapFromElfFile - SQL is slow on inserts. Only store GUID labels. Add .asm file position and when we need a label in between, parse just those parts of ASM to get them. Also if we do this, probably dont need to store actual label name at all.
- Watches and Locals
- Locals that can understand more types / see deeper into more than just the this object
- Watches that can get data for a specified memory address (memory watches)
- Watches that can see locals
- Watches/hover-over-objects that can see for than just locals
- Ring attributes and enforcement
- Also allow restriction of assembly references
- Only allow core to be /unsafe, no others
- Ring restrictions on console etc.. by class, or explict inclusion
- PIT/RTC
- And sleep, needed for ATA
- Bootstrap - clean up more
- Networking
- GC
- Scanner issue: http://groups.yahoo.com/group/Cosmos-Dev/message/4789
- Unsafe arrays but controlled
Matthijs
- C# for menus
- Debug VS on Cosmos menu
- Throw exception on null ref...
- 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)
- IL2CPU.AlwaysCompile attribute and get rid of IDT.Dummy
- 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.
Later
- localloc - int.parse needs plug for now because of this.
- Filesystem
- Memory Manager
- http://www.osdever.net/tutorials/view/memory-management-1
- http://www.osdever.net/tutorials/view/memory-management-2
- UDP
- TCP
- Cosmos.Debug.Common - much in here is not common and should be moved to
VSDebug.. Add Readme.html that NASM and VSDebug use what's left
- foreach / interfaces
Even Later
Assembly Plug Example
Old way
(3 classes, often 3 source files as well)
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(Cosmos.Assembler.Assembler 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 };
}
}
...
New way
See how much neater and self contained this is? :)
public class CPUBus
{
[AsmBody(Assembler = typeof(IOWrite8))]
public static void Write8(UInt16 aPort, byte aData) { }
// Nested class even... :) Keeps it all in one unit!
public class IOWrite8 : CodeBlock
{
public override void Assemble()
{
EDX = EBP + 0x0C;
EAX = EBP + 0x08;
Port[DX] = AL;
}
}
}