Changeset 7258c6a in buchla-68k for ram/stcpos.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/stcpos.c

    r0292fbb r7258c6a  
    2121#define SDLINE          4               /* dividing line color - analog stuff */
    2222
    23 extern  unsigned        exp_c(unsigned c);
    24 
    25 extern  unsigned        *STCOBJ;        /* text cursor address in VSDD RAM */
    26 
    27 extern  short   cxval, cyval;           /* score cursor x,y */
    28 extern  short   stcrow, stccol;         /* score cursor row,col */
    29 extern  short   sctctab[10][64];        /* score background color table */
    30 
    31 /*
    32 
    33 */
    34 
    35 short   sctccon[10][64] = {             /* score background color constants */
     23extern  uint16_t        exp_c(uint16_t c);
     24
     25extern  uint16_t        *STCOBJ;        /* text cursor address in VSDD RAM */
     26
     27extern  int16_t cxval, cyval;           /* score cursor x,y */
     28extern  int16_t stcrow, stccol;         /* score cursor row,col */
     29extern  int16_t sctctab[10][64];        /* score background color table */
     30
     31/*
     32
     33*/
     34
     35int16_t sctccon[10][64] = {             /* score background color constants */
    3636
    3737        /* 0 - row  0 */
     
    172172void stcclr(void)
    173173{
    174         register unsigned *obj;
    175         register short i, j;
    176         register unsigned k;
     174        register uint16_t *obj;
     175        register int16_t i, j;
     176        register uint16_t k;
    177177
    178178        if ((v_regs[5] & 0x0180) NE 0x0100)
     
    216216void stcoff(void)
    217217{
    218         register unsigned ccv, *tcp;
    219         register short tcrow;
     218        register uint16_t ccv, *tcp;
     219        register int16_t tcrow;
    220220
    221221        tcrow = stcrow ? (stcrow - 16) : 0;     /* get old object row */
     
    244244*/
    245245
    246 void stcpos(short row, short col)
    247 {
    248         register unsigned *ccp, *tcp;
    249         register unsigned curson, ccv;
    250         register short ncrow, tcrow;
     246void stcpos(int16_t row, int16_t col)
     247{
     248        register uint16_t *ccp, *tcp;
     249        register uint16_t curson, ccv;
     250        register int16_t ncrow, tcrow;
    251251
    252252        tcrow = stcrow ? (stcrow - 16) : 0;     /* get old object row */
     
    287287void advscur(void)
    288288{
    289         register short newcol;
     289        register int16_t newcol;
    290290
    291291        if (infield(stcrow, stccol, curfet))
Note: See TracChangeset for help on using the changeset viewer.