- Timestamp:
- 07/09/2017 04:45:34 PM (8 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- Location:
- include
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
include/asgdsp.h
r0292fbb r7258c6a 10 10 struct asgent { /* assignment table library entry structure */ 11 11 12 short a_mop; /* MIDI output port */13 short a_tun; /* tuning table number */12 int16_t a_mop; /* MIDI output port */ 13 int16_t a_tun; /* tuning table number */ 14 14 15 short a_aux; /* auxiliary control state */16 short a_intn; /* intensity */17 short a_rate; /* rate */18 short a_dpth; /* depth */15 int16_t a_aux; /* auxiliary control state */ 16 int16_t a_intn; /* intensity */ 17 int16_t a_rate; /* rate */ 18 int16_t a_dpth; /* depth */ 19 19 20 short a_i2grp[12]; /* instrument to group table */21 short a_gpdyn[12]; /* group dynamics table */20 int16_t a_i2grp[12]; /* instrument to group table */ 21 int16_t a_gpdyn[12]; /* group dynamics table */ 22 22 23 short a_v2grp[12]; /* voice to group table */24 short a_mctln[4]; /* MIDI controller number table */25 short a_g2prt[12][2]; /* group to port and channel table */26 short a_k2grp[88]; /* port 1 key to group assigment table */23 int16_t a_v2grp[12]; /* voice to group table */ 24 int16_t a_mctln[4]; /* MIDI controller number table */ 25 int16_t a_g2prt[12][2]; /* group to port and channel table */ 26 int16_t a_k2grp[88]; /* port 1 key to group assigment table */ 27 27 28 chara_name[16]; /* assignment table name */28 int8_t a_name[16]; /* assignment table name */ 29 29 }; 30 30 -
include/biosdefs.h
r0292fbb r7258c6a 6 6 */ 7 7 8 extern long trap13(short fun, ...);9 extern long trap14(short fun, ...);8 extern int32_t trap13(int16_t fun, ...); 9 extern int32_t trap14(int16_t fun, ...); 10 10 11 11 #define BIOS trap13 … … 65 65 struct bpb { /* BIOS parameter block returned by B_GBPB */ 66 66 67 u nsigned short recsiz; /* physical sector size in bytes */68 u nsigned short clsiz; /* cluster size in sectors */69 u nsigned short clsizb; /* cluster size in bytes */70 u nsigned short rdlen; /* root directory length in sectors */71 u nsigned short fsiz; /* FAT size in sectors */72 u nsigned short fatrec; /* sector number of 1st sector of 2nd FAT */73 u nsigned short datrec; /* sector number of 1st data sector */74 u nsigned short numcl; /* number of data clusters on disk */75 u nsigned short bflags; /* flags */76 u nsigned short ntracks; /* number of tracks */77 u nsigned short nsides; /* number of sides (heads) */78 u nsigned short dspc; /* sectors per cylinder */79 u nsigned short dspt; /* sectors per track */80 u nsigned short hidden; /* number of hidden files */81 charserno[3]; /* disk serial number */82 charnada; /* --- filler - nothing here --- */67 uint16_t recsiz; /* physical sector size in bytes */ 68 uint16_t clsiz; /* cluster size in sectors */ 69 uint16_t clsizb; /* cluster size in bytes */ 70 uint16_t rdlen; /* root directory length in sectors */ 71 uint16_t fsiz; /* FAT size in sectors */ 72 uint16_t fatrec; /* sector number of 1st sector of 2nd FAT */ 73 uint16_t datrec; /* sector number of 1st data sector */ 74 uint16_t numcl; /* number of data clusters on disk */ 75 uint16_t bflags; /* flags */ 76 uint16_t ntracks; /* number of tracks */ 77 uint16_t nsides; /* number of sides (heads) */ 78 uint16_t dspc; /* sectors per cylinder */ 79 uint16_t dspt; /* sectors per track */ 80 uint16_t hidden; /* number of hidden files */ 81 int8_t serno[3]; /* disk serial number */ 82 int8_t nada; /* --- filler - nothing here --- */ 83 83 }; 84 84 … … 99 99 struct dirent { /* Directory entry */ 100 100 101 charfname[8]; /* file name */102 charfext[3]; /* file extension */103 charatrib; /* attribute byte */104 charunused[10]; /* unused space */105 u nsigned short crtime; /* 'LLHH' creation time */106 u nsigned short crdate; /* 'LLHH' creation date */107 u nsigned short bclust; /* 'LLHH' starting cluster number */108 longflen; /* 'LLHH' file length */101 int8_t fname[8]; /* file name */ 102 int8_t fext[3]; /* file extension */ 103 int8_t atrib; /* attribute byte */ 104 int8_t unused[10]; /* unused space */ 105 uint16_t crtime; /* 'LLHH' creation time */ 106 uint16_t crdate; /* 'LLHH' creation date */ 107 uint16_t bclust; /* 'LLHH' starting cluster number */ 108 int32_t flen; /* 'LLHH' file length */ 109 109 }; 110 110 … … 131 131 132 132 struct dirent de; /* directory entry image for file */ 133 u nsigned short modefl; /* fcb flags */134 u nsigned short clsec; /* current sector in cluster */135 u nsigned short curcls; /* current cluster */136 u nsigned short offset; /* current offset into sector */137 longcurlsn; /* current logical sector number in file */138 longcurdsn; /* current logical sector number on disk */139 longcurlen; /* current file length in bytes */140 longasects; /* allocated file length in sectors */133 uint16_t modefl; /* fcb flags */ 134 uint16_t clsec; /* current sector in cluster */ 135 uint16_t curcls; /* current cluster */ 136 uint16_t offset; /* current offset into sector */ 137 int32_t curlsn; /* current logical sector number in file */ 138 int32_t curdsn; /* current logical sector number on disk */ 139 int32_t curlen; /* current file length in bytes */ 140 int32_t asects; /* allocated file length in sectors */ 141 141 }; 142 142 -
include/cmeta.h
r0292fbb r7258c6a 6 6 */ 7 7 8 extern void CMinit( char*ip);9 extern int CMstat(char*msg);10 extern int CMchr(charc);11 extern int CMuchr(charc);12 extern int CMstr(char*s);13 extern int CMustr(char*s);14 extern int CMlong(void);15 extern int CMdig(void);16 extern int CMlist(char*l[]);17 extern int CMulist(char*l[]);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 18 19 extern int QQsw;20 extern int QQanch;19 extern int16_t QQsw; 20 extern int16_t QQanch; 21 21 22 extern char*QQin;23 extern char*QQip;24 extern char*QQop;22 extern int8_t *QQin; 23 extern int8_t *QQip; 24 extern int8_t *QQop; 25 25 26 extern longQQnum;27 extern int QQlnum;28 extern charQQchr;29 extern charQQdig;26 extern int32_t QQnum; 27 extern int16_t QQlnum; 28 extern int8_t QQchr; 29 extern int8_t QQdig; 30 30 31 extern charQQstr[];31 extern int8_t QQstr[]; 32 32 33 33 #define CM_CHR(c) CMchr(c) -
include/configs.h
r0292fbb r7258c6a 3 3 /* Configuration 0 */ 4 4 5 charcfg_00[64][3] = {5 int8_t cfg_00[64][3] = { 6 6 7 7 {22, 18, 104}, /* 1 */ … … 66 66 /* Configuration 1 */ 67 67 68 charcfg_01[64][3] = {68 int8_t cfg_01[64][3] = { 69 69 70 70 {22, 16, 104}, /* 1 */ … … 133 133 /* Configuration 2 */ 134 134 135 charcfg_02[64][3] = {135 int8_t cfg_02[64][3] = { 136 136 137 137 {22, 36, 104}, /* 1 */ … … 197 197 /* Configuration 3 */ 198 198 199 charcfg_03[64][3] = {199 int8_t cfg_03[64][3] = { 200 200 201 201 {20, 44, 43}, /* 1 */ … … 259 259 /* Configuration 4 */ 260 260 261 charcfg_04[64][3] = {261 int8_t cfg_04[64][3] = { 262 262 263 263 {19, 65, 26}, /* 1 */ … … 312 312 /* Configuration 5 */ 313 313 314 charcfg_05[64][3] = {314 int8_t cfg_05[64][3] = { 315 315 316 316 {19, 16, 42}, /* 1 */ … … 374 374 /* Configuration 6 */ 375 375 376 charcfg_06[64][3] = {376 int8_t cfg_06[64][3] = { 377 377 378 378 {21, 65, 26}, /* 1 */ … … 425 425 /* Configuration 7 */ 426 426 427 charcfg_07[64][3] = {427 int8_t cfg_07[64][3] = { 428 428 429 429 {22, 18, 104}, /* 1 */ … … 477 477 /* Configuration 8 */ 478 478 479 charcfg_08[64][3] = {479 int8_t cfg_08[64][3] = { 480 480 481 481 {20, 66, 104}, /* 1 */ … … 535 535 /* Configuration 9 */ 536 536 537 charcfg_09[64][3] = {537 int8_t cfg_09[64][3] = { 538 538 539 539 {22, 36, 104}, /* 1 */ … … 599 599 /* Configuration 10 */ 600 600 601 charcfg_10[64][3] = {601 int8_t cfg_10[64][3] = { 602 602 603 603 {19, 18, 26}, /* 1 */ … … 666 666 /* Configuration 11 */ 667 667 668 charcfg_11[64][3] = {668 int8_t cfg_11[64][3] = { 669 669 670 670 {21, 68, 26}, /* 1 */ … … 729 729 }; 730 730 731 char *cfgptr[MAXCFG] = { 732 733 (char *)cfg_00, (char *)cfg_01, (char *)cfg_02, (char *)cfg_03, 734 (char *)cfg_04, (char *)cfg_05, (char *)cfg_06, (char *)cfg_07, 735 (char *)cfg_08, (char *)cfg_09, (char *)cfg_10, (char *)cfg_11 736 }; 731 int8_t *cfgptr[MAXCFG] = { 732 733 (int8_t *)cfg_00, (int8_t *)cfg_01, (int8_t *)cfg_02, (int8_t *)cfg_03, 734 (int8_t *)cfg_04, (int8_t *)cfg_05, (int8_t *)cfg_06, (int8_t *)cfg_07, 735 (int8_t *)cfg_08, (int8_t *)cfg_09, (int8_t *)cfg_10, (int8_t *)cfg_11 736 }; 737 -
include/ctype.h
r0292fbb r7258c6a 98 98 99 99 extern void ___atab(void); 100 extern char__atab[]; /* character type table */100 extern int8_t __atab[]; /* character type table */ 101 101 102 102 #endif /* SYS5CODE */ -
include/curpak.h
r0292fbb r7258c6a 20 20 struct curpak { 21 21 22 short (*curtype)(void);22 int16_t (*curtype)(void); 23 23 void (*premove)(void); 24 24 void (*pstmove)(void); … … 32 32 void (*e_key)(void); 33 33 void (*m_key)(void); 34 void (*d_key)( short k);35 short (*not_fld)(short k);34 void (*d_key)(int16_t k); 35 int16_t (*not_fld)(int16_t k); 36 36 struct fet *curfet; 37 37 struct selbox *csbp; 38 short *cratex;39 short *cratey;40 short cmtype;41 short cxval;42 short cyval;38 int16_t *cratex; 39 int16_t *cratey; 40 int16_t cmtype; 41 int16_t cxval; 42 int16_t cyval; 43 43 }; 44 -
include/dfltins.h
r0292fbb r7258c6a 1 short dfltins[] = { /* default instrument */ 1 2 int16_t dfltins[] = { /* default instrument */ 2 3 3 4 0x0000, 0x4465, 0x2046, 0x6175, 0x6C74, 0x2020, 0x2020, 0x2020, -
include/errno.h
r0292fbb r7258c6a 7 7 */ 8 8 9 extern int errno;9 extern int16_t errno; 10 10 11 11 #define EPERM 1 -
include/fields.h
r0292fbb r7258c6a 10 10 struct fet { /* field definition structure */ 11 11 12 short frow; /* row the field is in */13 short flcol; /* leftmost column of field */14 short frcol; /* rightmost column of field */15 short ftags; /* field tags / parameters (used variously) */16 short (*ebto)(short n);12 int16_t frow; /* row the field is in */ 13 int16_t flcol; /* leftmost column of field */ 14 int16_t frcol; /* rightmost column of field */ 15 int16_t ftags; /* field tags / parameters (used variously) */ 16 int16_t (*ebto)(int16_t n); 17 17 /* edit buffer 'to' (setup) function */ 18 short (*ebfrom)(short n);18 int16_t (*ebfrom)(int16_t n); 19 19 /* edit buffer 'from' (parse) function */ 20 short (*redisp)(short nn);20 int16_t (*redisp)(int16_t nn); 21 21 /* field (re)display function */ 22 short (*datain)(short nn, short k);22 int16_t (*datain)(int16_t nn, int16_t k); 23 23 /* data entry function */ 24 24 }; … … 26 26 struct selbox { /* selection box structure */ 27 27 28 short sbxmin; /* minimum x - left edge of box */29 short sbymin; /* minimum y - top edge of box */30 short sbxmax; /* maximum x - right edge of box */31 short sbymax; /* maximum y - bottom edge of box */32 short sbarg; /* select box argument */33 short (*boxhit)(short n);28 int16_t sbxmin; /* minimum x - left edge of box */ 29 int16_t sbymin; /* minimum y - top edge of box */ 30 int16_t sbxmax; /* maximum x - right edge of box */ 31 int16_t sbymax; /* maximum y - bottom edge of box */ 32 int16_t sbarg; /* select box argument */ 33 int16_t (*boxhit)(int16_t n); 34 34 /* box-hit function */ 35 35 }; 36 36 37 37 #ifndef FET_DEFS 38 extern short ebflag; /* edit buffer setup flag */39 extern charebuf[MAXEBUF+1]; /* edit buffer */38 extern int16_t ebflag; /* edit buffer setup flag */ 39 extern int8_t ebuf[MAXEBUF+1]; /* edit buffer */ 40 40 41 41 extern struct fet *curfet; /* current fet table pointer */ -
include/fspars.h
r0292fbb r7258c6a 15 15 16 16 #define BUFSIZL 256 /* buffer length -- longs */ 17 #define BUFSIZ (sizeof ( long) * BUFSIZL) /* buffer length -- chars */17 #define BUFSIZ (sizeof (int32_t) * BUFSIZL) /* buffer length -- chars */ 18 18 19 19 #define BPSEC 512 /* bytes per disk sector */ … … 24 24 #define MAXDIRNT 224 /* maximum number of directory entries */ 25 25 26 typedef char*io_arg; /* must be big enough to contain a pointer */26 typedef int8_t *io_arg; /* must be big enough to contain a pointer */ 27 27 28 28 #endif -
include/glcbars.h
r0292fbb r7258c6a 4 4 */ 5 5 6 short BBase = 9; /* bottom line of bar graph */7 short BCenter = 32; /* center line of bar graph */8 short BTop = 53; /* top line of bar graph */9 short BOffset = 128; /* data offset for centered-zero bars */6 int16_t BBase = 9; /* bottom line of bar graph */ 7 int16_t BCenter = 32; /* center line of bar graph */ 8 int16_t BTop = 53; /* top line of bar graph */ 9 int16_t BOffset = 128; /* data offset for centered-zero bars */ 10 10 11 short BarBLn[128] = { /* bottom-zero bar lines */11 int16_t BarBLn[128] = { /* bottom-zero bar lines */ 12 12 13 13 9, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, … … 21 21 }; 22 22 23 short BarCLn[256] = { /* centered-zero bar lines */23 int16_t BarCLn[256] = { /* centered-zero bar lines */ 24 24 25 25 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, -
include/glcdefs.h
r0292fbb r7258c6a 6 6 */ 7 7 8 #define G_INIT ( char)0x409 #define G_MWRITE ( char)0x4210 #define G_MREAD ( char)0x4311 #define G_SETSAD ( char)0x4412 #define G_CRSWR ( char)0x4613 #define G_CRSRD ( char)0x4714 #define G_CRSMRT ( char)0x4C15 #define G_CRSMLT ( char)0x4D16 #define G_CRSMUP ( char)0x4E17 #define G_CRSMDN ( char)0x4F18 #define G_ERASE ( char)0x5219 #define G_SLEEP ( char)0x5320 #define G_DSPCTL ( char)0x5821 #define G_HSCRL ( char)0x5A22 #define G_OVRLAY ( char)0x5B23 #define G_CGRAM ( char)0x5C24 #define G_CRSFRM ( char)0x5D8 #define G_INIT (int8_t)0x40 9 #define G_MWRITE (int8_t)0x42 10 #define G_MREAD (int8_t)0x43 11 #define G_SETSAD (int8_t)0x44 12 #define G_CRSWR (int8_t)0x46 13 #define G_CRSRD (int8_t)0x47 14 #define G_CRSMRT (int8_t)0x4C 15 #define G_CRSMLT (int8_t)0x4D 16 #define G_CRSMUP (int8_t)0x4E 17 #define G_CRSMDN (int8_t)0x4F 18 #define G_ERASE (int8_t)0x52 19 #define G_SLEEP (int8_t)0x53 20 #define G_DSPCTL (int8_t)0x58 21 #define G_HSCRL (int8_t)0x5A 22 #define G_OVRLAY (int8_t)0x5B 23 #define G_CGRAM (int8_t)0x5C 24 #define G_CRSFRM (int8_t)0x5D 25 25 26 26 #define LCD_WC lcd_a1 … … 29 29 #define LCD_RD lcd_a1 30 30 31 #define G_PLANE1 (u nsigned)0x000032 #define G_PLANE2 (u nsigned)0x200031 #define G_PLANE1 (uint16_t)0x0000 32 #define G_PLANE2 (uint16_t)0x2000 33 33 34 34 #define G_OFF 0 /* off */ -
include/glcfns.h
r0292fbb r7258c6a 6 6 */ 7 7 8 extern u nsigned GLCcrc(unsigned row, unsignedcol);9 extern u nsigned GLCcxy(unsigned x, unsignedy);10 extern void GLCplot(u nsigned x, unsigned y, unsignedval);8 extern uint16_t GLCcrc(uint16_t row, uint16_t col); 9 extern uint16_t GLCcxy(uint16_t x, uint16_t y); 10 extern void GLCplot(uint16_t x, uint16_t y, uint16_t val); 11 11 extern void GLCinit(void); 12 extern void GLCwrts( char*s);13 extern void GLCtext(u nsigned row, unsigned col, char*s);14 extern void GLCdisp( short dsp, short crs, short blk1, short blk2, short blk3);15 extern void GLCcurs( short crs);12 extern void GLCwrts(int8_t *s); 13 extern void GLCtext(uint16_t row, uint16_t col, int8_t *s); 14 extern void GLCdisp(int16_t dsp, int16_t crs, int16_t blk1, int16_t blk2, int16_t blk3); 15 extern void GLCcurs(int16_t crs); 16 16 17 extern unsigned lcdx, lcdy, lcdbit, lcdrow, lcdcol, lcdbase; 18 extern unsigned lcdctl1, lcdctl2; 17 extern uint16_t lcdx, lcdy, lcdbit, lcdrow, lcdcol, lcdbase; 18 extern uint16_t lcdctl1, lcdctl2; 19 20 -
include/hwdefs.h
r0292fbb r7258c6a 8 8 /* hardware addresses */ 9 9 10 extern chario_time[], io_lcd, io_ser, io_midi;11 extern chario_disk, io_tone, io_leds, io_kbrd;12 extern charlcd_a0, lcd_a1;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 13 14 extern u nsignedio_vreg[], io_vraw[], io_vram[], io_fpu[];14 extern uint16_t io_vreg[], io_vraw[], io_vram[], io_fpu[]; 15 15 16 16 17 17 /* video memory allocations */ 18 18 19 extern u nsignedv_regs[], v_odtab[][4], v_actab[];20 extern u nsignedv_ct0[], v_gt1[], v_score[], v_cgtab[];19 extern uint16_t v_regs[], v_odtab[][4], v_actab[]; 20 extern uint16_t v_ct0[], v_gt1[], v_score[], v_cgtab[]; 21 21 22 extern u nsignedv_curs0[], v_curs1[], v_curs2[], v_curs3[];23 extern u nsignedv_curs4[], v_curs5[], v_curs6[], v_curs7[];24 extern u nsignedv_tcur[], v_kbobj[], v_lnobj[];25 extern u nsignedv_win0[], v_cur[];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 26 27 27 28 28 /* stuff in the depths of the bios */ 29 29 30 extern short fc_sw;30 extern int16_t fc_sw; 31 31 32 extern long fc_val; 32 extern int32_t fc_val; 33 -
include/instdsp.h
r0292fbb r7258c6a 117 117 118 118 struct pflent *nextpf; /* next entry pointer */ 119 u nsignedpftrig; /* trigger number */120 u nsignedpfvpval; /* voice / parameter number */121 longd1reg; /* D1 register contents */122 longd2reg; /* D2 register contents */123 longd4reg; /* D4 register contents */124 char*a1reg; /* A1 register contents */125 char*a2reg; /* A2 register contents */126 char*a3reg; /* A3 register contents */119 uint16_t pftrig; /* trigger number */ 120 uint16_t pfvpval; /* voice / parameter number */ 121 int32_t d1reg; /* D1 register contents */ 122 int32_t d2reg; /* D2 register contents */ 123 int32_t d4reg; /* D4 register contents */ 124 int8_t *a1reg; /* A1 register contents */ 125 int8_t *a2reg; /* A2 register contents */ 126 int8_t *a3reg; /* A3 register contents */ 127 127 }; 128 128 … … 135 135 struct instpnt { /* function point definition */ 136 136 137 short iptim; /* time (packed) */138 short ipval; /* value */139 short ipvmlt; /* value multiplier */140 141 charipvsrc; /* value source */142 charipact; /* action code */137 int16_t iptim; /* time (packed) */ 138 int16_t ipval; /* value */ 139 int16_t ipvmlt; /* value multiplier */ 140 141 int8_t ipvsrc; /* value source */ 142 int8_t ipact; /* action code */ 143 143 144 144 #define AC_NULL 0 /* null action */ … … 151 151 #define AC_UNDF 7 /* -- undefined - treated as AC_NULL -- */ 152 152 153 charippar1; /* action parameter 1 (point) */154 charippar2; /* action parameter 2 (count) */155 156 charippar3; /* action parameter 3 (counter) */157 charippad; /* padding for even boundary */153 int8_t ippar1; /* action parameter 1 (point) */ 154 int8_t ippar2; /* action parameter 2 (count) */ 155 156 int8_t ippar3; /* action parameter 3 (counter) */ 157 int8_t ippad; /* padding for even boundary */ 158 158 }; 159 159 … … 166 166 struct idfnhdr { /* function header */ 167 167 168 short idfpch; /* pitch (used for freq1 only) */169 short idfmlt; /* overall value multiplier (-1 .. +1) */170 171 charidfsrc; /* overall value source */172 charidfpif; /* points in the function */173 174 charidfpt1; /* index of first point (0..NIPTS) */175 charidftmd; /* trigger mode and control bits */168 int16_t idfpch; /* pitch (used for freq1 only) */ 169 int16_t idfmlt; /* overall value multiplier (-1 .. +1) */ 170 171 int8_t idfsrc; /* overall value source */ 172 int8_t idfpif; /* points in the function */ 173 174 int8_t idfpt1; /* index of first point (0..NIPTS) */ 175 int8_t idftmd; /* trigger mode and control bits */ 176 176 177 177 #define I_TM_KEY 0x01 /* trigger on key closure */ … … 181 181 #define I_VNSUBN 0x08 /* new value sub-n bit (matches hardware) */ 182 182 183 charidfcpt; /* index of current point (0..NIPTS) */184 charidfprm; /* parameter associated with this function */185 186 short idftrg; /* trigger that started the function */183 int8_t idfcpt; /* index of current point (0..NIPTS) */ 184 int8_t idfprm; /* parameter associated with this function */ 185 186 int16_t idftrg; /* trigger that started the function */ 187 187 }; 188 188 … … 195 195 struct instdef { /* instrument definition */ 196 196 197 short idhflag; /* flags */198 199 charidhname[MAXIDLN+1]; /* instrument name */200 charidhcom1[MAXIDLN+1]; /* first line of comments */201 charidhcom2[MAXIDLN+1]; /* second line of comments */202 charidhcom3[MAXIDLN+1]; /* third line of comments */203 204 charidhcfg; /* configuration byte */205 charidhplft; /* points unused */206 207 charidhwsa; /* waveshape A library number */208 charidhwsb; /* waveshape B library number */209 210 charidhos1c; /* oscillator 1 controls */211 charidhos2c; /* oscillator 2 controls */212 charidhos3c; /* oscillator 3 controls */213 charidhos4c; /* oscillator 4 controls */197 int16_t idhflag; /* flags */ 198 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 */ 203 204 int8_t idhcfg; /* configuration byte */ 205 int8_t idhplft; /* points unused */ 206 207 int8_t idhwsa; /* waveshape A library number */ 208 int8_t idhwsb; /* waveshape B library number */ 209 210 int8_t idhos1c; /* oscillator 1 controls */ 211 int8_t idhos2c; /* oscillator 2 controls */ 212 int8_t idhos3c; /* oscillator 3 controls */ 213 int8_t idhos4c; /* oscillator 4 controls */ 214 214 215 215 #define OC_MOD 0x0003 /* oscillator mode mask */ … … 222 222 #define OC_SYN 0x0004 /* oscillator in sync mode */ 223 223 224 short idhos1v; /* oscillator 1 value */225 short idhos2v; /* oscillator 2 value */226 short idhos3v; /* oscillator 3 value */227 short idhos4v; /* oscillator 4 value */224 int16_t idhos1v; /* oscillator 1 value */ 225 int16_t idhos2v; /* oscillator 2 value */ 226 int16_t idhos3v; /* oscillator 3 value */ 227 int16_t idhos4v; /* oscillator 4 value */ 228 228 229 229 struct idfnhdr idhfnc[NFINST]; /* function headers */ … … 231 231 struct instpnt idhpnt[NIPNTS]; /* point table */ 232 232 233 short idhwvaf[NUMWPNT]; /* waveshape A final values */234 short idhwvao[NUMWPNT]; /* waveshape A offset values */235 short idhwvah[NUMHARM]; /* waveshape A harmonic values */236 237 short idhwvbf[NUMWPNT]; /* waveshape B final values */238 short idhwvbo[NUMWPNT]; /* waveshape B offset values */239 short idhwvbh[NUMHARM]; /* waveshape B harmonic values */240 241 }; 233 int16_t idhwvaf[NUMWPNT]; /* waveshape A final values */ 234 int16_t idhwvao[NUMWPNT]; /* waveshape A offset values */ 235 int16_t idhwvah[NUMHARM]; /* waveshape A harmonic values */ 236 237 int16_t idhwvbf[NUMWPNT]; /* waveshape B final values */ 238 int16_t idhwvbo[NUMWPNT]; /* waveshape B offset values */ 239 int16_t idhwvbh[NUMHARM]; /* waveshape B harmonic values */ 240 241 }; -
include/io.h
r0292fbb r7258c6a 10 10 struct channel { /* channel table entry */ 11 11 12 charc_read; /* read routine index */13 charc_write; /* write routine index */14 charc_ioctl; /* ioctl routine index */15 charc_seek; /* seek routine index */16 int (*c_close)(); /* close function pointer */12 int8_t c_read; /* read routine index */ 13 int8_t c_write; /* write routine index */ 14 int8_t c_ioctl; /* ioctl routine index */ 15 int8_t c_seek; /* seek routine index */ 16 int16_t (*c_close)(); /* close function pointer */ 17 17 io_arg c_arg; /* argument to channel driver */ 18 18 }; … … 20 20 struct device { /* device control structure */ 21 21 22 chard_read; /* read routine code */23 chard_write; /* write routine code */24 chard_ioctl; /* ioctl routine code */25 chard_seek; /* seek routine code */26 int (*d_open)(); /* special open function */22 int8_t d_read; /* read routine code */ 23 int8_t d_write; /* write routine code */ 24 int8_t d_ioctl; /* ioctl routine code */ 25 int8_t d_seek; /* seek routine code */ 26 int16_t (*d_open)(); /* special open function */ 27 27 }; 28 28 29 29 struct devtabl { /* device table entry */ 30 30 31 char*d_name; /* device name */31 int8_t *d_name; /* device name */ 32 32 struct device *d_dev; /* pointer to device structure */ 33 33 io_arg d_arg; /* argument to device driver */ … … 37 37 38 38 extern struct channel chantab[MAXCHAN]; /* defined in fsinit.c */ 39 extern charWrkbuf[BPSEC]; /* defined in fsinit.c */39 extern int8_t Wrkbuf[BPSEC]; /* defined in fsinit.c */ 40 40 41 41 #endif -
include/knmtab.h
r0292fbb r7258c6a 20 20 */ 21 21 22 short knmtab[32][256] = {22 int16_t knmtab[32][256] = { 23 23 24 24 /* -
include/libdsp.h
r0292fbb r7258c6a 91 91 struct scndx { /* score index */ 92 92 93 longsclen; /* score length */94 charscfnm[16]; /* score name */93 int32_t sclen; /* score length */ 94 int8_t scfnm[16]; /* score name */ 95 95 }; 96 96 97 97 struct fcat { /* file catalog entry */ 98 98 99 charfcsize[3]; /* allocated size in clusters */100 charfcp0; /* parameter 0 - Autoload flag */101 charfcname[8]; /* directory name */102 charfcp1; /* parameter 1 - -reserved- */103 charfcextn[3]; /* directory extension (file type) */104 charfcp2; /* parameter 2 - -reserved- */105 charfccmnt[37]; /* comment field */106 charfceol[2]; /* end of line (CR, LF) */99 int8_t fcsize[3]; /* allocated size in clusters */ 100 int8_t fcp0; /* parameter 0 - Autoload flag */ 101 int8_t fcname[8]; /* directory name */ 102 int8_t fcp1; /* parameter 1 - -reserved- */ 103 int8_t fcextn[3]; /* directory extension (file type) */ 104 int8_t fcp2; /* parameter 2 - -reserved- */ 105 int8_t fccmnt[37]; /* comment field */ 106 int8_t fceol[2]; /* end of line (CR, LF) */ 107 107 }; 108 108 109 109 struct mlibhdr { /* MIDAS library file header */ 110 110 111 charl_csum[8]; /* checksum in HEX ASCII, of all but l_csum[] */112 charl_name[8]; /* file name */113 charl_type[3]; /* file type */114 charl_cmnt[37]; /* comment */111 int8_t l_csum[8]; /* checksum in HEX ASCII, of all but l_csum[] */ 112 int8_t l_name[8]; /* file name */ 113 int8_t l_type[3]; /* file type */ 114 int8_t l_cmnt[37]; /* comment */ 115 115 }; 116 116 117 117 #define LH_LEN (sizeof (struct mlibhdr)) 118 118 119 #define OR_LEN1 (( long)&idefs[0].idhwvaf[0]-(long)&idefs[0].idhflag)119 #define OR_LEN1 ((int32_t)&idefs[0].idhwvaf[0]-(int32_t)&idefs[0].idhflag) 120 120 #define OR_LEN2 (2 * (NUMWPNT + NUMHARM)) 121 121 -
include/memory.h
r0292fbb r7258c6a 6 6 */ 7 7 8 extern void *memccpy(void *vp1, void *vp2, char c, int n); 9 extern void *memchr(void *vp, char c, int n); 10 extern void *memcpy(void *vp1, void *vp2, int n); 11 extern void *memset(void *vp, char c, int n); 12 extern int memcmp(void *vp1, void *vp2, int n); 13 extern void *memsetw(void *vp, short s, short n); 14 extern void *memcpyw(void *vp1, void *vp2, int n); 15 extern int memcmpu(void *vp1, void *vp2, int n); 8 extern void *memccpy(void *vp1, void *vp2, int8_t c, int16_t n); 9 extern void *memchr(void *vp, int8_t c, int16_t n); 10 extern void *memcpy(void *vp1, void *vp2, int16_t n); 11 extern void *memset(void *vp, int8_t c, int16_t n); 12 extern int16_t memcmp(void *vp1, void *vp2, int16_t n); 13 extern void *memsetw(void *vp, int16_t s, int16_t n); 14 extern void *memcpyw(void *vp1, void *vp2, int16_t n); 15 extern int16_t memcmpu(void *vp1, void *vp2, int16_t n); 16 17 -
include/midas.h
r0292fbb r7258c6a 8 8 */ 9 9 10 typedef void (*LPF)( short _1, short _2); /* pointer to a LCD panel function */10 typedef void (*LPF)(int16_t _1, int16_t _2); /* pointer to a LCD panel function */ 11 11 12 12 #define SM_SCALE(x) (((x) * 252) & 0x7FE0) -
include/neddefs.h
r0292fbb r7258c6a 8 8 */ 9 9 10 extern short noteop, notesel;10 extern int16_t noteop, notesel; 11 11 12 extern longt_note;12 extern int32_t t_note; 13 13 14 14 extern struct n_entry *p_nbeg, *p_nend; -
include/objdefs.h
r0292fbb r7258c6a 8 8 struct EXFILE { /* executable file header */ 9 9 10 u nsignedF_Magic; /* File type magic */11 longF_Text; /* SIze of text segment */12 longF_Data; /* Size of data segment */13 longF_BSS; /* Size of BSS segment */14 longF_Symtab; /* Size of symbol table */15 longF_Res1; /* Reserved area #1 */16 longF_Res2; /* Reserved area #2 -- text origin */17 u nsignedF_Res3; /* Reserved area #3 -- flag word */10 uint16_t F_Magic; /* File type magic */ 11 int32_t F_Text; /* SIze of text segment */ 12 int32_t F_Data; /* Size of data segment */ 13 int32_t F_BSS; /* Size of BSS segment */ 14 int32_t F_Symtab; /* Size of symbol table */ 15 int32_t F_Res1; /* Reserved area #1 */ 16 int32_t F_Res2; /* Reserved area #2 -- text origin */ 17 uint16_t F_Res3; /* Reserved area #3 -- flag word */ 18 18 19 19 /* data origin - long */ … … 26 26 struct SYMBOL { /* Symbol table entry -- 14 bytes */ 27 27 28 charsymname[8]; /* Symbol name (LJZF) */29 u nsignedsymtype; /* Symbol type flags */30 longsymvalue; /* Symbol value */28 int8_t symname[8]; /* Symbol name (LJZF) */ 29 uint16_t symtype; /* Symbol type flags */ 30 int32_t symvalue; /* Symbol value */ 31 31 }; 32 32 -
include/patch.h
r0292fbb r7258c6a 37 37 struct patch { /* patch table entry (16 bytes per entry) */ 38 38 39 u nsigned short nextstm; /* index of next entry in stm chain */40 u nsigned short prevstm; /* index of previous entry in stm chain */41 u nsigned short defnum; /* definer */42 u nsigned short stmnum; /* stimulus */43 u nsigned short paspec; /* destination type and flags */44 u nsigned short pasuba; /* sub-address */45 u nsigned short padat1; /* data word 1 */46 u nsigned short padat2; /* data word 2 */39 uint16_t nextstm; /* index of next entry in stm chain */ 40 uint16_t prevstm; /* index of previous entry in stm chain */ 41 uint16_t defnum; /* definer */ 42 uint16_t stmnum; /* stimulus */ 43 uint16_t paspec; /* destination type and flags */ 44 uint16_t pasuba; /* sub-address */ 45 uint16_t padat1; /* data word 1 */ 46 uint16_t padat2; /* data word 2 */ 47 47 }; 48 48 49 49 struct defent { /* definition table entry -- 10 bytes per entry */ 50 50 51 u nsigned short nextdef; /* index of next in def chain */52 u nsigned short stm; /* stimulus */53 u nsigned short adspec; /* destination type */54 u nsigned short adsuba; /* sub-address */55 u nsigned short addat1; /* data word 1 */51 uint16_t nextdef; /* index of next in def chain */ 52 uint16_t stm; /* stimulus */ 53 uint16_t adspec; /* destination type */ 54 uint16_t adsuba; /* sub-address */ 55 uint16_t addat1; /* data word 1 */ 56 56 }; 57 57 … … 61 61 struct seqent { /* sequence table entry -- 14 bytes per entry */ 62 62 63 u nsigned short seqtime; /* time */64 u nsigned short seqact1; /* action 1 */65 u nsigned short seqdat1; /* action 1 data */66 u nsigned short seqact2; /* action 2 */67 u nsigned short seqdat2; /* action 2 data */68 u nsigned short seqact3; /* action 3 */69 u nsigned short seqdat3; /* action 3 data */63 uint16_t seqtime; /* time */ 64 uint16_t seqact1; /* action 1 */ 65 uint16_t seqdat1; /* action 1 data */ 66 uint16_t seqact2; /* action 2 */ 67 uint16_t seqdat2; /* action 2 data */ 68 uint16_t seqact3; /* action 3 */ 69 uint16_t seqdat3; /* action 3 data */ 70 70 }; 71 71 … … 77 77 78 78 #ifndef PATCHDEF 79 extern charstmptr[]; /* stimulus pointer table */80 extern chardefptr[]; /* definition pointer table */79 extern int8_t stmptr[]; /* stimulus pointer table */ 80 extern int8_t defptr[]; /* definition pointer table */ 81 81 82 82 extern struct patch patches[]; /* patch table */ … … 91 91 extern struct seqent seqtab[]; /* sequence table */ 92 92 93 extern u nsigned short seqflag[16]; /* sequence flags */94 extern u nsigned short seqline[16]; /* sequence line */95 extern u nsigned short seqstim[16]; /* sequence stimulus */96 extern u nsigned short seqtime[16]; /* sequence timers */97 extern u nsigned short sregval[16]; /* register values */98 extern u nsigned short trstate[16]; /* trigger states */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 99 100 100 #endif -
include/ptoftab.h
r0292fbb r7258c6a 1 1 2 /* Pitch to Frequency */ 2 3 3 short ptoftab[] = {4 int16_t ptoftab[] = { 4 5 5 6 0x0060, /* 0: 0.03561 0 0.00000 */ -
include/ratio.h
r0292fbb r7258c6a 1 1 2 /* ratio.h -- generated: 1988-08-25 19:23:42 */ 2 3 3 short ratio[100] = { /* ratio table */4 int16_t ratio[100] = { /* ratio table */ 4 5 5 6 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -
include/rawio.h
r0292fbb r7258c6a 6 6 */ 7 7 8 int getln(int unit, int nb, char*buf);9 int getrln(int unit, int nb, char*buf);10 int readln(int unit, int nc, char *ctl, int nb, char*buf);8 int16_t getln(int16_t unit, int16_t nb, int8_t *buf); 9 int16_t getrln(int16_t unit, int16_t nb, int8_t *buf); 10 int16_t readln(int16_t unit, int16_t nc, int8_t *ctl, int16_t nb, int8_t *buf); 11 11 12 12 /* The following should really be void ... */ 13 13 14 void writeln(int unit, char *buf); 14 void writeln(int16_t unit, int8_t *buf); 15 16 -
include/regs.h
r0292fbb r7258c6a 11 11 struct regs { 12 12 13 longd_reg[8]; /* Data registers d0..d7 */13 int32_t d_reg[8]; /* Data registers d0..d7 */ 14 14 15 char*a_reg[8]; /* Address registers */15 int8_t *a_reg[8]; /* Address registers */ 16 16 17 u nsigned short reg_fill, /* Filler to keep long alignment */17 uint16_t reg_fill, /* Filler to keep long alignment */ 18 18 reg_sr, /* Status register */ 19 19 *reg_pc; /* Program counter */ -
include/scfns.h
r0292fbb r7258c6a 8 8 */ 9 9 10 extern void eh_ins(struct s_entry *ne, short et);11 extern void eh_rmv(struct s_entry *ev, short et);12 extern void sc_clr( short ns);10 extern void eh_ins(struct s_entry *ne, int16_t et); 11 extern void eh_rmv(struct s_entry *ev, int16_t et); 12 extern void sc_clr(int16_t ns); 13 13 14 extern short e_del(struct s_entry *e1);15 extern short selscor(short ns);16 extern int sc_goto(longtval);14 extern int16_t e_del(struct s_entry *e1); 15 extern int16_t selscor(int16_t ns); 16 extern int16_t sc_goto(int32_t tval); 17 17 18 extern longscinit(void);19 extern longevleft(void);18 extern int32_t scinit(void); 19 extern int32_t evleft(void); 20 20 21 extern struct s_entry *e_alc( short w);21 extern struct s_entry *e_alc(int16_t w); 22 22 extern struct s_entry *e_ins(struct s_entry *e1, struct s_entry *e2); 23 23 extern struct s_entry *e_rmv(struct s_entry *e1); 24 24 extern struct s_entry *e_clr(struct s_entry *e1); 25 extern struct s_entry *ehfind( short eh, long te, short d1, short d2);26 extern struct s_entry *frfind( long tval, int sdir);27 extern struct s_entry *ep_adj(struct s_entry *sep, int sdir, longtval);28 extern struct s_entry *se_exec(struct s_entry *ep, short sd);29 extern struct s_entry *findev(struct s_entry *ep, long te, short et, short d1, short d2);25 extern struct s_entry *ehfind(int16_t eh, int32_t te, int16_t d1, int16_t d2); 26 extern struct s_entry *frfind(int32_t tval, int16_t sdir); 27 extern struct s_entry *ep_adj(struct s_entry *sep, int16_t sdir, int32_t tval); 28 extern struct s_entry *se_exec(struct s_entry *ep, int16_t sd); 29 extern struct s_entry *findev(struct s_entry *ep, int32_t te, int16_t et, int16_t d1, int16_t d2); 30 30 31 extern charac_code;32 extern charscname[][16];31 extern int8_t ac_code; 32 extern int8_t scname[][16]; 33 33 34 34 extern BOOL se_chg; 35 35 36 extern short curscor, cursect;36 extern int16_t curscor, cursect; 37 37 38 extern longse1_cnt, se2_cnt, se3_cnt;39 extern longspool[], *pspool;40 extern longspcount, frags;41 extern longt_bak, t_cur, t_ctr, t_fwd;38 extern int32_t se1_cnt, se2_cnt, se3_cnt; 39 extern int32_t spool[], *pspool; 40 extern int32_t spcount, frags; 41 extern int32_t t_bak, t_cur, t_ctr, t_fwd; 42 42 43 43 extern struct s_entry *size1, *size2, *size3; -
include/score.h
r0292fbb r7258c6a 15 15 16 16 struct nevent *nxt; 17 short group;18 short note;17 int16_t group; 18 int16_t note; 19 19 }; 20 20 21 21 struct s_time { 22 22 23 short sflags;24 charsmpte[10];23 int16_t sflags; 24 int8_t smpte[10]; 25 25 }; 26 26 … … 33 33 struct s_entry { /* event entry structure */ 34 34 35 longe_time; /* time, in frames */36 chare_size; /* size of entry, in longs */37 chare_type; /* type of entry */38 chare_data1; /* 1st 8 bits of data */39 chare_data2; /* 2nd 8 bits of data */35 int32_t e_time; /* time, in frames */ 36 int8_t e_size; /* size of entry, in longs */ 37 int8_t e_type; /* type of entry */ 38 int8_t e_data1; /* 1st 8 bits of data */ 39 int8_t e_data2; /* 2nd 8 bits of data */ 40 40 41 41 struct s_entry *e_bak, /* backward pointer */ … … 51 51 struct n_entry { /* note entry structure */ 52 52 53 longe_time; /* time, in frames */54 chare_size; /* size of entry, in longs */55 chare_type; /* type of entry */56 chare_note; /* note number */57 chare_group; /* group */53 int32_t e_time; /* time, in frames */ 54 int8_t e_size; /* size of entry, in longs */ 55 int8_t e_type; /* type of entry */ 56 int8_t e_note; /* note number */ 57 int8_t e_group; /* group */ 58 58 59 59 struct s_entry *e_bak, /* backward pointer */ 60 60 *e_fwd; /* forward pointer */ 61 61 62 short e_vel; /* velocity */63 short e_data4;62 int16_t e_vel; /* velocity */ 63 int16_t e_data4; 64 64 }; 65 65 -
include/secdefs.h
r0292fbb r7258c6a 6 6 */ 7 7 8 extern short secopok;9 extern longt_sbgn, t_send, t_sect, t_sec1, t_sec2, t_cbgn, t_cend;8 extern int16_t secopok; 9 extern int32_t t_sbgn, t_send, t_sect, t_sec1, t_sec2, t_cbgn, t_cend; 10 10 extern struct s_entry *p_sbgn, *p_send, *p_sec1, *p_sec2, *p_cbgn, *p_cend; 11 -
include/setjmp.h
r0292fbb r7258c6a 17 17 struct JMP_BUF { /* setjmp() / longjmp() environment structure */ 18 18 19 longjmpret; /* return address */19 int32_t jmpret; /* return address */ 20 20 21 longjmp_d1; /* data registers */22 longjmp_d2;23 longjmp_d3;24 longjmp_d4;25 longjmp_d5;26 longjmp_d6;27 longjmp_d7;21 int32_t jmp_d1; /* data registers */ 22 int32_t jmp_d2; 23 int32_t jmp_d3; 24 int32_t jmp_d4; 25 int32_t jmp_d5; 26 int32_t jmp_d6; 27 int32_t jmp_d7; 28 28 29 longjmp_a1; /* address registers */30 longjmp_a2;31 longjmp_a3;32 longjmp_a4;33 longjmp_a5;34 longjmp_a6;35 longjmp_a7;29 int32_t jmp_a1; /* address registers */ 30 int32_t jmp_a2; 31 int32_t jmp_a3; 32 int32_t jmp_a4; 33 int32_t jmp_a5; 34 int32_t jmp_a6; 35 int32_t jmp_a7; 36 36 }; 37 37 -
include/slice.h
r0292fbb r7258c6a 15 15 16 16 struct gdsel *next; /* pointer to next element */ 17 short note; /* note offset 0..87 */18 short code; /* update code */17 int16_t note; /* note offset 0..87 */ 18 int16_t code; /* update code */ 19 19 }; 20 20 -
include/smdefs.h
r0292fbb r7258c6a 10 10 struct sment *nxt; 11 11 struct sment *prv; 12 u nsignedvp;13 u nsignedsm;12 uint16_t vp; 13 uint16_t sm; 14 14 }; 15 15 … … 18 18 struct sment *nxt; 19 19 struct sment *prv; 20 u nsignedval;20 uint16_t val; 21 21 }; 22 22 -
include/stdarg.h
r0292fbb r7258c6a 6 6 */ 7 7 8 typedef char*va_list;8 typedef int8_t *va_list; 9 9 10 #define va_start(ap, last) ap = ( char*)&last + sizeof(last)10 #define va_start(ap, last) ap = (int8_t *)&last + sizeof(last) 11 11 #define va_arg(ap, type) (ap += sizeof(type), ap[-1]) 12 12 #define va_end(ap) -
include/stddefs.h
r0292fbb r7258c6a 96 96 /* BOOL type definition for flag variables */ 97 97 98 typedef charBOOL;98 typedef int8_t BOOL; 99 99 100 100 #endif -
include/stdio.h
r0292fbb r7258c6a 22 22 typedef struct { 23 23 24 char*_bp; /* current position in buffer */25 char*_bend; /* last character in buffer + 1 */26 char*_buff; /* address of buffer */27 char_flags; /* {_BUSY, _ALLBUF, _DIRTY, _EOF, _IOERR} */28 char_unit; /* fd token returned by open */29 char_bytbuf; /* single byte buffer for unbuffered streams */30 char_pad; /* pad for alignment -- possibly use later */31 int _buflen; /* length of buffer */24 int8_t *_bp; /* current position in buffer */ 25 int8_t *_bend; /* last character in buffer + 1 */ 26 int8_t *_buff; /* address of buffer */ 27 int8_t _flags; /* {_BUSY, _ALLBUF, _DIRTY, _EOF, _IOERR} */ 28 int8_t _unit; /* fd token returned by open */ 29 int8_t _bytbuf; /* single byte buffer for unbuffered streams */ 30 int8_t _pad; /* pad for alignment -- possibly use later */ 31 int16_t _buflen; /* length of buffer */ 32 32 33 33 } FILE; … … 36 36 37 37 extern FILE Cbuffs[NSTREAMS]; /* table of FILE structures */ 38 extern char*Stdbufs; /* free list of buffers */39 extern longStdbuf[MAXDFILE][BUFSIZL]; /* buffers */38 extern int8_t *Stdbufs; /* free list of buffers */ 39 extern int32_t Stdbuf[MAXDFILE][BUFSIZL]; /* buffers */ 40 40 41 41 #endif 42 42 43 extern longftell(FILE *fp);44 extern char *gets(char*line);45 extern char *fgets(char *s, int n, FILE *fp);46 extern FILE *fopen( char *name, char*mode);47 extern FILE *fopena( char *name, char*mode);48 extern FILE *fopenb( char *name, char*mode);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 49 50 50 #define stdin (&Cbuffs[0]) -
include/strings.h
r0292fbb r7258c6a 6 6 */ 7 7 8 extern char *strccpy(char *s1, char *s2, charc);9 extern char *strcpy(char *s1, char*s2);10 extern char *strncpy(char *s1, char *s2, int n);11 extern char *strcat(char *s1, char*s2);12 extern char *strncat(char *s1, char *s2, int n);13 extern char *strchr(char *sp, charc);14 extern char *strrchr(char *sp, charc);15 extern char *strpbrk(char *string, char*brkset);16 extern char *strtok(char *string, char*sepset);17 extern char *index(char *str, charc);18 extern char *rindex(char *str, charc);19 extern char *str2lc(char*s);20 extern char *str2uc(char*s);8 extern int8_t *strccpy(int8_t *s1, int8_t *s2, int8_t c); 9 extern int8_t *strcpy(int8_t *s1, int8_t *s2); 10 extern int8_t *strncpy(int8_t *s1, int8_t *s2, int16_t n); 11 extern int8_t *strcat(int8_t *s1, int8_t *s2); 12 extern int8_t *strncat(int8_t *s1, int8_t *s2, int16_t n); 13 extern int8_t *strchr(int8_t *sp, int8_t c); 14 extern int8_t *strrchr(int8_t *sp, int8_t c); 15 extern int8_t *strpbrk(int8_t *string, int8_t *brkset); 16 extern int8_t *strtok(int8_t *string, int8_t *sepset); 17 extern int8_t *index(int8_t *str, int8_t c); 18 extern int8_t *rindex(int8_t *str, int8_t c); 19 extern int8_t *str2lc(int8_t *s); 20 extern int8_t *str2uc(int8_t *s); 21 21 22 extern int strcmp(char *s1, char*s2);23 extern int strlcmp(char *s, char*l[]);24 extern int strncmp(char *s1, char *s2, int n);25 extern int strlen(char*s);26 extern int strspn(char *string, char*charset);27 extern int strcspn(char *string, char*charset);22 extern int16_t strcmp(int8_t *s1, int8_t *s2); 23 extern int16_t strlcmp(int8_t *s, int8_t *l[]); 24 extern int16_t strncmp(int8_t *s1, int8_t *s2, int16_t n); 25 extern int16_t strlen(int8_t *s); 26 extern int16_t strspn(int8_t *string, int8_t *charset); 27 extern int16_t strcspn(int8_t *string, int8_t *charset); 28 28 29 extern long strtol(char *str, char **ptr, int base); 29 extern int32_t strtol(int8_t *str, int8_t **ptr, int16_t base); 30 31 -
include/swrtab.h
r0292fbb r7258c6a 1 long swrtab[128] = { /* scroll rates */ 1 2 int32_t swrtab[128] = { /* scroll rates */ 2 3 3 4 0x00000000L, 0x00000800L, 0x00001000L, 0x00001800L, /* 0 */ -
include/timers.h
r0292fbb r7258c6a 15 15 #define MUTIMER 5 /* mouse buffer flush timer */ 16 16 17 extern short timers[NTIMERS]; /* timer array */ 17 extern int16_t timers[NTIMERS]; /* timer array */ 18 -
include/vsdd.h
r0292fbb r7258c6a 55 55 struct octent { /* Object control table entry */ 56 56 57 u nsigned int ysize, /* Height of object in pixels */57 uint16_t ysize, /* Height of object in pixels */ 58 58 xsize; /* Width of object in pixels */ 59 59 60 int objx, /* Object x location */60 int16_t objx, /* Object x location */ 61 61 objy; /* Object y location */ 62 62 63 u nsigned int *obase; /* Base of object data */63 uint16_t *obase; /* Base of object data */ 64 64 65 charopri, /* Current object priority */65 int8_t opri, /* Current object priority */ 66 66 obank; /* Object bank 0..3 */ 67 67 68 u nsigned int odtw0, /* Object descriptor table word 0 */68 uint16_t odtw0, /* Object descriptor table word 0 */ 69 69 odtw1; /* Object descriptor table word 1 */ 70 70 }; -
include/vsddsw.h
r0292fbb r7258c6a 9 9 /* functions */ 10 10 11 extern void vbank(u nsignedb);12 extern void vputp(struct octent *octad, int xloc, int yloc, int val);13 extern void vwputp(struct octent *octad, int xloc, int yloc, int val);11 extern void vbank(uint16_t b); 12 extern void vputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val); 13 extern void vwputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val); 14 14 15 15 /* these should be voids ... */ 16 16 17 17 extern void vfwait(void); 18 extern void vputs(uint *sbase, uint row, uint col, uint attrib, char*str);19 extern void vputsa(uint *sbase, uint row, uint col, uint *attrib, char*str);20 extern void vputc(u nsigned *sbase, unsigned row, unsigned col, unsigned c, unsignedattrib);18 extern void vputs(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t attrib, int8_t *str); 19 extern void vputsa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t *attrib, int8_t *str); 20 extern void vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib); 21 21 extern void VHinit(void); 22 extern void objclr(u nsignedobj);23 extern void objon(u nsigned obj, unsigned line, unsignednum);24 extern void objoff(u nsigned obj, unsigned line, unsignednum);25 extern void vcputs(int *obase, int nw, int fg, int bg, int row, int col, char*str);26 extern void vwputs(int *obase, int nw, int fg, int bg, int row, int col, char*str);27 extern void vwputm(u nsigned int *obase, int nw, int fg, int bg, int row, int col, char*ml[]);28 extern void vmput(uint *sbase, uint row, uint col, uint ma, char*ms[]);29 extern void vmputa(uint *sbase, uint row, uint col, uint *ma[], char*ms[]);22 extern void objclr(uint16_t obj); 23 extern void objon(uint16_t obj, uint16_t line, uint16_t num); 24 extern void objoff(uint16_t obj, uint16_t line, uint16_t num); 25 extern void vcputs(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str); 26 extern void vwputs(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str); 27 extern void vwputm(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *ml[]); 28 extern void vmput(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t ma, int8_t *ms[]); 29 extern void vmputa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t *ma[], int8_t *ms[]); 30 30 extern void VSinit(void); 31 extern void SelObj(int obj); 32 extern void SetPri(int obj, int pri); 33 extern void SetObj(int obj, int type, int bank, int xpix, int ypix, int x0, int y0, int flags, int pri, unsigned int *base); 34 extern void CpyObj(unsigned *from, unsigned *to, unsigned w, unsigned h, unsigned sw); 31 extern void SelObj(int16_t obj); 32 extern void SetPri(int16_t obj, int16_t pri); 33 extern void SetObj(int16_t obj, int16_t type, int16_t bank, int16_t xpix, int16_t ypix, int16_t x0, int16_t y0, int16_t flags, int16_t pri, uint16_t *base); 34 extern void CpyObj(uint16_t *from, uint16_t *to, uint16_t w, uint16_t h, uint16_t sw); 35 36 -
include/vsddvars.h
r0292fbb r7258c6a 10 10 11 11 extern struct octent *v_curob; /* working object control pointer */ 12 extern int v_nobj; /* working object number */13 extern int v_obpri; /* working object priority */12 extern int16_t v_nobj; /* working object number */ 13 extern int16_t v_obpri; /* working object priority */ 14 14 15 -
include/wdcurtb.h
r0292fbb r7258c6a 6 6 */ 7 7 8 short wdcurtb[] = {8 int16_t wdcurtb[] = { 9 9 10 10 0x7FFF, /* 0 64 1.00000000 1.00000000 */ … … 147 147 }; 148 148 149 short wdcurct[8][2] = {149 int16_t wdcurct[8][2] = { 150 150 151 151 /* { np, inc} w */ -
include/wordq.h
r0292fbb r7258c6a 8 8 struct wordq { 9 9 10 u nsigned short qsize; /* maximum queue length */11 u nsigned short qlen; /* current queue length */12 u nsigned short qin; /* in pointer */13 u nsigned short qout; /* out pointer */14 u nsigned short qhi; /* high water mark */15 u nsigned short qlo; /* low water mark */16 u nsigned short *qbuf; /* base of queue */10 uint16_t qsize; /* maximum queue length */ 11 uint16_t qlen; /* current queue length */ 12 uint16_t qin; /* in pointer */ 13 uint16_t qout; /* out pointer */ 14 uint16_t qhi; /* high water mark */ 15 uint16_t qlo; /* low water mark */ 16 uint16_t *qbuf; /* base of queue */ 17 17 }; 18 18 19 19 #ifndef WORDQHDR 20 extern short putwq(struct wordq *qp, unsigned short c);21 extern short getwq(struct wordq *qp, unsigned short *p);22 extern u nsigned short setwq(struct wordq *qp, unsigned short *qadr, unsigned short qsiz, unsigned short hi, unsigned short lo);20 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 23 #endif 24 -
include/wsdsp.h
r0292fbb r7258c6a 12 12 struct wstbl { /* waveshape table library entry */ 13 13 14 short final[NUMWPNT]; /* final values */15 short offset[NUMWPNT]; /* offset values */16 short harmon[NUMHARM]; /* harmonic values */14 int16_t final[NUMWPNT]; /* final values */ 15 int16_t offset[NUMWPNT]; /* offset values */ 16 int16_t harmon[NUMHARM]; /* harmonic values */ 17 17 }; 18 18
Note:
See TracChangeset
for help on using the changeset viewer.