Changeset fb926d1 in buchla-68k for ram


Ignore:
Timestamp:
11/12/2017 10:13:37 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
f806726
Parents:
ba51a45
Message:

Fixed smscrl.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/smscrl.c

    rba51a45 rfb926d1  
    172172
    173173        if (OldLine NE LineBuf)
    174                 v_odtab[ScrlObj][2] = ((int32_t)LineBuf >> 1) & 0xFFFF;
     174                v_odtab[ScrlObj][2] = (uint16_t)((int32_t)LineBuf >> 1);
    175175
    176176        OldLine = LineBuf;
    177177
    178         v_odtab[ScrlObj][0] = (v_odtab[ScrlObj][0] & 0x0FFF) | (scan << 12);
     178        v_odtab[ScrlObj][0] = (v_odtab[ScrlObj][0] & 0x0FFF) | (uint16_t)(scan << 12);
    179179}
    180180
Note: See TracChangeset for help on using the changeset viewer.