Changeset 8c8b4e5 in buchla-68k for ram/stcpos.c


Ignore:
Timestamp:
09/17/2017 05:01:10 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
432327d
Parents:
5c4721b
Message:

More volatile hardware accesses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/stcpos.c

    r5c4721b r8c8b4e5  
    143143void stcclr(void)
    144144{
    145         register uint16_t *obj;
    146         register int16_t i, j;
    147         register uint16_t k;
     145        volatile uint16_t *obj;
     146        int16_t i, j;
     147        uint16_t k;
    148148
    149149        if ((v_regs[5] & 0x0180) NE 0x0100)
     
    183183void stcoff(void)
    184184{
    185         register uint16_t ccv, *tcp;
    186         register int16_t tcrow;
     185        uint16_t ccv;
     186        volatile uint16_t *tcp;
     187        int16_t tcrow;
    187188
    188189        tcrow = stcrow ? (stcrow - 16) : 0;     /* get old object row */
     
    209210void stcpos(int16_t row, int16_t col)
    210211{
    211         register uint16_t *ccp, *tcp;
    212         register uint16_t curson, ccv;
    213         register int16_t ncrow, tcrow;
     212        volatile uint16_t *ccp, *tcp;
     213        uint16_t curson, ccv;
     214        int16_t ncrow, tcrow;
    214215
    215216        tcrow = stcrow ? (stcrow - 16) : 0;     /* get old object row */
Note: See TracChangeset for help on using the changeset viewer.