comparison kernel/src/kernel.c3 @ 365:98ff43cfdd36

Nasty bug in adr instruction
author Windel Bouwman
date Wed, 19 Mar 2014 22:32:04 +0100
parents c49459768aaa
children 577ed7fb3fe4
comparison
equal deleted inserted replaced
364:c49459768aaa 365:98ff43cfdd36
18 function void start() 18 function void start()
19 { 19 {
20 G = 0; 20 G = 0;
21 arch.init(); 21 arch.init();
22 22
23 do();
24 io.println("Welcome to lcfos!"); 23 io.println("Welcome to lcfos!");
25 24
26 do(); 25 do();
27 do(); 26 do();
27 do();
28 io.println("Welcome 2!");
28 do(); 29 do();
29 do(); 30 do();
30 31
31 io.print_int(0x1337); 32 io.print_int(0x1337);
32 io.print_int(cast<int>(&G)); 33 io.print_int(cast<int>(&G));
33 //io.print2("Test: ", 0x13); 34 //io.print2("Test: ", 0x13);
34 35
35 var int a; 36 var int a;
36 for (a = 0; a < 2; a = a + 1) 37 for (a = 0; a < 2; a = a + 1)
37 { 38 {
38 //io.print2("a = ", a); 39 io.print2("a = ", a);
39 } 40 }
40 41
41 io.print2("PFR0 = ", arch.pfr0()); 42 io.print2("PFR0 = ", arch.pfr0());
42 io.print2("PFR1 = ", arch.pfr1()); 43 io.print2("PFR1 = ", arch.pfr1());
43 io.print2("MMFR0 = ", arch.mmfr0()); 44 io.print2("MMFR0 = ", arch.mmfr0());
44 io.print2("MPUIR = ", arch.mpuir()); 45 // io.print2("MPUIR = ", arch.mpuir());
45 46
46 // process.init(); 47 // process.init();
47 //memory:init(); 48 //memory:init();
48 49
49 //Process proc = new process:Process(); 50 //Process proc = new process:Process();