source: buchla-68k/misc/proto.x@ 4810254

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

Always use (uint16_t *) for object pointers.

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