ZealOS/src/Demo/DebugDemo.CC

27 lines
384 B
HolyC
Raw Normal View History

2020-02-15 20:01:48 +00:00
/*
Press <CTRL-ALT-c> to break.
Rerun Program
2020-02-15 22:25:33 +00:00
Press <CTRL-ALT-d> to enter Debug.
2020-02-15 20:01:48 +00:00
> $LK,"Dr",A="MN:Dr"$; //Dump Regs
> $LK,"G2",A="MN:G2"$; //Cont program
2020-02-15 22:25:33 +00:00
Press <CTRL-ALT-d> to enter Debug.
> $LK,"Uf",A="MN:Uf"$("DebugDemo");
2020-02-15 20:01:48 +00:00
> $LK,"U",A="MN:U"$(_RIP);
See $LK,"Debugging",A="HI:Debugging"$
*/
2020-02-15 22:25:33 +00:00
U0 DebugDemo()
2020-02-15 20:01:48 +00:00
{
I64 i=0;
while (TRUE)
if (!(i++%2000000))
".";
2020-02-15 20:01:48 +00:00
}
2020-02-15 22:25:33 +00:00
DebugDemo;
2020-02-15 20:01:48 +00:00