Changeset d1ecb94 in buchla-68k for ram


Ignore:
Timestamp:
11/12/2017 08:33:43 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
6d5247b
Parents:
210d896
Message:

Fixed scadv.c.

Location:
ram
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ram/scadv.c

    r210d896 rd1ecb94  
    1818/* initialized stuff */
    1919
    20 int16_t nbmoff = 3;
    21 int16_t wrdoff = 3;
    22 
    23 int16_t nbmasks[4] = {          /* nybble masks */
     20int16_t         nbmoff = 3;
     21int16_t         wrdoff = 3;
     22
     23uint16_t        nbmasks[4] = {          /* nybble masks */
    2424
    2525        0x000F,
     
    4040void sc_adv(void)
    4141{
    42         int16_t masksl, maskpx, i;
     42        uint16_t masksl, maskpx;
     43        int16_t i;
    4344        uint16_t sword;
    4445        int32_t tl;
     
    185186        uslice(nxtsl, maskpx, masksl, gdstbn);          /* update right edge */
    186187
    187         scrl  = 0x8000 | ((soffset >> 1) ^ 0x0001);
     188        scrl  = 0x8000 | (((uint16_t)soffset >> 1) ^ 0x0001);
    188189
    189190        /* only update VSDD registers if score is up and scrl changed */
     
    221222void scupd(void)
    222223{
    223         int16_t masksl, maskpx, i;
     224        uint16_t masksl, maskpx;
     225        int16_t i;
    224226        uint16_t sword;
    225227        int32_t tl;
  • ram/scadv.x

    r210d896 rd1ecb94  
    1515*/
    1616
    17 extern  int16_t         nbmasks[4];
     17extern  uint16_t        nbmasks[4];
    1818extern  int16_t         nbmoff;
    1919extern  int16_t         wrdoff;
Note: See TracChangeset for help on using the changeset viewer.