projects
/
com32
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
works and returns to DOS on dosbox
[com32]
/
src
/
main.c
1
#include <stdio.h>
2
#include "segm.h"
3
#include "intr.h"
4
#include "mem.h"
5
#include "contty.h"
6
#include "keyb.h"
7
#include "psaux.h"
8
#include "timer.h"
9
10
extern uint16_t orig_seg;
11
12
int main(void)
13
{
14
init_segm();
15
init_intr();
16
17
con_init();
18
kb_init();
19
/*init_psaux();*/
20
21
init_mem();
22
23
init_timer();
24
25
enable_intr();
26
27
printf("\nhello from C\n");
28
29
cleanup_intr(); /* also disables interrupts */
30
cleanup_timer();
31
return 0;
32
}