Changeset 7258c6a in buchla-68k for ram/idselbx.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/idselbx.c
r0292fbb r7258c6a 15 15 #include "instdsp.h" 16 16 17 extern void (*itxput)( short row, short col, char *txt, short tag);18 19 extern void lseg( short x1, short y1, short x2, short y2, short t);20 extern void dswin( short n);21 extern void tsplot4(int *obase, int nw, int fg, int row, int col, char *str, int pitch);22 extern void vbfill4(u nsigned *obj, short obwidth, short xmin, short ymin, short xmax, short ymax, unsignedcolor);23 extern short entbh(short n);24 extern void vtdisp(u nsigned *obj, unsigned fg, unsigned bg, short row, short col, char*buf);17 extern void (*itxput)(int16_t row, int16_t col, int8_t *txt, int16_t tag); 18 19 extern void lseg(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t t); 20 extern void dswin(int16_t n); 21 extern void tsplot4(int16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch); 22 extern void vbfill4(uint16_t *obj, int16_t obwidth, int16_t xmin, int16_t ymin, int16_t xmax, int16_t ymax, uint16_t color); 23 extern int16_t entbh(int16_t n); 24 extern void vtdisp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf); 25 25 extern void advicur(void); 26 26 extern void bspicur(void); 27 27 28 extern void drawfn( short fn, short how, short pen, short wn);29 extern short selpnt(void);30 extern short ttox(unsigned time, short window);31 extern short vtoy(short val, short window);32 33 extern short timeto(short fn, short pj);34 extern u nsigned exp_c(unsignedc);35 36 /* 37 38 */ 39 40 extern short cursbox, cxval, cyval;41 extern short curvce, curfunc, curpnt;42 extern short hitbox, hitcx, hitcy, idnamsw, idimsw, idtdat;43 extern short pntsv, pecase, stccol, subj, submenu;44 45 extern short temin, temax;28 extern void drawfn(int16_t fn, int16_t how, int16_t pen, int16_t wn); 29 extern int16_t selpnt(void); 30 extern int16_t ttox(uint16_t time, int16_t window); 31 extern int16_t vtoy(int16_t val, int16_t window); 32 33 extern int16_t timeto(int16_t fn, int16_t pj); 34 extern uint16_t exp_c(uint16_t c); 35 36 /* 37 38 */ 39 40 extern int16_t cursbox, cxval, cyval; 41 extern int16_t curvce, curfunc, curpnt; 42 extern int16_t hitbox, hitcx, hitcy, idnamsw, idimsw, idtdat; 43 extern int16_t pntsv, pecase, stccol, subj, submenu; 44 45 extern int16_t temin, temax; 46 46 47 47 extern struct selbox *csbp, *curboxp; … … 51 51 extern struct instpnt *pntptr; 52 52 53 extern short idbox[][8];54 extern short instmod[];55 56 extern char*vtdeptr;57 58 extern char*idbxlbl[];59 extern charidhlbl[];60 extern charbfs[];61 62 extern u nsigned*instob;53 extern int16_t idbox[][8]; 54 extern int16_t instmod[]; 55 56 extern int8_t *vtdeptr; 57 58 extern int8_t *idbxlbl[]; 59 extern int8_t idhlbl[]; 60 extern int8_t bfs[]; 61 62 extern uint16_t *instob; 63 63 64 64 /* forward references */ 65 65 66 short bx_null(void);67 short idfnbox(short n);66 int16_t bx_null(void); 67 int16_t idfnbox(int16_t n); 68 68 69 69 /* … … 117 117 */ 118 118 119 void idtxput( short row, short col, char *txt, short tag)119 void idtxput(int16_t row, int16_t col, int8_t *txt, int16_t tag) 120 120 { 121 121 if (v_regs[5] & 0x0180) … … 133 133 void showim(void) 134 134 { 135 register short row, col, ins;135 register int16_t row, col, ins; 136 136 137 137 ins = 0; … … 251 251 */ 252 252 253 short edfunc(short n)254 { 255 register u nsignedcx;253 int16_t edfunc(int16_t n) 254 { 255 register uint16_t cx; 256 256 register struct instdef *ip; 257 257 … … 336 336 */ 337 337 338 void showpt( short q)339 { 340 register short ptx, pty, i, j, k;338 void showpt(int16_t q) 339 { 340 register int16_t ptx, pty, i, j, k; 341 341 register struct instdef *ip; 342 short ptc;342 int16_t ptc; 343 343 344 344 if (q) … … 405 405 */ 406 406 407 short bx_null(void)407 int16_t bx_null(void) 408 408 { 409 409 return(TRUE); … … 416 416 */ 417 417 418 void iclrwin( short n)418 void iclrwin(int16_t n) 419 419 { 420 420 if (v_regs[5] & 0x0180) … … 435 435 */ 436 436 437 short idfnbox(short n)438 { 439 register short col, i, row;437 int16_t idfnbox(int16_t n) 438 { 439 register int16_t col, i, row; 440 440 register struct instdef *ip; 441 register char*ivtdptr;441 register int8_t *ivtdptr; 442 442 443 443 ip = &vbufs[curvce];
Note:
See TracChangeset
for help on using the changeset viewer.