Changeset f7428b1 in buchla-68k
- Timestamp:
- 07/10/2017 01:26:59 AM (8 years ago)
- Branches:
- master
- Children:
- 5fa506d
- Parents:
- c3aee8a
- Files:
-
- 3 added
- 10 deleted
- 55 edited
Legend:
- Unmodified
- Added
- Removed
-
.cproject
rc3aee8a rf7428b1 37 37 <listOptionValue builtIn="false" value=""${workspace_loc:/buchla-68k/include}""/> 38 38 </option> 39 <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1679007067" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> 40 <listOptionValue builtIn="false" value="int8_t=char"/> 41 <listOptionValue builtIn="false" value=""uint8_t=unsigned char""/> 42 <listOptionValue builtIn="false" value="int16_t=short"/> 43 <listOptionValue builtIn="false" value=""uint16_t=unsigned short""/> 44 <listOptionValue builtIn="false" value="int32_t=long"/> 45 <listOptionValue builtIn="false" value=""uint32_t=unsigned long""/> 46 </option> 39 <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1679007067" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"/> 47 40 <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.807901839" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> 48 41 </tool> -
include/ascii.h
rc3aee8a rf7428b1 5 5 ========================================================================== 6 6 */ 7 8 #pragma once 7 9 8 10 #define A_NUL 0x00 /* ^@ */ -
include/asgdsp.h
rc3aee8a rf7428b1 3 3 asgdsp.h -- assignment editor common parameter header file 4 4 Version 8 -- 1988-04-18 -- D.N. Lynx Crowe 5 6 Uses definitions from: "graphdef.h", "midas.h", "vsdd.h"7 5 ============================================================================= 8 6 */ 7 8 #pragma once 9 #include "stdint.h" 9 10 10 11 struct asgent { /* assignment table library entry structure */ … … 32 33 #define ASGPRI 8 /* display object priority */ 33 34 34 #define ASGNFL (V_RES3)/* display object flags */35 #define ASGNFL V_RES3 /* display object flags */ 35 36 36 37 #define AK_BASE 158 /* top y value of group 1 select line */ -
include/biosdefs.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 extern int32_t trap13(int16_t fun, ...); 9 extern int32_t trap14(int16_t fun, ...); 8 #pragma once 9 #include "stdint.h" 10 10 11 11 #define BIOS trap13 -
include/charset.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #define SP_P1 0xA0 /* normal +1 */ -
include/cmeta.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 extern void CMinit(int8_t *ip); 9 extern int16_t CMstat(int8_t *msg); 10 extern int16_t CMchr(int8_t c); 11 extern int16_t CMuchr(int8_t c); 12 extern int16_t CMstr(int8_t *s); 13 extern int16_t CMustr(int8_t *s); 14 extern int16_t CMlong(void); 15 extern int16_t CMdig(void); 16 extern int16_t CMlist(int8_t *l[]); 17 extern int16_t CMulist(int8_t *l[]); 18 19 extern int16_t QQsw; 20 extern int16_t QQanch; 21 22 extern int8_t *QQin; 23 extern int8_t *QQip; 24 extern int8_t *QQop; 25 26 extern int32_t QQnum; 27 extern int16_t QQlnum; 28 extern int8_t QQchr; 29 extern int8_t QQdig; 30 31 extern int8_t QQstr[]; 8 #pragma once 32 9 33 10 #define CM_CHR(c) CMchr(c) -
include/configs.h
rc3aee8a rf7428b1 1 #pragma once 2 #include "stdint.h" 3 1 4 #define MAXCFG 12 2 5 -
include/ctype.h
rc3aee8a rf7428b1 10 10 the equivalent Lattice C macros. This means that isascii(c) should 11 11 be used if it is necessary to restrict the results to true ASCII. 12 13 If SYS5CODE is TRUE these macros will use the same table definitions14 as System 5 Unix(tm). In this case these behave well even when fed15 an EOF. The EOF character value, -1, is not defined as being in any16 of the classes tested for. If SYS5CODE is FALSE, the Alcyon table17 will be used, and EOF will not work properly.18 19 Define _CTYPE_C for compiling the ctype.c file, undefine otherwise.20 21 The symbol _ii_ is defined to be the base of the table used.22 12 23 13 isascii(c) non-zero if c is ASCII … … 46 36 _tolower(c) returns the lower case version of c 47 37 _toupper(c) returns the upper case version of c 48 49 tonumber(c) converts c from ASCII to integer50 38 ============================================================================ 51 39 */ … … 55 43 */ 56 44 57 #define SYS5CODE 0 /* define non-zero for System 5 / Aztec C */ 58 59 #if SYS5CODE 60 61 #define _ii_ _ctype+1 62 63 /* System 5 Unix(tm) / Aztec C table definitions */ 64 65 #define _U 0x01 /* upper case */ 66 #define _L 0x02 /* lower case */ 67 #define _N 0x04 /* numeric 0..9 */ 68 #define _S 0x08 /* whitespace */ 69 #define _P 0x10 /* punctuation */ 70 #define _C 0x20 /* control 00..1F */ 71 #define _B 0x40 /* blank */ 72 #define _X 0x80 /* hex digit */ 73 74 #else 75 76 #define _ii_ __atab 45 #pragma once 77 46 78 47 /* Digital Research / Alcyon C table definitions */ … … 87 56 #define _X 0x80 /* hex digit */ 88 57 89 #endif90 91 #ifndef _CTYPE_C92 93 #if SYS5CODE94 95 extern char _ctype[]; /* character type table */96 97 #else /* SYS5CODE */98 99 extern void ___atab(void);100 extern int8_t __atab[]; /* character type table */101 102 #endif /* SYS5CODE */103 104 extern int16_t tolower(int16_t c);105 extern int16_t toupper(int16_t c);106 107 #endif /* _CTYPE_C */108 109 58 /* 110 59 111 60 */ 112 61 113 #define isascii(c) (!((c) &~0x7F))62 #define isascii(c) (!((c) & ~0x7f)) 114 63 115 #define isprint(c) ( (_ii_)[c]&(_P|_U|_L|_N|_B))116 #define isgraph(c) ( (_ii_)[c]&(_P|_U|_L|_N))117 #define iscntrl(c) ( (_ii_)[c]&_C)64 #define isprint(c) (__atab[(c) & 0xff] & (_P | _U | _L | _N | _B)) 65 #define isgraph(c) (__atab[(c) & 0xff] & (_P | _U | _L | _N)) 66 #define iscntrl(c) (__atab[(c) & 0xff] & _C) 118 67 119 #define isalpha(c) ( (_ii_)[c]&(_U|_L))120 #define isupper(c) ( (_ii_)[c]&_U)121 #define islower(c) ( (_ii_)[c]&_L)68 #define isalpha(c) (__atab[(c) & 0xff] & (_U | _L)) 69 #define isupper(c) (__atab[(c) & 0xff] & _U) 70 #define islower(c) (__atab[(c) & 0xff] & _L) 122 71 123 #define isdigit(c) ( (_ii_)[c]&_N)124 #define isxdigit(c) ( (_ii_)[c]&_X)72 #define isdigit(c) (__atab[(c) & 0xff] & _N) 73 #define isxdigit(c) (__atab[(c) & 0xff] & _X) 125 74 126 #define isalnum(c) ( (_ii_)[c]&(_U|_L|_N))75 #define isalnum(c) (__atab[(c) & 0xff] & (_U | _L | _N)) 127 76 128 #define isspace(c) ( (_ii_)[c]&_S)129 #define ispunct(c) ( (_ii_)[c]&_P)77 #define isspace(c) (__atab[(c) & 0xff] & _S) 78 #define ispunct(c) (__atab[(c) & 0xff] & _P) 130 79 131 #define iscsym(c) (isalnum(c) ||(((c)&127)==0x5F))132 #define iscsymf(c) (isalpha(c) ||(((c)&127)==0x5F))80 #define iscsym(c) (isalnum(c) || (((c) & 0x7f) == 0x5f)) 81 #define iscsymf(c) (isalpha(c) || (((c) & 0x7f) == 0x5f)) 133 82 134 #define toascii(c) ((c) &0x7F)83 #define toascii(c) ((c) & 0x7f) 135 84 136 #define _toupper(c) ((c)-'a'+'A') 137 #define _tolower(c) ((c)-'A'+'a') 138 139 #define tonumber(c) ((((c)&0x7F)>'9')?((islower(c)?_toupper(c):c)-'A'+10):(c&0x0F)) 140 85 #define _toupper(c) ((c) - 'a' + 'A') 86 #define _tolower(c) ((c) - 'A' + 'a') -
include/curpak.h
rc3aee8a rf7428b1 6 6 7 7 */ 8 9 #pragma once 10 #include "stdint.h" 8 11 9 12 /* cursor types */ -
include/debug.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #ifdef DEBUGGER -
include/dfltins.h
rc3aee8a rf7428b1 1 #pragma once 2 #include "stdint.h" 1 3 2 4 uint16_t dfltins[] = { /* default instrument */ -
include/errdefs.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 #define ERR01 -1L /* All purpose general error code */ 9 #define ERR02 -2L /* Drive not ready */ 10 #define ERR03 -3L /* Unknown command */ 11 #define ERR04 -4L /* CRC error */ 12 #define ERR05 -5L /* Invalid request */ 13 #define ERR06 -6L /* Seek error */ 14 #define ERR07 -7L /* Unknown media */ 15 #define ERR08 -8L /* Sector not found */ 16 #define ERR09 -9L /* End of media or out of paper */ 17 #define ERR10 -10L /* Write fault */ 18 #define ERR11 -11L /* Read fault */ 19 #define ERR12 -12L /* General mishap */ 20 #define ERR13 -13L /* Write protected */ 21 #define ERR14 -14L /* Media change */ 22 #define ERR15 -15L /* Unknown device */ 23 #define ERR16 -16L /* Bad sectors */ 24 #define ERR17 -17L /* Insert disk */ 8 #pragma once 9 10 #define ERR01 -1 /* All purpose general error code */ 11 #define ERR02 -2 /* Drive not ready */ 12 #define ERR03 -3 /* Unknown command */ 13 #define ERR04 -4 /* CRC error */ 14 #define ERR05 -5 /* Invalid request */ 15 #define ERR06 -6 /* Seek error */ 16 #define ERR07 -7 /* Unknown media */ 17 #define ERR08 -8 /* Sector not found */ 18 #define ERR09 -9 /* End of media or out of paper */ 19 #define ERR10 -10 /* Write fault */ 20 #define ERR11 -11 /* Read fault */ 21 #define ERR12 -12 /* General mishap */ 22 #define ERR13 -13 /* Write protected */ 23 #define ERR14 -14 /* Media change */ 24 #define ERR15 -15 /* Unknown device */ 25 #define ERR16 -16 /* Bad sectors */ 26 #define ERR17 -17 /* Insert disk */ -
include/errno.h
rc3aee8a rf7428b1 7 7 */ 8 8 9 extern int16_t errno; 9 #pragma once 10 10 11 11 #define EPERM 1 -
include/fcntl.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 #pragma once 9 8 10 /* 9 11 ============================================================================= … … 12 14 ============================================================================= 13 15 */ 14 15 #ifndef O_RDONLY /* only define these once */16 16 17 17 #define O_RDONLY 0x0000 /* Read-only value */ … … 28 28 #define O_RAW 0x8000 /* Raw (binary) I/O flag for getc and putc */ 29 29 30 #endif31 32 30 /* 33 31 ============================================================================= -
include/fields.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 #define MAXEBUF 80 /* maximum length of data in the edit buffer */ … … 34 37 /* box-hit function */ 35 38 }; 36 37 #ifndef FET_DEFS38 extern int16_t ebflag; /* edit buffer setup flag */39 extern int8_t ebuf[MAXEBUF+1]; /* edit buffer */40 41 extern struct fet *curfet; /* current fet table pointer */42 extern struct fet *cfetp, *infetp; /* current and new fet entry pointers */43 #endif -
include/fpu.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 /* preprocessor functions */ -
include/fspars.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 # ifndef NSTREAMS /* ony define these once */8 #pragma once 9 9 10 10 #define TBUFFER 1 /* non-zero to enable track buffering */ … … 14 14 #define MAXDFILE 8 /* maximum number of open DISK files */ 15 15 16 #define BUFSIZL 256 /* buffer length -- longs */ 17 #define BUFSIZ (sizeof (int32_t) * BUFSIZL) /* buffer length -- chars */ 16 #define BUFSIZL 256 /* buffer length -- longs */ 17 #define BUFSIZ (sizeof (int32_t) * BUFSIZL) 18 /* buffer length -- chars */ 18 19 19 20 #define BPSEC 512 /* bytes per disk sector */ … … 24 25 #define MAXDIRNT 224 /* maximum number of directory entries */ 25 26 26 typedef int8_t *io_arg; /* must be big enough to contain a pointer */ 27 28 #endif 27 typedef void *io_arg; /* must be big enough to contain a pointer */ -
include/glcbars.h
rc3aee8a rf7428b1 3 3 Created: 1988-08-04 17:50:28 4 4 */ 5 6 #pragma once 7 #include "stdint.h" 5 8 6 9 int16_t BBase = 9; /* bottom line of bar graph */ -
include/glcdefs.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #define G_INIT (int8_t)0x40 -
include/graphdef.h
rc3aee8a rf7428b1 8 8 */ 9 9 10 #pragma once 11 10 12 #define CLR 0 11 13 #define SET 1 … … 14 16 #define YPIX 350 15 17 16 #define XCTR XPIX/217 #define YCTR YPIX/218 #define XCTR (XPIX / 2) 19 #define YCTR (YPIX / 2) 18 20 19 #define XMAX XPIX-120 #define YMAX YPIX-121 #define XMAX (XPIX - 1) 22 #define YMAX (YPIX - 1) 21 23 22 24 #define P_BLK 0 /* colors for external PROM color table */ -
include/hwdefs.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 #pragma once 9 #include "stdint.h" 10 8 11 /* hardware addresses */ 9 12 10 extern int8_t io_time[], io_lcd, io_ser, io_midi; 11 extern int8_t io_disk, io_tone, io_leds, io_kbrd; 12 extern int8_t lcd_a0, lcd_a1; 13 extern uint16_t io_fpu[]; 14 extern uint8_t io_time[]; 15 extern uint8_t io_lcd; 16 extern uint8_t io_ser; 17 extern uint8_t io_midi; 18 extern uint8_t io_disk; 19 extern uint8_t io_tone; 20 extern uint8_t io_leds; 21 extern uint8_t io_kbrd; 22 extern uint8_t lcd_a0; 23 extern uint8_t lcd_a1; 13 24 14 extern uint16_t io_vreg[], io_vraw[], io_vram[], io_fpu[]; 15 25 extern uint16_t io_vreg[]; 26 extern uint16_t io_vraw[]; 27 extern uint16_t io_vram[]; 16 28 17 29 /* video memory allocations */ 18 30 19 extern uint16_t v_regs[], v_odtab[][4], v_actab[]; 20 extern uint16_t v_ct0[], v_gt1[], v_score[], v_cgtab[]; 31 extern uint16_t v_regs[]; 32 extern uint16_t v_odtab[][4]; 33 extern uint16_t v_actab[]; 34 extern uint16_t v_ct0[]; 35 extern uint16_t v_gt1[]; 36 extern uint16_t v_score[]; 37 extern uint16_t v_cgtab[]; 21 38 22 extern uint16_t v_curs0[], v_curs1[], v_curs2[], v_curs3[]; 23 extern uint16_t v_curs4[], v_curs5[], v_curs6[], v_curs7[]; 24 extern uint16_t v_tcur[], v_kbobj[], v_lnobj[]; 25 extern uint16_t v_win0[], v_cur[]; 26 39 extern uint16_t v_curs0[]; 40 extern uint16_t v_curs1[]; 41 extern uint16_t v_curs2[]; 42 extern uint16_t v_curs3[]; 43 extern uint16_t v_curs4[]; 44 extern uint16_t v_curs5[]; 45 extern uint16_t v_curs6[]; 46 extern uint16_t v_curs7[]; 47 extern uint16_t v_tcur[]; 48 extern uint16_t v_kbobj[]; 49 extern uint16_t v_lnobj[]; 50 extern uint16_t v_win0[]; 51 extern uint16_t v_cur[]; 27 52 28 53 /* stuff in the depths of the bios */ 29 54 30 extern int16_t fc_sw; 31 32 extern int32_t fc_val; 33 55 extern int16_t fc_sw; 56 extern int32_t fc_val; -
include/instdsp.h
rc3aee8a rf7428b1 3 3 instdsp.h -- instrument editor definitions 4 4 Version 37 -- 1988-08-30 -- D.N. Lynx Crowe 5 6 Uses definitions from: "graphdef.h", "midas.h", "vsdd.h"7 5 ============================================================================= 8 6 */ 7 8 #pragma once 9 #include "stdint.h" 10 #include "midas.h" 9 11 10 12 /* --------------- Miscellaneous Instrument display definitions ------------- */ … … 19 21 #define TCPRI 15 /* text cursor priority */ 20 22 21 #define INSTFL (V_RES3)/* instrument display object flags */22 #define TCURFL (V_RES3)/* text cursor display flags */23 #define INSTFL V_RES3 /* instrument display object flags */ 24 #define TCURFL V_RES3 /* text cursor display flags */ 23 25 24 26 #define CBORD 9 /* color of border */ … … 197 199 int16_t idhflag; /* flags */ 198 200 199 int8_t idhname[MAXIDLN +1]; /* instrument name */200 int8_t idhcom1[MAXIDLN +1]; /* first line of comments */201 int8_t idhcom2[MAXIDLN +1]; /* second line of comments */202 int8_t idhcom3[MAXIDLN +1]; /* third line of comments */201 int8_t idhname[MAXIDLN + 1]; /* instrument name */ 202 int8_t idhcom1[MAXIDLN + 1]; /* first line of comments */ 203 int8_t idhcom2[MAXIDLN + 1]; /* second line of comments */ 204 int8_t idhcom3[MAXIDLN + 1]; /* third line of comments */ 203 205 204 206 int8_t idhcfg; /* configuration byte */ -
include/io.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 #pragma once 9 #include "stdint.h" 8 10 #include "fspars.h" /* file system parameters */ 9 11 … … 33 35 io_arg d_arg; /* argument to device driver */ 34 36 }; 35 36 #ifndef _FS_DEF_37 38 extern struct channel chantab[MAXCHAN]; /* defined in fsinit.c */39 extern int8_t Wrkbuf[BPSEC]; /* defined in fsinit.c */40 41 #endif -
include/knmtab.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 /* -
include/lcdline.h
rc3aee8a rf7428b1 6 6 Note: LCD characters are 5x7 in a 6x8 envelope. 7 7 8 The LCD char cter addresses start with (0,0) in the8 The LCD character addresses start with (0,0) in the 9 9 upper left corner. 8 rows of 85 characters. 10 10 … … 13 13 ============================================================================= 14 14 */ 15 16 #pragma once 15 17 16 18 #define RP_PL 153 /* "R/P" underscore - "P" X left */ … … 25 27 26 28 #define LAMP_XL 78 27 #define LAMP_XR LAMP_XL+2329 #define LAMP_XR (LAMP_XL + 23) 28 30 #define LAMP_Y 54 29 31 30 32 #define GOTO_XL 186 31 #define GOTO_XR GOTO_XL+2933 #define GOTO_XR (GOTO_XL + 29) 32 34 #define GOTO_Y 54 33 35 34 36 #define ASGN_XL 258 35 #define ASGN_XR ASGN_XL+2937 #define ASGN_XR (ASGN_XL + 29) 36 38 #define ASGN_Y 54 37 39 38 40 #define LOAD_XL 294 39 #define LOAD_XR LOAD_XL+2341 #define LOAD_XR (LOAD_XL + 23) 40 42 #define LOAD_Y 54 -
include/libdsp.h
rc3aee8a rf7428b1 7 7 ============================================================================= 8 8 */ 9 10 #pragma once 11 #include "stdint.h" 9 12 10 13 #define LIBROBJ 8 /* librarian display object number */ … … 117 120 #define LH_LEN (sizeof (struct mlibhdr)) 118 121 119 #define OR_LEN1 ((int32_t)&idefs[0].idhwvaf[0] -(int32_t)&idefs[0].idhflag)122 #define OR_LEN1 ((int32_t)&idefs[0].idhwvaf[0] - (int32_t)&idefs[0].idhflag) 120 123 #define OR_LEN2 (2 * (NUMWPNT + NUMHARM)) 121 122 #ifndef M7CAT123 extern struct fcat filecat[];124 #endif -
include/macros.h
rc3aee8a rf7428b1 8 8 */ 9 9 10 #ifndef abs 10 #pragma once 11 11 12 #define abs(x) ((x) < 0 ? -(x) : (x)) 12 # endif13 #define sign(x, y) ((x) < 0 ? -(y) : (y)) 13 14 14 #ifndef sign 15 #define sign(x,y) ((x) < 0 ? -(y) : (y)) 16 #endif 15 #define min(x, y) ((x) > (y) ? (y) : (x)) 16 #define max(x, y) ((x) > (y) ? (x) : (y)) 17 17 18 #ifndef min 19 #define min(x,y) ((x) > (y) ? (y) : (x)) 20 #endif 21 22 #ifndef max 23 #define max(x,y) ((x) > (y) ? (x) : (y)) 24 #endif 25 26 #ifndef inrange 27 #define inrange(var,lo,hi) (((var) >= (lo)) && ((var) <= (hi))) 28 #endif 18 #define inrange(var, lo, hi) \ 19 (((var) >= (lo)) && ((var) <= (hi))) -
include/menu.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #define MCURSOR 1 /* cursor color */ … … 21 23 #define MENUPRI 8 22 24 23 #define MENUFL (V_RES3) 24 25 #define MENUFL V_RES3 -
include/midas.h
rc3aee8a rf7428b1 3 3 midas.h -- MIDAS 700 global definitions 4 4 Version 38 -- 1989-12-19 -- D.N. Lynx Crowe 5 6 Uses definitions from: "graphdef.h", "vsdd.h"7 5 ============================================================================= 8 6 */ 9 7 10 typedef void (*LPF)(int16_t _1, int16_t _2); /* pointer to a LCD panel function */ 8 #pragma once 9 #include "stdint.h" 11 10 12 #define SM_SCALE(x) (((x) * 252) & 0x7FE0) 13 #define ART_VAL(x) (((((x)-5) > 100) ? 100 : (((x)-5) < 0 ? 0 : ((x)-5)))*320) 11 typedef void (*LPF)(int16_t _1, int16_t _2); /* pointer to a LCD panel function */ 14 12 15 #define CWORD(x) ((short)((x)|((x)<<4)|((x)<<8)|((x)<<12))) 13 #define SM_SCALE(x) (((x) * 252) & 0x7fe0) 14 #define ART_VAL(x) (((((x) - 5) > 100) ? 100 : (((x) - 5) < 0 ? 0 : ((x) - 5))) * 320) 15 16 #define CWORD(x) ((int16_t)((x) | ((x) << 4) | ((x) << 8) | ((x) << 12))) 16 17 17 18 #define CTOX(C) ((C) << 3) /* column to x pixel value */ … … 25 26 #define GCURS 0 /* graphic cursor object number */ 26 27 27 #define BIT2 (V_RES2)/* graphics - 2 bit pixels */28 #define BIT3 (V_RES3)/* graphics - 4 bit pixels */29 #define CHR2 (0)/* characters - no attributes */28 #define BIT2 V_RES2 /* graphics - 2 bit pixels */ 29 #define BIT3 V_RES3 /* graphics - 4 bit pixels */ 30 #define CHR2 0 /* characters - no attributes */ 30 31 #define CHR3 (V_FAD | V_HCR) /* characters - full attributes */ 31 32 32 33 #define OBFL_00 (BIT3 | V_TDE) /* cursor - arrow */ 33 34 34 #define LIBRFL (V_RES3)/* librarian display object flags */35 #define LIBRFL V_RES3 /* librarian display object flags */ 35 36 36 37 #define TTCURS 2 /* typewriter cursor object */ … … 102 103 #define M_LCLHLD 0x40 /* MIDI local hold status */ 103 104 #define M_CHNHLD 0x80 /* MIDI channel hold status */ 104 #define MKEYHELD (M_CHNHLD | M_LCLHLD) /* key held */ 105 #define MKEYHELD (M_CHNHLD | M_LCLHLD) 106 /* key held */ 105 107 106 #define PITCHMIN 320 107 #define PITCHMAX 21920 108 #define PITCHMIN 320 /* C0 in 1/2 cents (160 cents) */ 109 #define PITCHMAX 21920 /* C9 in 1/2 cents (10960 cents) */ 108 110 109 111 #define GTAG1 0x0100 -
include/objdefs.h
rc3aee8a rf7428b1 5 5 ============================================================================ 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 struct EXFILE { /* executable file header */ -
include/panel.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 /* ----- performance key states (in pkctrl) ----- */ -
include/patch.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 #define MAXPATCH 256 /* patch table size */ … … 19 22 #define NPTEQELS 256 /* number of trigger fifo entries */ 20 23 21 #define NPTEQLO (NPTEQELS >> 2) /* trigger fifo lo water */ 22 #define NPTEQHI (NPTEQELS - NPTEQLO) /* trigger fifo hi water */ 24 #define NPTEQLO (NPTEQELS >> 2) /* trigger fifo lo water */ 25 #define NPTEQHI (NPTEQELS - NPTEQLO) 26 /* trigger fifo hi water */ 23 27 24 28 #define NULL_DEF 0x1200 /* blank definer code */ … … 69 73 uint16_t seqdat3; /* action 3 data */ 70 74 }; 71 72 /*73 74 */75 76 /* Patch table references */77 78 #ifndef PATCHDEF79 extern int8_t stmptr[]; /* stimulus pointer table */80 extern int8_t defptr[]; /* definition pointer table */81 82 extern struct patch patches[]; /* patch table */83 84 extern struct defent defents[]; /* definition control table */85 #endif86 87 88 /* Sequence table references */89 90 #ifndef SEQDEFS91 extern struct seqent seqtab[]; /* sequence table */92 93 extern uint16_t seqflag[16]; /* sequence flags */94 extern uint16_t seqline[16]; /* sequence line */95 extern uint16_t seqstim[16]; /* sequence stimulus */96 extern uint16_t seqtime[16]; /* sequence timers */97 extern uint16_t sregval[16]; /* register values */98 extern uint16_t trstate[16]; /* trigger states */99 100 #endif101 75 102 76 /* -
include/ptdisp.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 #pragma once 9 8 10 #define OB08LOC 0 /* offset to headings */ 9 11 #define OB09LOC 1024 /* offset to patches */ … … 11 13 #define OB11LOC 4096 /* offset to menu */ 12 14 13 #define PDFL_08 (CHR3)/* heading object flags */14 #define PDFL_09 (CHR3)/* patch entry object flags */15 #define PDFL_10 (BIT3)/* sequence status object flags */16 #define PDFL_11 (CHR3)/* menu object flags */15 #define PDFL_08 CHR3 /* heading object flags */ 16 #define PDFL_09 CHR3 /* patch entry object flags */ 17 #define PDFL_10 BIT3 /* sequence status object flags */ 18 #define PDFL_11 CHR3 /* menu object flags */ 17 19 18 20 #define PTBATR 0x00E2 /* colors for border */ -
include/ptoftab.h
rc3aee8a rf7428b1 1 #pragma once 2 #include "stdint.h" 1 3 2 4 /* Pitch to Frequency */ -
include/ratio.h
rc3aee8a rf7428b1 1 #pragma once 2 #include "stdint.h" 1 3 2 4 /* ratio.h -- generated: 1988-08-25 19:23:42 */ -
include/regs.h
rc3aee8a rf7428b1 8 8 ============================================================================ 9 9 */ 10 11 #pragma once 12 #include "stdint.h" 10 13 11 14 struct regs { -
include/scdsp.h
rc3aee8a rf7428b1 3 3 scdsp.h -- score display definitions 4 4 Version 14 -- 1988-08-16 -- D.N. Lynx Crowe 5 6 Uses definitions from "graphdef.h", "midas.h" and "vsdd.h"7 5 ============================================================================= 8 6 */ 7 8 #pragma once 9 9 10 10 #define SCOROBP 1 /* score object priority */ … … 13 13 #define N_FLAT 1 /* note control code for flats */ 14 14 15 #define OBFL_01 (BIT3)/* cursor - underline */15 #define OBFL_01 BIT3 /* cursor - underline */ 16 16 17 #define OBFL_08 (CHR3)/* character text */17 #define OBFL_08 CHR3 /* character text */ 18 18 19 #define OBFL_11 (BIT3)/* window */19 #define OBFL_11 BIT3 /* window */ 20 20 21 #define OBFL_13 (BIT3)/* keyboard */21 #define OBFL_13 BIT3 /* keyboard */ 22 22 #define OBFL_14 (BIT3 | V_TDE) /* score */ 23 23 #define OBFL_15 (BIT3 | V_TDE) /* lines */ -
include/sclock.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #define CK_LOCAL 0 -
include/score.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 #define MAX_SE 32768L /* number of longs for score storage */ … … 70 73 /* constant definitions */ 71 74 72 #define E_NULL (struct s_entry *)0L75 #define E_NULL ((struct s_entry *)0L) 73 76 74 77 #define E_SIZE1 5 /* event size 1 -- 5 longs -- 20 bytes */ -
include/scwheel.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #define NSWFIFO 100 /* scroll wheel FIFO size */ -
include/secops.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #define SOP_NUL 0 /* No section operation pending */ -
include/setjmp.h
rc3aee8a rf7428b1 14 14 ============================================================================= 15 15 */ 16 17 #pragma once 18 #include "stdint.h" 16 19 17 20 struct JMP_BUF { /* setjmp() / longjmp() environment structure */ -
include/slice.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 #define MAXFSL 256 /* size of the gdsel free list */ -
include/smdefs.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 struct sment { -
include/stdarg.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 #pragma once 9 #include "stdint.h" 10 8 11 typedef int8_t *va_list; 9 12 … … 11 14 #define va_arg(ap, type) (ap += sizeof(type), ap[-1]) 12 15 #define va_end(ap) 13 -
include/stddefs.h
rc3aee8a rf7428b1 3 3 stddefs.h -- Standard definitions for C programs 4 4 Version 12 -- 1987-12-15 -- D.N. Lynx Crowe 5 6 Must follow stdio.h if stdio.h is used as both define:7 8 NULL, EOF.9 10 Must follow define.h on the Atari if define.h is used as both define:11 12 NULL, EOF, FOREVER, TRUE, FALSE, FAILURE, SUCCESS,13 YES, NO, EOS, NIL.14 15 5 Released to Public Domain - 1987-06 - D.N. Lynx Crowe 16 6 ============================================================================ 17 7 */ 18 8 19 #ifndef STD_DEFS /* so we only define these once */ 20 21 #define STD_DEFS 1 9 #pragma once 10 #include "stdint.h" 22 11 23 12 /* relational operators */ … … 36 25 #define OR || 37 26 38 /* infinite loop constructs */39 40 #ifndef FOREVER41 #define FOREVER for(;;)42 #endif43 44 #ifndef REPEAT45 #define REPEAT for(;;)46 #endif47 48 27 /* 49 28 50 29 */ 51 30 52 /* various terminators */53 54 #ifndef EOF55 #define EOF (-1)56 #endif57 58 #ifndef EOS59 #define EOS '\0'60 #endif61 62 #ifndef NIL63 #define NIL 064 #endif65 66 31 /* manifest constants for function return and flag values */ 67 32 68 #ifndef NULL 69 #define NULL 0 70 #endif 33 #define FAILURE -1 /* Function failure return val */ 34 #define SUCCESS 0 /* Function success return val */ 71 35 72 #ifndef YES 73 #define YES 1 74 #endif 36 #define FOREVER for (;;) /* Infinite loop declaration */ 75 37 76 #ifndef NO 77 #define NO 0 78 #endif 38 #define NULL 0 /* Null pointer value */ 79 39 80 #ifndef FALSE 81 #define FALSE 0 82 #endif 83 84 #ifndef TRUE 85 #define TRUE 1 86 #endif 87 88 #ifndef SUCCESS 89 #define SUCCESS 0 90 #endif 91 92 #ifndef FAILURE 93 #define FAILURE (-1) 94 #endif 40 #define TRUE 1 /* Function TRUE value */ 41 #define FALSE 0 /* Function FALSE value */ 95 42 96 43 /* BOOL type definition for flag variables */ 97 44 98 45 typedef int8_t BOOL; 99 100 #endif -
include/stdio.h
rc3aee8a rf7428b1 6 6 */ 7 7 8 #pragma once 9 #include "stdint.h" 8 10 #include "fspars.h" /* file system parameters */ 9 11 10 #define NULL 011 12 #define EOF -1 12 13 … … 33 34 } FILE; 34 35 35 #ifndef _FS_DEF_36 37 extern FILE Cbuffs[NSTREAMS]; /* table of FILE structures */38 extern int8_t *Stdbufs; /* free list of buffers */39 extern int32_t Stdbuf[MAXDFILE][BUFSIZL]; /* buffers */40 41 #endif42 43 extern int32_t ftell(FILE *fp);44 extern int8_t *gets(int8_t *line);45 extern int8_t *fgets(int8_t *s, int16_t n, FILE *fp);46 extern FILE *fopen(int8_t *name, int8_t *mode);47 extern FILE *fopena(int8_t *name, int8_t *mode);48 extern FILE *fopenb(int8_t *name, int8_t *mode);49 extern int16_t fread(int8_t *buffer, uint16_t size, int16_t number, FILE *stream);50 extern int16_t fwrite(int8_t *buffer, int16_t size, int16_t number, FILE *stream);51 extern int16_t fseek(FILE *fp, int32_t pos, int16_t mode);52 extern int16_t fflush(FILE *ptr);53 extern int16_t fclose(FILE *ptr);54 55 extern int32_t printf(int8_t *fmt, ...);56 extern int32_t sprintf(int8_t *str, int8_t *fmt, ...);57 58 extern int16_t getc(FILE *ptr);59 extern int16_t putc(int16_t c, FILE *ptr);60 extern int16_t ungetc(int16_t c, FILE *ptr);61 62 36 #define stdin (&Cbuffs[0]) 63 37 #define stdout (&Cbuffs[1]) … … 70 44 #define clearerr(fp) ((fp)->_flags &= ~(_IOERR | _EOF)) 71 45 #define fileno(fp) ((fp)->_unit) 72 73 #ifndef O_RDONLY /* only define these once */74 46 75 47 #define O_RDONLY 0x0000 /* Read-only value */ … … 85 57 86 58 #define O_RAW 0x8000 /* Raw (binary) I/O flag for getc and putc */ 87 88 #endif -
include/swrtab.h
rc3aee8a rf7428b1 1 #pragma once 2 #include "stdint.h" 1 3 2 4 int32_t swrtab[128] = { /* scroll rates */ -
include/timers.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #define NTIMERS 8 /* number of timers */ … … 14 16 #define MSTIMER 4 /* mouse movement timer */ 15 17 #define MUTIMER 5 /* mouse buffer flush timer */ 16 17 extern int16_t timers[NTIMERS]; /* timer array */18 -
include/tundsp.h
rc3aee8a rf7428b1 8 8 */ 9 9 10 #pragma once 11 10 12 #define TUNOBJ 8 /* display object number */ 11 13 #define TUNPRI 8 /* display object priority */ 12 14 13 #define TUNFL (V_RES3)/* display object flags */15 #define TUNFL V_RES3 /* display object flags */ 14 16 15 17 #define TDCURX CTOX(61) /* initial cursor x location */ … … 44 46 #define TCBBX06 6 /* background color */ 45 47 #define TCBBX07 4 /* background color */ 46 -
include/uartio.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 7 9 8 10 #define PRT_DEV 0 -
include/vsdd.h
rc3aee8a rf7428b1 7 7 */ 8 8 9 #define VSDD (unsigned int *)0x200000 9 #pragma once 10 #include "stdint.h" 11 12 #define VSDD ((uint16_t *)0x200000) 10 13 11 14 #define V_CHITE 12 /* Character height */ … … 69 72 odtw1; /* Object descriptor table word 1 */ 70 73 }; 71 -
include/wdcurtb.h
rc3aee8a rf7428b1 5 5 ============================================================================= 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 int16_t wdcurtb[] = { -
include/wordq.h
rc3aee8a rf7428b1 5 5 ============================================================================ 6 6 */ 7 8 #pragma once 9 #include "stdint.h" 7 10 8 11 struct wordq { … … 16 19 uint16_t *qbuf; /* base of queue */ 17 20 }; 18 19 #ifndef WORDQHDR20 extern int16_t putwq(struct wordq *qp, uint16_t c);21 extern int16_t getwq(struct wordq *qp, uint16_t *p);22 extern uint16_t setwq(struct wordq *qp, uint16_t *qadr, uint16_t qsiz, uint16_t hi, uint16_t lo);23 #endif24 -
include/wsdsp.h
rc3aee8a rf7428b1 10 10 */ 11 11 12 #pragma once 13 #include "stdint.h" 14 #include "midas.h" 15 12 16 struct wstbl { /* waveshape table library entry */ 13 17 … … 20 24 #define WAVEPRI 8 /* waveshape display object priority */ 21 25 22 #define WAVEFL (V_RES3)/* waveshape display object flags */26 #define WAVEFL V_RES3 /* waveshape display object flags */ 23 27 24 28 #define WCURX 256 /* initial cursor x location */
Note:
See TracChangeset
for help on using the changeset viewer.