forked from tingox/nd100em
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnd100em.h
71 lines (64 loc) · 2.09 KB
/
nd100em.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* nd100em - ND100 Virtual Machine
*
* Copyright (c) 2006-2008 Roger Abrahamsson
*
* This file is originated from the nd100em project.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (in the main directory of the nd100em
* distribution in the file COPYING); if not, see <http://www.gnu.org/licenses/>.
*/
extern int trace;
extern int debug;
extern int DAEMON;
extern int DISASM;
extern ushort PANEL_PROCESSOR;
extern double instr_counter;
extern struct ThreadChain *gThreadChain;
extern sem_t sem_int;
extern sem_t sem_cons;
extern sem_t sem_sigthr;
extern sem_t sem_rtc_tick;
extern sem_t sem_rtc;
extern sem_t sem_io;
extern sem_t sem_mopc;
extern sem_t sem_run;
extern sem_t sem_floppy;
extern sem_t sem_pap;
float usertime,systemtime,totaltime;
struct rusage *used;
extern int octalstr_to_integer(char *str);
extern int mysleep(int sec, int usec);
extern int bpun_load(void);
extern int bp_load(void);
extern int debug_open(void);
extern void unsetcbreak (void);
extern void setcbreak (void);
extern struct ThreadChain *AddThreadChain(void);
extern void RemThreadChain(struct ThreadChain * elem);
extern int nd100emconf(void);
extern void shutdown(void);
extern void setsignals(void);
extern void daemonize(void);
extern void start_threads(void);
extern void stop_threads(void);
extern void setup_cpu(void);
extern void program_load(void);
extern void blocksignals();
extern int trace_open();
extern void disasm_addword(ushort addr, ushort myword);
extern void disasm_init();
extern void disasm_dump();
extern void setup_pap();
int main(int argc, char *argv[]);