Changeset 7258c6a in buchla-68k for ram/barbadj.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/barbadj.c
r0292fbb r7258c6a 35 35 #include "glcdefs.h" 36 36 37 extern short BarBcur[];38 extern short BarCcur[];37 extern int16_t BarBcur[]; 38 extern int16_t BarCcur[]; 39 39 40 40 /* left-most bar columns */ 41 41 42 short BarCols[14] = { 2, 8, 14, 20, 26, 32, 38, 44, 50, 56, 62, 68, 74, 80 };42 int16_t BarCols[14] = { 2, 8, 14, 20, 26, 32, 38, 44, 50, 56, 62, 68, 74, 80 }; 43 43 44 44 /* bar dot data */ 45 45 46 short BarDots[3] = { 0x1C, 0xFC, 0xE0 };46 int16_t BarDots[3] = { 0x1C, 0xFC, 0xE0 }; 47 47 48 48 #include "glcbars.h" /* bar graph driver constant definitions */ … … 58 58 */ 59 59 60 void BarBadj( short bar, short val)60 void BarBadj(int16_t bar, int16_t val) 61 61 { 62 register short bardot, barpos, curdif;63 register u nsignedbaradr;64 short barcol, bardif, curbar, i, newbar;62 register int16_t bardot, barpos, curdif; 63 register uint16_t baradr; 64 int16_t barcol, bardif, curbar, i, newbar; 65 65 66 66 newbar = BarBLn[val]; /* look up the new bar position */ … … 142 142 */ 143 143 144 void BarBset( short bar, short val)144 void BarBset(int16_t bar, int16_t val) 145 145 { 146 register short bardot, barpos, newbar;147 register u nsignedbaradr;148 short barcol, i;146 register int16_t bardot, barpos, newbar; 147 register uint16_t baradr; 148 int16_t barcol, i; 149 149 150 150 newbar = BarBLn[val]; /* look up the new bar position */ … … 195 195 */ 196 196 197 void BarCadj( short bar, short val)197 void BarCadj(int16_t bar, int16_t val) 198 198 { 199 register short bardot, barpos, newbar;200 register u nsignedbaradr;201 short barcol, bardif, curbar, i;199 register int16_t bardot, barpos, newbar; 200 register uint16_t baradr; 201 int16_t barcol, bardif, curbar, i; 202 202 203 203 newbar = BarCLn[val + BOffset]; /* look up the new bar position */ … … 286 286 */ 287 287 288 void BarCset( short bar, short val)288 void BarCset(int16_t bar, int16_t val) 289 289 { 290 register short bardot, barpos, barloc1, barloc2;291 register u nsignedbaradr;292 short barcol, i, newbar;290 register int16_t bardot, barpos, barloc1, barloc2; 291 register uint16_t baradr; 292 int16_t barcol, i, newbar; 293 293 294 294 GLCcurs(G_ON); /* turn on GLC cursor to enable writing */
Note:
See TracChangeset
for help on using the changeset viewer.