Use SFR access funcs. Support 'dump' command. Add -m (monitor) flag.
[fw/altos] / s51 / s51.h
1 /*
2  * Copyright © 2008 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17  */
18
19 #include <ccdbg.h>
20
21 extern char *s51_prompt;
22 extern struct ccdbg *s51_dbg;
23 extern int s51_interrupted;
24 extern int s51_monitor;
25
26 enum command_result {
27         command_success, command_debug, command_syntax, command_interrupt, command_error,
28 };
29
30 enum command_result
31 command_quit (int argc, char **argv);
32
33 enum command_result
34 command_help (int argc, char **argv);
35
36 enum command_result
37 command_di (int argc, char **argv);
38
39 enum command_result
40 command_ds (int argc, char **argv);
41
42 enum command_result
43 command_dx (int argc, char **argv);
44
45 enum command_result
46 command_set (int argc, char **argv);
47
48 enum command_result
49 command_dump (int argc, char **argv);
50
51 enum command_result
52 command_file (int argc, char **argv);
53
54 enum command_result
55 command_pc (int argc, char **argv);
56
57 enum command_result
58 command_break (int argc, char **argv);
59
60 enum command_result
61 command_clear (int argc, char **argv);
62
63 enum command_result
64 command_run (int argc, char **argv);
65
66 enum command_result
67 command_next (int argc, char **argv);
68
69 enum command_result
70 command_step (int argc, char **argv);
71
72 enum command_result
73 command_load (int argc, char **argv);
74
75 enum command_result
76 command_halt (int argc, char **argv);
77
78 enum command_result
79 command_reset (int argc, char **argv);
80
81 enum command_result
82 command_status (int argc, char **argv);
83
84 enum command_result
85 cc_wait(void);
86
87 void
88 command_read (void);
89
90 void
91 s51_printf(char *format, ...);
92
93 void
94 s51_putc(int c);
95
96 int
97 s51_check_input(void);
98
99 int
100 s51_read_line(char *line, int len);