Changeset 081eee0 in buchla-68k for ram/puteq.c


Ignore:
Timestamp:
11/12/2017 09:23:46 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
cdb0f36
Parents:
522c363
Message:

Fixed puteq.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/puteq.c

    r522c363 r081eee0  
    6262        int16_t i;
    6363        volatile uint8_t *psg;
    64         int8_t eqdata;
     64        int16_t eqdata;
    6565
    6666        psg = &io_tone;
     
    8282
    8383                *(psg + PSG_ADDR) = PSG_PRTB;
    84                 *(psg + PSG_WRIT) = eqdata;
     84                *(psg + PSG_WRIT) = (uint8_t)eqdata;
    8585
    8686                eqdata |= EQ_CLK;               /* set clock high */
    8787
    8888                *(psg + PSG_ADDR) = PSG_PRTB;
    89                 *(psg + PSG_WRIT) = eqdata;
     89                *(psg + PSG_WRIT) = (uint8_t)eqdata;
    9090
    9191                byte >>= 1;                     /* shift next bit into LSB */
     
    9595
    9696        *(psg + PSG_ADDR) = PSG_PRTB;
    97         *(psg + PSG_WRIT) = eqdata;
     97        *(psg + PSG_WRIT) = (uint8_t)eqdata;
    9898
    9999        eqdata |= EQ_STB;                       /* set strobe high */
    100100
    101101        *(psg + PSG_ADDR) = PSG_PRTB;
    102         *(psg + PSG_WRIT) = eqdata;
     102        *(psg + PSG_WRIT) = (uint8_t)eqdata;
    103103}
    104104
Note: See TracChangeset for help on using the changeset viewer.