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

Last change on this file since 4810254 was add86dd, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Incompatible pointers, pointer-int conversions.

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