| 1 | #include "ram.h"
 | 
|---|
| 2 | 
 | 
|---|
| 3 | int8_t          ac_code;
 | 
|---|
| 4 | int16_t         errno;
 | 
|---|
| 5 | int16_t         timers[NTIMERS];
 | 
|---|
| 6 | int16_t         fp_resv[];
 | 
|---|
| 7 | int8_t          VerDate[];
 | 
|---|
| 8 | uint16_t        vi_scrl;
 | 
|---|
| 9 | uint16_t        vi_sadr;
 | 
|---|
| 10 | 
 | 
|---|
| 11 | int8_t          end;
 | 
|---|
| 12 | int8_t          edata;
 | 
|---|
| 13 | int8_t          etext;
 | 
|---|
| 14 | int32_t         p_dlen;
 | 
|---|
| 15 | 
 | 
|---|
| 16 | int8_t          *S1IoRec;
 | 
|---|
| 17 | int8_t          *S2IoRec;
 | 
|---|
| 18 | int8_t          *M1IoRec;
 | 
|---|
| 19 | int8_t          *M2IoRec;
 | 
|---|
| 20 | 
 | 
|---|
| 21 | void            (*foot1)(int16_t stat);
 | 
|---|
| 22 | void            (*foot2)(int16_t stat);
 | 
|---|
| 23 | void            (*pulse1)(void);
 | 
|---|
| 24 | void            (*pulse2)(void);
 | 
|---|
| 25 | 
 | 
|---|
| 26 | int32_t         crshrg[16];
 | 
|---|
| 27 | int16_t         wzcrsh;
 | 
|---|
| 28 | int16_t         *crshpc;
 | 
|---|
| 29 | int16_t         *crshsp;
 | 
|---|
| 30 | int16_t         *crshus;
 | 
|---|
| 31 | int16_t         crshst[16];
 | 
|---|
| 32 | uint16_t        crshsr;
 | 
|---|
| 33 | int8_t          crshvc[4];
 | 
|---|
| 34 | 
 | 
|---|
| 35 | int32_t         uldivr;
 | 
|---|
| 36 | 
 | 
|---|
| 37 | // ---------- vvv ---------- wdfield.c
 | 
|---|
| 38 | 
 | 
|---|
| 39 | #if 0
 | 
|---|
| 40 | 
 | 
|---|
| 41 | void updfpu(void)
 | 
|---|
| 42 | {
 | 
|---|
| 43 | }
 | 
|---|
| 44 | 
 | 
|---|
| 45 | void wsupd(void)
 | 
|---|
| 46 | {
 | 
|---|
| 47 | }
 | 
|---|
| 48 | 
 | 
|---|
| 49 | void whupd(void)
 | 
|---|
| 50 | {
 | 
|---|
| 51 | }
 | 
|---|
| 52 | 
 | 
|---|
| 53 | void pntsup(void)
 | 
|---|
| 54 | {
 | 
|---|
| 55 | }
 | 
|---|
| 56 | 
 | 
|---|
| 57 | void wdintp(void)
 | 
|---|
| 58 | {
 | 
|---|
| 59 | }
 | 
|---|
| 60 | 
 | 
|---|
| 61 | void wdykdn(void)
 | 
|---|
| 62 | {
 | 
|---|
| 63 | }
 | 
|---|
| 64 | 
 | 
|---|
| 65 | void wdykup(void)
 | 
|---|
| 66 | {
 | 
|---|
| 67 | }
 | 
|---|
| 68 | 
 | 
|---|
| 69 | void wdcyupd(void)
 | 
|---|
| 70 | {
 | 
|---|
| 71 | }
 | 
|---|
| 72 | 
 | 
|---|
| 73 | void wdcxupd(void)
 | 
|---|
| 74 | {
 | 
|---|
| 75 | }
 | 
|---|
| 76 | 
 | 
|---|
| 77 | int16_t wdnfld(int16_t k)
 | 
|---|
| 78 | {
 | 
|---|
| 79 | }
 | 
|---|
| 80 | 
 | 
|---|
| 81 | void wdxkey(void)
 | 
|---|
| 82 | {
 | 
|---|
| 83 | }
 | 
|---|
| 84 | 
 | 
|---|
| 85 | void wdfield(void)
 | 
|---|
| 86 | {
 | 
|---|
| 87 | }
 | 
|---|
| 88 | 
 | 
|---|
| 89 | #endif
 | 
|---|
| 90 | 
 | 
|---|
| 91 | // ---------- ^^^ ---------- wdfield.c
 | 
|---|
| 92 | 
 | 
|---|
| 93 | void clrvce(int16_t vce)
 | 
|---|
| 94 | {
 | 
|---|
| 95 | }
 | 
|---|
| 96 | 
 | 
|---|
| 97 | void execins(int16_t vce, int16_t ins, int16_t tag)
 | 
|---|
| 98 | {
 | 
|---|
| 99 | }
 | 
|---|
| 100 | 
 | 
|---|
| 101 | void execkey(int16_t trg, int16_t pch, int16_t vce, int16_t tag)
 | 
