annotate test/m3_bare/hello.c3 @ 396:fb3c1f029b30

Added baselexer into c3 lexer
author Windel Bouwman
date Tue, 27 May 2014 22:19:32 +0200
parents b00219172a42
children
rev   line source
337
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
1 module hello;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
2
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
3 function void main()
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
4 {
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
5 var int* UART0DR;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
6 UART0DR = cast<int*>(0x4000C000 + 0x000); // UART0 Data register
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
7 *UART0DR = 72;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
8 *UART0DR = 101;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
9 *UART0DR = 108;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
10 *UART0DR = 108;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
11 *UART0DR = 111;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
12 *UART0DR = 32;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
13 *UART0DR = 119;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
14 *UART0DR = 111;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
15 *UART0DR = 114;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
16 *UART0DR = 108;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
17 *UART0DR = 101;
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
18
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
19 while(true) {}
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
20 }
b00219172a42 Added cool lm3s811 qemu project
Windel Bouwman
parents:
diff changeset
21