Eric Biederman | 6aa31cc | 2003-06-10 21:22:07 +0000 | [diff] [blame] | 1 | static void print(char *str) |
2 | { | ||||
3 | while(1) { | ||||
4 | unsigned char ch; | ||||
5 | ch = *str; | ||||
6 | if (ch == '\0') { | ||||
7 | break; | ||||
8 | } | ||||
9 | __builtin_outb(ch, 0x1234); | ||||
10 | str += 1; | ||||
11 | } | ||||
12 | } | ||||
13 | |||||
14 | static void main(void) | ||||
15 | { | ||||
16 | print("hello world\r\n"); | ||||
17 | print("how are you today\r\n"); | ||||
18 | } |