|---|
| 102 | {
 | 
|---|
| 103 | }
 | 
|---|
| 104 | 
 | 
|---|
| 105 | void fpuclr(void)
 | 
|---|
| 106 | {
 | 
|---|
| 107 | }
 | 
|---|
| 108 | 
 | 
|---|
| 109 | void fpuint(void)
 | 
|---|
| 110 | {
 | 
|---|
| 111 | }
 | 
|---|
| 112 | 
 | 
|---|
| 113 | uint16_t fromfpu(uint16_t fputime)
 | 
|---|
| 114 | {
 | 
|---|
| 115 |     return 0;
 | 
|---|
| 116 | }
 | 
|---|
| 117 | 
 | 
|---|
| 118 | void halt(void)
 | 
|---|
| 119 | {
 | 
|---|
| 120 | }
 | 
|---|
| 121 | 
 | 
|---|
| 122 | void GLCplot(uint16_t x, uint16_t y, uint16_t val)
 | 
|---|
| 123 | {
 | 
|---|
| 124 | }
 | 
|---|
| 125 | 
 | 
|---|
| 126 | void hdvini(void)
 | 
|---|
| 127 | {
 | 
|---|
| 128 | }
 | 
|---|
| 129 | 
 | 
|---|
| 130 | void jumpto(void *addr)
 | 
|---|
| 131 | {
 | 
|---|
| 132 | }
 | 
|---|
| 133 | 
 | 
|---|
| 134 | void longjmp(struct JMP_BUF *env, int16_t val)
 | 
|---|
| 135 | {
 | 
|---|
| 136 | }
 | 
|---|
| 137 | 
 | 
|---|
| 138 | void Lo_RAM(void)
 | 
|---|
| 139 | {
 | 
|---|
| 140 | }
 | 
|---|
| 141 | 
 | 
|---|
| 142 | void objclr(uint16_t obj)
 | 
|---|
| 143 | {
 | 
|---|
| 144 | }
 | 
|---|
| 145 | 
 | 
|---|
| 146 | void objoff(uint16_t obj, uint16_t line, uint16_t num)
 | 
|---|
| 147 | {
 | 
|---|
| 148 | }
 | 
|---|
| 149 | 
 | 
|---|
| 150 | void objon(uint16_t obj, uint16_t line, uint16_t num)
 | 
|---|
| 151 | {
 | 
|---|
| 152 | }
 | 
|---|
| 153 | 
 | 
|---|
| 154 | void panic(void)
 | 
|---|
| 155 | {
 | 
|---|
| 156 | }
 | 
|---|
| 157 | 
 | 
|---|
| 158 | void procpfl(uint16_t trig)
 | 
|---|
| 159 | {
 | 
|---|
| 160 | }
 | 
|---|
| 161 | 
 | 
|---|
| 162 | void _ptcl12(uint16_t *fat, uint16_t cl, uint16_t val)
 | 
|---|
| 163 | {
 | 
|---|
| 164 | }
 | 
|---|
| 165 | 
 | 
|---|
| 166 | int32_t rand24(void)
 | 
|---|
| 167 | {
 | 
|---|
| 168 |     return 0;
 | 
|---|
| 169 | }
 | 
|---|
| 170 | 
 | 
|---|
| 171 | void rjumpto(void *addr)
 | 
|---|
| 172 | {
 | 
|---|
| 173 | }
 | 
|---|
| 174 | 
 | 
|---|
| 175 | void se_disp(struct s_entry *ep, int16_t sd, struct gdsel *gdstb[], int16_t cf)
 | 
|---|
| 176 | {
 | 
|---|
| 177 | }
 | 
|---|
| 178 | 
 | 
|---|
| 179 | struct s_entry *se_exec(struct s_entry *ep, int16_t sd)
 | 
|---|
| 180 | {
 | 
|---|
| 181 |     return 0;
 | 
|---|
| 182 | }
 | 
|---|
| 183 | 
 | 
|---|
| 184 | uint16_t setipl(uint16_t arg)
 | 
|---|
| 185 | {
 | 
|---|
| 186 |     return 0;
 | 
|---|
| 187 | }
 | 
|---|
| 188 | 
 | 
|---|
| 189 | int16_t setjmp(struct JMP_BUF *env)
 | 
|---|
| 190 | {
 | 
|---|
| 191 |     return 0;
 | 
|---|
| 192 | }
 | 
|---|
| 193 | 
 | 
|---|
| 194 | void setsio(void)
 | 
|---|
| 195 | {
 | 
|---|
| 196 | }
 | 
|---|
| 197 | 
 | 
|---|
| 198 | uint16_t setsr(uint16_t sr)
 | 
|---|
| 199 | {
 | 
|---|
| 200 |     return 0;
 | 
|---|
| 201 | }
 | 
|---|
| 202 | 
 | 
|---|
| 203 | void sjumpto(void *addr, void *stack)
 | 
|---|
| 204 | {
 | 
|---|
| 205 | }
 | 
|---|
| 206 | 
 | 
