Changeset 7258c6a in buchla-68k for ram/scselbx.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/scselbx.c
r0292fbb r7258c6a 30 30 /* functions defined elsewhere */ 31 31 32 extern short entbh(short n);32 extern int16_t entbh(int16_t n); 33 33 extern void advscur(void); 34 extern short oktode(struct s_entry *ep);34 extern int16_t oktode(struct s_entry *ep); 35 35 extern void nokey(void); 36 36 … … 41 41 /* variables defined elsewhere */ 42 42 43 extern void (*itxput)( short row, short col, char *txt, short tag);44 extern void (*point)( short x, short y, short pen);45 46 extern short ancmsw;47 extern short angroup;48 extern short asmode;49 extern short clkrun;50 extern short clkctl;51 extern short clksrc;52 extern short ctrsw;53 extern short cxval;54 extern short cyval;55 extern short dubsw;56 extern short gomode;57 extern short grptran;58 extern short gtmsel;59 extern short hitbox;60 extern short hitcx;61 extern short hitcy;62 extern short insmode;63 extern short ismode;64 extern short lastam;65 extern short midiclk;66 extern short noteop;67 extern short notesel;68 extern short oldpk;69 extern short oldsl;70 extern short pchsw;71 extern short pkctrl;72 extern short pulsclk;73 extern short recsw;74 extern short scmctl;75 extern short sdmcol;76 extern short sdmctl;77 extern short sdmrow;78 extern short secop;79 extern short sgoflag;80 extern short sliders;81 extern short stccol;82 extern short stcrow;83 extern short stepclk;84 extern short stepenb;85 extern short submenu;86 extern short velflag;87 extern short vtccol;88 extern short vtcrow;89 90 /* 91 92 */ 93 94 extern short grptmap[];95 96 extern short sctctab[][64];43 extern void (*itxput)(int16_t row, int16_t col, int8_t *txt, int16_t tag); 44 extern void (*point)(int16_t x, int16_t y, int16_t pen); 45 46 extern int16_t ancmsw; 47 extern int16_t angroup; 48 extern int16_t asmode; 49 extern int16_t clkrun; 50 extern int16_t clkctl; 51 extern int16_t clksrc; 52 extern int16_t ctrsw; 53 extern int16_t cxval; 54 extern int16_t cyval; 55 extern int16_t dubsw; 56 extern int16_t gomode; 57 extern int16_t grptran; 58 extern int16_t gtmsel; 59 extern int16_t hitbox; 60 extern int16_t hitcx; 61 extern int16_t hitcy; 62 extern int16_t insmode; 63 extern int16_t ismode; 64 extern int16_t lastam; 65 extern int16_t midiclk; 66 extern int16_t noteop; 67 extern int16_t notesel; 68 extern int16_t oldpk; 69 extern int16_t oldsl; 70 extern int16_t pchsw; 71 extern int16_t pkctrl; 72 extern int16_t pulsclk; 73 extern int16_t recsw; 74 extern int16_t scmctl; 75 extern int16_t sdmcol; 76 extern int16_t sdmctl; 77 extern int16_t sdmrow; 78 extern int16_t secop; 79 extern int16_t sgoflag; 80 extern int16_t sliders; 81 extern int16_t stccol; 82 extern int16_t stcrow; 83 extern int16_t stepclk; 84 extern int16_t stepenb; 85 extern int16_t submenu; 86 extern int16_t velflag; 87 extern int16_t vtccol; 88 extern int16_t vtcrow; 89 90 /* 91 92 */ 93 94 extern int16_t grptmap[]; 95 96 extern int16_t sctctab[][64]; 97 97 98 98 extern struct asgent asgtab[]; … … 103 103 extern struct s_time stimes[N_SCORES][N_SECTS]; /* section times */ 104 104 105 extern u nsigned*obj8, *obj11;105 extern uint16_t *obj8, *obj11; 106 106 107 107 extern LPF (*swpt)[]; … … 109 109 extern LPF t_ngrp[]; 110 110 111 extern charbfs[];112 extern chartunname[][32];111 extern int8_t bfs[]; 112 extern int8_t tunname[][32]; 113 113 114 114 extern struct gdsel *gdstbc[]; … … 116 116 /* forward references */ 117 117 118 short sdboxfn(short n);118 int16_t sdboxfn(int16_t n); 119 119 void bspscur(void); 120 void svtdsp(u nsigned *obj, unsigned fg, unsigned bg, short row, short col, char*buf);120 void svtdsp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf); 121 121 void svtstop(void); 122 122 … … 125 125 */ 126 126 127 char*sdmenus[][3] = { /* score display menus */127 int8_t *sdmenus[][3] = { /* score display menus */ 128 128 129 129 /* 0 - typewriter */ … … 158 158 }; 159 159 160 charsdmln3[] =160 int8_t sdmln3[] = 161 161 " ReGrp Remove Trn S "; 162 162 163 charsdmln4[] =163 int8_t sdmln4[] = 164 164 "Escape D "; 165 165 … … 168 168 */ 169 169 170 short sdmht[][3] = { /* score section menu highlight table */170 int16_t sdmht[][3] = { /* score section menu highlight table */ 171 171 172 172 /* row, lcol, rcol */ … … 186 186 }; 187 187 188 short sdmlim[][4] = { /* score display menu cursor limits */188 int16_t sdmlim[][4] = { /* score display menu cursor limits */ 189 189 190 190 /* top, left, bottom, right */ … … 201 201 */ 202 202 203 char*nedlbl[] = { /* note edit function labels */203 int8_t *nedlbl[] = { /* note edit function labels */ 204 204 205 205 "Note Edit", /* 0 - NOP_NUL */ … … 254 254 */ 255 255 256 short insect(void)256 int16_t insect(void) 257 257 { 258 register short col;258 register int16_t col; 259 259 260 260 col = vtccol - 24; … … 277 277 */ 278 278 279 void svtdsp(u nsigned *obj, unsigned fg, unsigned bg, short row, short col, char*buf)279 void svtdsp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf) 280 280 { 281 281 if (v_regs[5] & 0x0180) … … 308 308 void bspscur(void) 309 309 { 310 register short newcol;310 register int16_t newcol; 311 311 312 312 if (infield(stcrow, stccol, curfet)) … … 337 337 void dsects(void) 338 338 { 339 register short atr, row, col, i, j;340 charbuf[8];341 charcl, cr, csl, csr;342 short begun;339 register int16_t atr, row, col, i, j; 340 int8_t buf[8]; 341 int8_t cl, cr, csl, csr; 342 int16_t begun; 343 343 344 344 register struct s_entry *sp; … … 414 414 */ 415 415 416 void dsgtmn( short n, short f)416 void dsgtmn(int16_t n, int16_t f) 417 417 { 418 charbuf[4];419 short atr, col;418 int8_t buf[4]; 419 int16_t atr, col; 420 420 421 421 sprintf(buf, "%02d", n + 1); … … 436 436 */ 437 437 438 void dsgtme( short n)438 void dsgtme(int16_t n) 439 439 { 440 charbuf[4];441 short col;440 int8_t buf[4]; 441 int16_t col; 442 442 443 443 if (grptmap[n] EQ -1) … … 466 466 void dsgtmap(void) 467 467 { 468 charbuf[6];469 register short i;468 int8_t buf[6]; 469 register int16_t i; 470 470 471 471 if (v_regs[5] & 0x0180) … … 489 489 */ 490 490 491 short ingroup(void)491 int16_t ingroup(void) 492 492 { 493 register short col;493 register int16_t col; 494 494 495 495 col = vtccol - 28; … … 514 514 */ 515 515 516 void sdmtxt( short row, short col, char *txt, short tag)516 void sdmtxt(int16_t row, int16_t col, int8_t *txt, int16_t tag) 517 517 { 518 518 if ((v_regs[5] & 0x0180) NE 0x0100) … … 532 532 */ 533 533 534 void showam( short asg)534 void showam(int16_t asg) 535 535 { 536 register short col, na, row;536 register int16_t col, na, row; 537 537 538 538 if (asg EQ 1) … … 572 572 void showtm(void) 573 573 { 574 register short row, tun;574 register int16_t row, tun; 575 575 576 576 tun = 0; … … 598 598 void showsm(void) 599 599 { 600 register short col, row, scr;600 register int16_t col, row, scr; 601 601 602 602 scr = 1; … … 631 631 */ 632 632 633 void scmenu( short n)633 void scmenu(int16_t n) 634 634 { 635 register short i;635 register int16_t i; 636 636 register struct octent *op; 637 637 … … 740 740 */ 741 741 742 void sdmenu( short n)742 void sdmenu(int16_t n) 743 743 { 744 register short i, wasup;744 register int16_t i, wasup; 745 745 746 746 wasup = sdmctl; /* save previous menu type */ … … 895 895 */ 896 896 897 void hilitnt( short nop)897 void hilitnt(int16_t nop) 898 898 { 899 899 noteop = nop; /* set note operation */ … … 913 913 */ 914 914 915 void hilitop( short n)915 void hilitop(int16_t n) 916 916 { 917 register short row, lc, rc, col;917 register int16_t row, lc, rc, col; 918 918 919 919 if (clkrun) /* don't do anything if clock is running */ … … 955 955 void dosecop(void) 956 956 { 957 register short sect;957 register int16_t sect; 958 958 register struct s_entry *ep; 959 959 … … 1165 1165 */ 1166 1166 1167 void clkset( short st)1167 void clkset(int16_t st) 1168 1168 { 1169 1169 clkrun = st; … … 1232 1232 */ 1233 1233 1234 short sdboxfn(short n)1234 int16_t sdboxfn(int16_t n) 1235 1235 { 1236 register short row, col, grp, what, i;1236 register int16_t row, col, grp, what, i; 1237 1237 register struct s_entry *ep; 1238 short atr, modewas;1238 int16_t atr, modewas; 1239 1239 1240 1240 row = hitcy / 14;
Note:
See TracChangeset
for help on using the changeset viewer.