Public Tasks
- Convert current DB from FB to SQL Compact
- Installer as part of bat: how do we get it to stop asking UAC every time?
- Dynamic load/unload IL2CPU and other parts so we dont need to exit and run
builder every time for changes
Matthijs
Kudzu
To Do
- X#
- multiple patterns on one for tokenlist - some ops will be easier this way.
- EAX/AX
- REG32, REG16, REG8, REG
- KEYWORD (all caps only), otherwise is exact
- ABC123 (all caps only), otherwise is exact
- Asm stepping
- Convert cxdb to sql compact and edm
- Increase speed of DebugStub / lower impact
- DS Ping or set a breakpoint while not in a break state will hang VS.
- This is because its waiting on some other command to release?
- Watches
- Memory watches
- this:28 - show its size
- watches - show EBP+-
- frame - show var names
- asm window - show values of EBP, etc...
- watches that can see fields/members
- of other classes besides this
- ATA / FAT
- ring restrictions on console etc.. by class, or explict inclusion
- PIT/RTC
- And sleep, needed for ATA
- tohex plug based on string input of X8 etc
- Bootstrap - clean up more
- networking
- gc
- USB
scanner issue:
http://groups.yahoo.com/group/Cosmos-Dev/message/4789
debugstub.SkipMethod
SkipClass
speedup debug stub on no trigger
compiler dynamic load
unsafe arrays but controllled
Matthijs - Next Release
- Express isnt showing any templates - VB only?
- C# for menus
- Debug VS on Cosmos menu
Trivalik - Next Release
Next Release + 1
- Throw exception on null ref...
- Plugs - warn if plugging something that doesnt exists... caused the x08 bug?
- Write out .asm line number to the cxdb file so I can use it in cgdb
- (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?
- 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)
- We are still stuck on install.bat.. I made a change in Cosmos.Hardware.. but it
didnt take effect until I ran install.bat..
- IL2CPU.AlwaysCompile attribute and get rid of IDT.Dummy
- int j = Array.IndexOf(Digits, s[i]);
- When Digits is a char array, we get a plug needed error.
- 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.
- Plugs
- 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
- 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
- 2010 support
- http://blogs.msdn.com/b/jacdavis/archive/2010/04/05/vs-2010-version-of-debugenginesample-is-now-available.aspx
- Trivalik worked on some already
- Ring attributes and enforcement
- Also allow restriction of assembly references
- Only allow core to be /unsafe, no others
- Ask on forums: How to debug the vsdebug pkg?
- http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/6a9a307a-19fa-4c06-8728-303c1f4dd0bc/
Even later
- localloc - int.parse needs plug for now because of this.
- use INT3 for BP? Will save 3 bytes per call.. which is a lot...
- Gradual X# upgrades (Kudzu)
- 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 whats left
- foreach / interfaces
Further Down
Notes
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(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 };
}
}
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;
}
}
}