summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test23.c
blob: 33acd047a2b5c22171331863c39ab43363bfe159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
static void print(char *str)
{
	while(1) {
		unsigned char ch;
		ch = *str;
		if (ch == '\0') {
			break;
		}
		__builtin_outb(ch, 0x1234);
		str += 1;
	}
}

static void main(void)
{
	print("hello world\r\n");
	print("how are you today\r\n");
}