Changeset 7258c6a in buchla-68k for ram/m7menu.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/m7menu.c
r0292fbb r7258c6a 36 36 #endif 37 37 38 extern charm7verms[], bfs[], loadedf[][8];38 extern int8_t m7verms[], bfs[], loadedf[][8]; 39 39 40 40 extern struct selbox *csbp, *curboxp; 41 41 42 extern void (*point)( short x, short y, short pen);42 extern void (*point)(int16_t x, int16_t y, int16_t pen); 43 43 44 44 extern void nokey(void); 45 extern void nodkey( short k);46 extern short nonf(short k);45 extern void nodkey(int16_t k); 46 extern int16_t nonf(int16_t k); 47 47 extern void select(void); 48 48 extern void cxkstd(void); … … 50 50 extern void cxgen(void); 51 51 extern void cygen(void); 52 extern short stdctp2(void);53 54 extern u nsigned exp_c(unsignedc);55 56 extern short ndisp, runit, curslim, sgcsw, cxval, cyval, stcrow, stccol;57 extern short crate1[], defect, dsp_ok;52 extern int16_t stdctp2(void); 53 54 extern uint16_t exp_c(uint16_t c); 55 56 extern int16_t ndisp, runit, curslim, sgcsw, cxval, cyval, stcrow, stccol; 57 extern int16_t crate1[], defect, dsp_ok; 58 58 59 59 extern struct octent *mdoct; 60 60 61 extern u nsigned*menuob, *obj0, vi_ctl;62 63 static charml01[61], ml02[61], ml03[61], ml04[61], ml05[61];64 65 short mdselbx(short n);66 67 /* 68 69 */ 70 71 static charmlc01[] = {1, 0xBA, 58, 0xB1, 1, 0xBB, -1};72 static charmlc02[] = {1, 0xB6, 29, 0xB1, 1, 0xB7, 28, 0xB1, 1, 0xB4, -1};73 static charmlc03[] = {1, 0xB6, 29, 0xB1, 1, 0xB2, 28, 0xB1, 1, 0xB4, -1};74 static charmlc04[] = {1, 0xB6, 29, 0xB1, 1, 0xB5, 28, 0xB1, 1, 0xB4, -1};75 static charmlc05[] = {1, 0xB9, 58, 0xB1, 1, 0xB8, -1};76 77 static char*mtexts[] = {61 extern uint16_t *menuob, *obj0, vi_ctl; 62 63 static int8_t ml01[61], ml02[61], ml03[61], ml04[61], ml05[61]; 64 65 int16_t mdselbx(int16_t n); 66 67 /* 68 69 */ 70 71 static int8_t mlc01[] = {1, 0xBA, 58, 0xB1, 1, 0xBB, -1}; 72 static int8_t mlc02[] = {1, 0xB6, 29, 0xB1, 1, 0xB7, 28, 0xB1, 1, 0xB4, -1}; 73 static int8_t mlc03[] = {1, 0xB6, 29, 0xB1, 1, 0xB2, 28, 0xB1, 1, 0xB4, -1}; 74 static int8_t mlc04[] = {1, 0xB6, 29, 0xB1, 1, 0xB5, 28, 0xB1, 1, 0xB4, -1}; 75 static int8_t mlc05[] = {1, 0xB9, 58, 0xB1, 1, 0xB8, -1}; 76 77 static int8_t *mtexts[] = { 78 78 79 79 /* 0 */ "MIDAS VII for the Buchla 700 Version", … … 97 97 */ 98 98 99 static short mlintab[][4] = {99 static int16_t mlintab[][4] = { 100 100 101 101 { 18, 26, 18, 322}, … … 142 142 */ 143 143 144 static short mrowcol[][2] = {144 static int16_t mrowcol[][2] = { 145 145 146 146 { 2, 4}, /* 0 */ … … 181 181 */ 182 182 183 short menupal[16][3] = { /* menu display color palette */183 int16_t menupal[16][3] = { /* menu display color palette */ 184 184 185 185 {0, 0, 0}, /* 0 */ … … 201 201 }; 202 202 203 short blakpal[16][3] = { /* black palette */203 int16_t blakpal[16][3] = { /* black palette */ 204 204 205 205 {0, 0, 0}, /* 0 */ … … 225 225 */ 226 226 227 short mfrc[][2] = { /* file name row and column by load type LT_??? */227 int16_t mfrc[][2] = { /* file name row and column by load type LT_??? */ 228 228 229 229 {20, 6}, /* assignments */ … … 278 278 void dswap(void) 279 279 { 280 register short i;280 register int16_t i; 281 281 282 282 vsndpal(blakpal); /* blackout the palette */ … … 305 305 */ 306 306 307 void mlbld( char *where, char*from)307 void mlbld(int8_t *where, int8_t *from) 308 308 { 309 register short i, j;310 register charc;309 register int16_t i, j; 310 register int8_t c; 311 311 312 312 while (-1 NE (i = *from++)) { … … 327 327 */ 328 328 329 void mlpoint( short x, short y, short pen)329 void mlpoint(int16_t x, int16_t y, int16_t pen) 330 330 { 331 331 if (v_regs[5] & 0x0180) … … 345 345 */ 346 346 347 short mdselbx(short n)347 int16_t mdselbx(int16_t n) 348 348 { 349 register u nsignedmlcv, mbcv, mbak;350 register short rc;349 register uint16_t mlcv, mbcv, mbak; 350 register int16_t rc; 351 351 352 352 #if DEBUGIT … … 470 470 void drawm(void) 471 471 { 472 register short *mlp;473 register short i;474 register u nsignedmlcv, mbcv, mbak;475 charbuf[16];472 register int16_t *mlp; 473 register int16_t i; 474 register uint16_t mlcv, mbcv, mbak; 475 int8_t buf[16]; 476 476 477 477 mlcv = exp_c(MLINES);
Note:
See TracChangeset
for help on using the changeset viewer.