[526a993] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | proto.c -- external declarations
|
---|
| 4 | =============================================================================
|
---|
| 5 | */
|
---|
| 6 |
|
---|
[6262b5c] | 7 | #pragma once
|
---|
| 8 |
|
---|
| 9 | #include "score.h"
|
---|
| 10 | #include "setjmp.h"
|
---|
| 11 | #include "slice.h"
|
---|
| 12 | #include "stdint.h"
|
---|
[2340de6] | 13 | #include "timers.h"
|
---|
[6262b5c] | 14 | #include "vsdd.h"
|
---|
| 15 |
|
---|
| 16 | /*
|
---|
| 17 | =============================================================================
|
---|
[526a993] | 18 | external variables
|
---|
[6262b5c] | 19 | =============================================================================
|
---|
| 20 | */
|
---|
| 21 |
|
---|
[ad89950] | 22 | extern int8_t *M1IoRec;
|
---|
| 23 | extern int8_t *M2IoRec;
|
---|
| 24 | extern int8_t *S1IoRec;
|
---|
| 25 | extern int8_t *S2IoRec;
|
---|
| 26 | extern int8_t VerDate[];
|
---|
| 27 | extern int8_t ac_code;
|
---|
| 28 | extern uint32_t crshpc;
|
---|
| 29 | extern uint32_t crshrg[16];
|
---|
| 30 | extern uint32_t crshsp;
|
---|
| 31 | extern uint16_t crshsr;
|
---|
| 32 | extern uint16_t crshst[16];
|
---|
| 33 | extern uint32_t crshus;
|
---|
| 34 | extern int8_t crshvc[4];
|
---|
| 35 | extern int8_t edata;
|
---|
| 36 | extern int8_t end;
|
---|
| 37 | extern int16_t errno;
|
---|
| 38 | extern int8_t etext;
|
---|
| 39 | extern void (*foot1)(int16_t stat);
|
---|
| 40 | extern void (*foot2)(int16_t stat);
|
---|
| 41 | extern int16_t fp_resv[];
|
---|
| 42 | extern int32_t p_dlen;
|
---|
| 43 | extern void (*pulse1)(void);
|
---|
| 44 | extern void (*pulse2)(void);
|
---|
[23e1597] | 45 | extern volatile int16_t timers[NTIMERS];
|
---|
[ad89950] | 46 | extern int32_t uldivr;
|
---|
| 47 | extern volatile uint16_t vi_sadr;
|
---|
| 48 | extern volatile uint16_t vi_scrl;
|
---|
| 49 | extern int16_t wzcrsh;
|
---|
[6262b5c] | 50 |
|
---|
| 51 | /*
|
---|
| 52 | =============================================================================
|
---|
[526a993] | 53 | external functions
|
---|
[6262b5c] | 54 | =============================================================================
|
---|
| 55 | */
|
---|
| 56 |
|
---|
[6a37d5b] | 57 | extern void GLCplot(int16_t x, int16_t y, int16_t val);
|
---|
[6262b5c] | 58 | extern void Lo_RAM(void);
|
---|
| 59 | extern void VIint(void);
|
---|
[8973acd] | 60 | extern void _ptcl12(uint8_t *fat, int16_t cl, int16_t val);
|
---|
[6262b5c] | 61 | extern void clrvce(int16_t vce);
|
---|
| 62 | extern void execins(int16_t vce, int16_t ins, int16_t tag);
|
---|
| 63 | extern void execkey(int16_t trg, int16_t pch, int16_t vce, int16_t tag);
|
---|
| 64 | extern void fpuclr(void);
|
---|
| 65 | extern void fpuint(void);
|
---|
| 66 | extern uint16_t fromfpu(uint16_t fputime);
|
---|
| 67 | extern void halt(void);
|
---|
| 68 | extern void hdvini(void);
|
---|
| 69 | extern void jumpto(void *addr);
|
---|
| 70 | extern void longjmp(struct JMP_BUF *env, int16_t val);
|
---|
[6a37d5b] | 71 | extern void objclr(int16_t obj);
|
---|
| 72 | extern void objoff(int16_t obj, int16_t line, int16_t num);
|
---|
| 73 | extern void objon(int16_t obj, int16_t line, int16_t num);
|
---|
[6262b5c] | 74 | extern void panic(void);
|
---|
[6a37d5b] | 75 | extern void procpfl(int16_t trig);
|
---|
[6262b5c] | 76 | extern int32_t rand24(void);
|
---|
| 77 | extern void rjumpto(void *addr);
|
---|
| 78 | extern void se_disp(struct s_entry *ep, int16_t sd, struct gdsel *gdstb[], int16_t cf);
|
---|
| 79 | extern struct s_entry *se_exec(struct s_entry *ep, int16_t sd);
|
---|
[6a37d5b] | 80 | extern int16_t setipl(int16_t arg);
|
---|
[6262b5c] | 81 | extern int16_t setjmp(struct JMP_BUF *env);
|
---|
| 82 | extern void setsio(void);
|
---|
| 83 | extern uint16_t setsr(uint16_t sr);
|
---|
| 84 | extern void sjumpto(void *addr, void *stack);
|
---|
| 85 | extern void sreset(void);
|
---|
| 86 | extern uint16_t tofpu(uint16_t time);
|
---|
| 87 | extern int32_t trap13(int16_t fun, ...);
|
---|
| 88 | extern int32_t trap14(int16_t fun, ...);
|
---|
| 89 | extern void trap15(void);
|
---|
| 90 | extern void tsetup(void);
|
---|
[8c8b4e5] | 91 | extern void tsplot4(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
|
---|
[6262b5c] | 92 | extern int32_t uldiv(int32_t divid, int32_t divis);
|
---|
[6a37d5b] | 93 | extern void vbank(int16_t b);
|
---|
[8c8b4e5] | 94 | extern void vclrav(volatile uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len);
|
---|
| 95 | extern void vcputs(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str);
|
---|
| 96 | extern void vcputsv(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
|
---|
[6262b5c] | 97 | extern void vfwait(void);
|
---|
[8c8b4e5] | 98 | extern void vputa(volatile uint16_t *obase, int16_t row, int16_t col, uint16_t attr);
|
---|
| 99 | extern void vputc(volatile uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr);
|
---|
| 100 | extern void vputcv(volatile uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr, int16_t cols);
|
---|
[6262b5c] | 101 | extern void vputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val);
|
---|
[8c8b4e5] | 102 | extern void vsetav(volatile uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len);
|
---|
| 103 | extern void vsetcv(volatile uint16_t *obase, int16_t row, int16_t col, uint16_t fgbg, int16_t len);
|
---|
| 104 | extern void vsplot4(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch, int16_t ht, int16_t cgtab[][256]);
|
---|
| 105 | extern void vvputsv(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch, int16_t ht, int16_t cgtab[][256]);
|
---|
[6262b5c] | 106 | extern void vwputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val);
|
---|
[8c8b4e5] | 107 | extern void vwputs(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str);
|
---|
[6262b5c] | 108 | extern void xtrap15(void);
|
---|