Skip to content

Commit cf65f54

Browse files
author
unknown
committed
Modified to call idt_install as well
1 parent baca9f4 commit cf65f54

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

‎main.c‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
#include"types.h"
2+
3+
voidinit_tables();
4+
5+
/* Reduce local variables as much as possible to preserve stack space. */
6+
7+
18

29
unsigned char*memcpy(unsigned char*dest, constunsigned char*src, intcount)
310
{
411
while(count--)
5-
{
612
*dest++=*src++;
7-
}
813
returndest;
914
}
1015

@@ -55,7 +60,13 @@ void main()
5560
{
5661
/* You would add commands after here */
5762

58-
/* ...and leave this loop in. There is an endless loop in
59-
* 'start.asm' also, if you accidentally delete this next line */
60-
for (;);
63+
init_tables();
64+
init_video();
65+
puts("GREETINGS PROFESSOR FALKEN");
66+
puts("\r\nWOULD YOU LIKE TO PLAY A GAME?\r\n");
67+
puthex(12345);
68+
putdec(8808);
69+
asm volatile ("int $0x3");
70+
/* busy wait */
71+
for (;);
6172
}

0 commit comments

Comments
(0)