This commit is contained in:
kudzu_cp 2008-04-27 01:12:06 +00:00
parent 8b07d5daac
commit f95db75e67
4 changed files with 13 additions and 5 deletions

View file

@ -29,6 +29,7 @@
<Button Name="butnTest">Test</Button>
</ToolBar>
</ToolBarTray>
<Label Name="lablSourceFilename" DockPanel.Dock="Top"></Label>
<FlowDocumentScrollViewer Name="fdsvSource" />
</DockPanel>
</DockPanel>

View file

@ -77,6 +77,7 @@ namespace Cosmos.Build.Windows {
public void LoadSourceFile(string aPathname) {
var xSourceCode = System.IO.File.ReadAllLines(aPathname);
lablSourceFilename.Content = System.IO.Path.GetFileName(aPathname);
var xPara = new Paragraph();
mLines.Clear();
fdsvSource.Document = new FlowDocument();

View file

@ -23,14 +23,20 @@ namespace Cosmos.Hardware.PC {
HW.PC.Bus.PCIBus.Init();
// end partially new
if (!noATA) HW.Storage.ATA.Initialize(Sleep);
if (!noATAOld) HW.Storage.ATAOld.Initialize(Sleep);
if (!noATA) {
HW.Storage.ATA.Initialize(Sleep);
}
if (!noATAOld) {
HW.Storage.ATAOld.Initialize(Sleep);
}
HW.CPU.CreateIDT();
// end old -----------------
// MTW new
if (!noATA2) HW.Storage.ATA2.ATA.Initialize(Sleep);
if (!noATA2) {
HW.Storage.ATA2.ATA.Initialize(Sleep);
}
// MTW new end
HW.Device.Add(new Bus.CPU.Keyboard());
@ -47,7 +53,7 @@ namespace Cosmos.Hardware.PC {
}
private static void Tick(object aSender, EventArgs aEventArgs) {
TickCount += 1;
TickCount++;
}
//TODO: Change this to use an x86 Op or something so it doesnt

View file

@ -184,8 +184,8 @@ namespace Indy.IL2CPU.Assembler.X86 {
new Ret();
}
}
aOutputWriter.WriteLine(xAsm.GetContents());
}
aOutputWriter.WriteLine(xAsm.GetContents());
}
protected override void EmitDataSectionHeader(string aGroup, TextWriter aOutputWriter) {