|---|
| 207 | void sreset(void)
 | 
|---|
| 208 | {
 | 
|---|
| 209 | }
 | 
|---|
| 210 | 
 | 
|---|
| 211 | uint16_t tofpu(uint16_t time)
 | 
|---|
| 212 | {
 | 
|---|
| 213 |     return 0;
 | 
|---|
| 214 | }
 | 
|---|
| 215 | 
 | 
|---|
| 216 | int32_t trap13(int16_t fun, ...)
 | 
|---|
| 217 | {
 | 
|---|
| 218 |     return 0;
 | 
|---|
| 219 | }
 | 
|---|
| 220 | 
 | 
|---|
| 221 | int32_t trap14(int16_t fun, ...)
 | 
|---|
| 222 | {
 | 
|---|
| 223 |     return 0;
 | 
|---|
| 224 | }
 | 
|---|
| 225 | 
 | 
|---|
| 226 | void trap15(void)
 | 
|---|
| 227 | {
 | 
|---|
| 228 | }
 | 
|---|
| 229 | 
 | 
|---|
| 230 | void tsetup(void)
 | 
|---|
| 231 | {
 | 
|---|
| 232 | }
 | 
|---|
| 233 | 
 | 
|---|
| 234 | void tsplot4(int16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch)
 | 
|---|
| 235 | {
 | 
|---|
| 236 | }
 | 
|---|
| 237 | 
 | 
|---|
| 238 | int32_t uldiv(int32_t divid, int32_t divis)
 | 
|---|
| 239 | {
 | 
|---|
| 240 |     return 0;
 | 
|---|
| 241 | }
 | 
|---|
| 242 | 
 | 
|---|
| 243 | void vbank(uint16_t b)
 | 
|---|
| 244 | {
 | 
|---|
| 245 | }
 | 
|---|
| 246 | 
 | 
|---|
| 247 | void vclrav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len)
 | 
|---|
| 248 | {
 | 
|---|
| 249 | }
 | 
|---|
| 250 | 
 | 
|---|
| 251 | void vcputs(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str)
 | 
|---|
| 252 | {
 | 
|---|
| 253 | }
 | 
|---|
| 254 | 
 | 
|---|
| 255 | void vcputsv(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch)
 | 
|---|
| 256 | {
 | 
|---|
| 257 | }
 | 
|---|
| 258 | 
 | 
|---|
| 259 | void vfwait(void)
 | 
|---|
| 260 | {
 | 
|---|
| 261 | }
 | 
|---|
| 262 | 
 | 
|---|
| 263 | void VIint(void)
 | 
|---|
| 264 | {
 | 
|---|
| 265 | }
 | 
|---|
| 266 | 
 | 
|---|
| 267 | void vputa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t attrib)
 | 
|---|
| 268 | {
 | 
|---|
| 269 | }
 | 
|---|
| 270 | 
 | 
|---|
| 271 | void vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib)
 | 
|---|
| 272 | {
 | 
|---|
| 273 | }
 | 
|---|
| 274 | 
 | 
|---|
| 275 | void vputcv(uint16_t *adr, uint16_t row, uint16_t col, uint8_t chr, uint16_t atr, uint16_t cols)
 | 
|---|
| 276 | {
 | 
|---|
| 277 | }
 | 
|---|
| 278 | 
 | 
|---|
| 279 | void vputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val)
 | 
|---|
| 280 | {
 | 
|---|
| 281 | }
 | 
|---|
| 282 | 
 | 
|---|
| 283 | void vsetav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len)
 | 
|---|
| 284 | {
 | 
|---|
| 285 | }
 | 
|---|
| 286 | 
 | 
|---|
| 287 | void vsetcv(uint16_t *adr, uint16_t row, uint16_t col, uint16_t cfb, uint16_t len)
 | 
|---|
| 288 | {
 | 
|---|
| 289 | }
 | 
|---|
| 290 | 
 | 
|---|
| 291 | void vsplot4(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t row, uint16_t col, int8_t *str,
 | 
|---|
| 292 |              uint16_t pitch, uint16_t ht, int16_t cgtab[][256])
 | 
|---|
| 293 | {
 | 
|---|
| 294 | }
 | 
|---|
| 295 | 
 | 
|---|
| 296 | void vvputsv(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t bg, uint16_t row, uint16_t col,
 | 
|---|
| 297 |              int8_t *str, uint16_t pitch, uint16_t ht, int16_t cgtab[][256])
 | 
|---|
| 298 | {
 | 
|---|
| 299 | }
 | 
|---|
| 300 | 
 | 
|---|
| 301 | void vwputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val)
 | 
|---|
| 302 | {
 | 
|---|
| 303 | }
 | 
|---|
| 304 | 
 | 
|---|
| 305 | void vwputs(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str)
 | 
|---|
| 306 | {
 | 
|---|
| 307 | }
 | 
|---|
| 308 | 
 | 
|---|
| 309 | void xtrap15(void)
 | 
|---|
| 310 | {
 | 
|---|
| 311 | }
 | 
|---|