This commit is contained in:
kudzu_cp 2009-06-13 10:49:49 +00:00
parent b6ccbb5f34
commit 27a3be0c6e
2 changed files with 9 additions and 6 deletions

View file

@ -1,4 +1,7 @@
Tools\nasm\nasm -g -f elf -F stabs -o output.obj Tools\asm\main.asm REM Tools\nasm\nasm -g -f elf -F stabs -o output.obj Tools\asm\main.asm
Tools\nasm\nasm.exe -g -f bin -o output.obj Tools\asm\main.asm
pause pause

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
//using Dbg = Cosmos.Debug; using Dbg = Cosmos.Debug;
namespace Cosmos.Playground.Kudzu { namespace Cosmos.Playground.Kudzu {
public class Debugger { public class Debugger {
@ -9,13 +9,13 @@ namespace Cosmos.Playground.Kudzu {
Random xRandom = new Random((int)(Cosmos.Hardware.Global.TickCount Random xRandom = new Random((int)(Cosmos.Hardware.Global.TickCount
+ Cosmos.Hardware.RTC.GetSeconds())); + Cosmos.Hardware.RTC.GetSeconds()));
// Divide by 100, get remainder // Divide by 100, get remainder
//Dbg.Debugger.Break(); Dbg.Debugger.Break();
int xMagicNo = xRandom.Next() % 100; int xMagicNo = xRandom.Next() % 100;
//Dbg.Debugger.Send("The magic number is " + xMagicNo); Dbg.Debugger.Send("The magic number is " + xMagicNo);
Console.WriteLine("Hello world"); Console.WriteLine("Hello world");
//Dbg.Debugger.TraceOn(); Dbg.Debugger.TraceOn();
int xDummy = 4; int xDummy = 4;
//Dbg.Debugger.TraceOff(); Dbg.Debugger.TraceOff();
Console.ReadLine(); Console.ReadLine();
} }
} }