source: buchla-68k/rom/romp.x@ 4b63bf3

Last change on this file since 4b63bf3 was 432327d, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Fix conversion warnings.

  • Property mode set to 100644
File size: 5.1 KB
Line 
1/*
2 =============================================================================
3 romp.c -- external declarations
4 =============================================================================
5*/
6
7#pragma once
8
9#include "regs.h"
10#include "setjmp.h"
11#include "stdint.h"
12
13#define MAXFNLN 13 /* xxxxxxxx.xxx + CR */
14#define MAXARGLN 80 /* maximum argument length */
15#define MAXCMDLN 128 /* maximum command line length */
16#define MAXHS 80 /* maximum help string length */
17#define MAXID 90 /* maximum ID string length */
18
19#define PDATELN 14
20
21/*
22 =============================================================================
23 external variables
24 =============================================================================
25*/
26
27extern volatile uint16_t *obj0;
28
29extern int32_t afi;
30extern int16_t aflag;
31extern int8_t ahex[];
32extern int8_t *aptr;
33extern int16_t argln;
34extern int8_t argsep;
35extern int8_t argstr[MAXARGLN+1];
36extern int16_t asig;
37extern int16_t astat;
38extern int16_t aval;
39extern int16_t b0flag;
40extern int16_t b1flag;
41extern uint16_t baroff;
42extern uint16_t baron;
43extern int16_t baseled;
44extern int8_t bfname[MAXFNLN+1];
45extern int8_t cmdline[MAXCMDLN+1];
46extern int16_t cmdunit;
47extern int8_t *d_cur;
48extern int8_t *d_last;
49extern int8_t *d_next;
50extern int16_t dflag;
51extern int16_t exflag;
52extern int16_t first1;
53extern int32_t ftimer;
54extern int16_t goflag;
55extern int8_t hs_mtst[MAXHS+1];
56extern int8_t idbuf[MAXID+1];
57extern int16_t ilast;
58extern int16_t inext;
59extern int16_t iplev;
60extern int16_t ledcntr;
61extern int8_t *monptr;
62extern int16_t monsw;
63extern uint16_t *p_ba0;
64extern uint16_t *p_ba1;
65extern uint16_t p_bv0;
66extern uint16_t p_bv1;
67extern int8_t *p_end;
68extern int8_t *p_from;
69extern int32_t p_goto;
70extern int32_t p_len;
71extern int8_t *p_to;
72extern int32_t p_value;
73extern int32_t p_width;
74extern int8_t promdate[PDATELN+1];
75extern int16_t redo;
76extern struct regs *regptr;
77extern jmp_buf restart;
78extern int8_t *rlist[];
79extern int16_t rnum;
80extern int16_t sigadr[];
81extern int16_t sigtab[128][2];
82extern int8_t *sptr;
83extern uint16_t swoff;
84extern uint16_t swon;
85extern uint16_t *tba0;
86extern uint16_t *tba1;
87extern int8_t *vrlist[];
88extern int16_t vrnum;
89
90/*
91 =============================================================================
92 external functions
93 =============================================================================
94*/
95
96extern int16_t bphit(void);
97extern int16_t cp_boot(void);
98extern int16_t cp_chek(void);
99extern int16_t cp_copy(void);
100extern int16_t cp_dump(void);
101extern int16_t cp_fill(void);
102extern int16_t cp_go(void);
103extern int16_t cp_ilev(void);
104extern int16_t cp_ldmp(void);
105extern int16_t cp_monc(void);
106extern int16_t cp_monl(void);
107extern int16_t cp_mons(void);
108extern int16_t cp_mset(void);
109extern int16_t cp_mtst(void);
110extern int16_t cp_null(void);
111extern int16_t cp_read(void);
112extern int16_t cp_rset(void);
113extern int16_t cp_vrst(void);
114extern int16_t cp_wdmp(void);
115extern int16_t cp_wfil(void);
116extern int16_t cp_wset(void);
117extern int16_t cx_adsp(void);
118extern int16_t cx_boot(void);
119extern int16_t cx_bpb(void);
120extern int16_t cx_chek(void);
121extern int16_t cx_copy(void);
122extern int16_t cx_crsh(void);
123extern int16_t cx_dini(void);
124extern int16_t cx_dump(void);
125extern int16_t cx_exit(void);
126extern int16_t cx_fill(void);
127extern int16_t cx_go(void);
128extern int16_t cx_help(void);
129extern int16_t cx_ilev(void);
130extern int16_t cx_ldmp(void);
131extern int16_t cx_load(void);
132extern int16_t cx_mlod(void);
133extern int16_t cx_mon(void);
134extern int16_t cx_mset(void);
135extern int16_t cx_mtst(void);
136extern int16_t cx_next(void);
137extern int16_t cx_omap(void);
138extern int16_t cx_read(void);
139extern int16_t cx_regs(void);
140extern int16_t cx_rest(void);
141extern int16_t cx_rset(void);
142extern int16_t cx_vreg(void);
143extern int16_t cx_vrst(void);
144extern int16_t cx_wdmp(void);
145extern int16_t cx_wfil(void);
146extern int16_t cx_writ(void);
147extern int16_t cx_wset(void);
148extern int16_t cx_zap(void);
149extern int16_t ddump(int8_t *loc, int8_t *lastloc, int16_t nwide, int16_t unit);
150extern void do_cmd(void);
151extern int16_t do_srec(int8_t *line);
152extern void dobar(int16_t nb, int16_t bv);
153extern void dosw(int16_t nb, int16_t sv);
154extern int16_t dtext(int8_t *loc, int8_t *lastloc, int16_t nwide, int16_t unit);
155extern uint16_t exp_c(int16_t c);
156extern int16_t getarg(void);
157extern int16_t getcmd(void);
158extern int16_t getlong(int32_t *var);
159extern int16_t ldump(uint32_t *loc, uint32_t *lastloc, int16_t nwide, int16_t unit);
160extern void main(void);
161extern void padr(void *adr, int16_t unit);
162extern int16_t pclr(void);
163extern void progid(void);
164extern int16_t pscan(void);
165extern void puthn(uint32_t num, int16_t cw, int16_t unit);
166extern void putn(uint32_t num, int16_t cw, int16_t unit);
167extern void rompbp(uint32_t d0, ...);
168extern int16_t setp(void *var, void *deflt);
169extern int16_t setvar(int32_t *var, int32_t deflt);
170extern void showcr(void);
171extern void showrs(struct regs *rp);
172extern int16_t waitcr2(void);
173extern int16_t wdump(uint16_t *loc, uint16_t *lastloc, int16_t nwide, int16_t unit);
174extern int16_t xdtoi(int16_t c);
Note: See TracBrowser for help on using the repository browser.