annotate cos/hello/hello.c @ 31:88590c42320f

Changed interrupt handler
author windel
date Tue, 10 Jan 2012 20:40:35 +0100
parents d3c4bf3720a3
children 3a6a9b929db0
rev   line source
25
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
1 /* Uber simple program that prints directly to video memory */
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
2
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
3 int main()
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
4 {
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
5 unsigned char * const screen = (unsigned char*)0xB8000;
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
6 screen[0] = 'H';
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
7 screen[2] = 'o';
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
8 screen[4] = 'i';
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
9 while (1==1)
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
10 {
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
11 }
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
12 return 0;
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
13 }
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
14