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

Last change on this file since 8438fb1 was 8c8b4e5, checked in by Thomas Lopatic <thomas@…>, 7 years ago

More volatile hardware accesses.

  • Property mode set to 100644
File size: 4.5 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 volatile int16_t timers[NTIMERS];
46extern int32_t uldivr;
47extern volatile uint16_t vi_sadr;
48extern volatile uint16_t vi_scrl;
49extern int16_t wzcrsh;
50
51/*
52 =============================================================================
53 external functions
54 =============================================================================
55*/
56
57extern void GLCplot(int16_t x, int16_t y, int16_t val);
58extern void Lo_RAM(void);
59extern void VIint(void);
60extern void _ptcl12(uint8_t *fat, int16_t cl, int16_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(int16_t obj);
72extern void objoff(int16_t obj, int16_t line, int16_t num);
73extern void objon(int16_t obj, int16_t line, int16_t num);
74extern void panic(void);
75extern void procpfl(int16_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 int16_t setipl(int16_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(volatile 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(int16_t b);
94extern void vclrav(volatile uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len);
95extern void vcputs(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str);
96extern 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);
97extern void vfwait(void);
98extern void vputa(volatile uint16_t *obase, int16_t row, int16_t col, uint16_t attr);
99extern void vputc(volatile uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr);
100extern void vputcv(volatile uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr, int16_t cols);
101extern void vputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val);
102extern void vsetav(volatile uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len);
103extern void vsetcv(volatile uint16_t *obase, int16_t row, int16_t col, uint16_t fgbg, int16_t len);
104extern 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]);
105extern 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]);
106extern void vwputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val);
107extern void vwputs(volatile 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.