Changeset 018d7ba in buchla-68k for ram


Ignore:
Timestamp:
11/12/2017 05:45:59 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
19caa64
Parents:
66072f0
Message:

Fixed wheel.c.

Location:
ram
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ram/wheel.c

    r66072f0 r018d7ba  
    115115*/
    116116
    117 void MouseRT(uint16_t t)
    118 {
    119         uint16_t oldi;
     117void MouseRT(int16_t t)
     118{
     119        int16_t oldi;
    120120
    121121        oldi = setipl(TIM_DI);          /* disable interrupts */
     
    294294void MouseEX(int8_t *str)
    295295{
    296         uint16_t oldi, msc, mst;
     296        int16_t oldi, msc, mst;
    297297
    298298#if     DEBUGMS
     
    351351
    352352        if (msxmov & 0x0080)
    353                 msxmov |= 0xFF80;
     353                msxmov |= (int16_t)0xFF80;
    354354
    355355        msxmov += msxres;
     
    358358
    359359        if (msymov & 0x0080)
    360                 msymov |= 0xFF80;
     360                msymov |= (int16_t)0xFF80;
    361361
    362362        msymov += msyres;
     
    429429        if ((M_state GE 0) AND (M_state < 3)) {
    430430
    431                 M_strng[M_state] = c;
     431                M_strng[M_state] = (int8_t)c;
    432432
    433433                if (M_state EQ 2) {
     
    901901void curproc(void)
    902902{
    903         register int16_t cxprev, cyprev;
     903        int16_t cxprev, cyprev;
    904904        int16_t oldcx, oldcy;
    905         register uint16_t oldi;
     905        int16_t oldi;
    906906
    907907        /* SET CURRENT WAIT COUNTS FROM TIMERS */
  • ram/wheel.x

    r66072f0 r018d7ba  
    4949extern  void            MouseIN(int16_t c);
    5050extern  int16_t         MouseRD(int8_t *str, int16_t nc, int16_t nt);
    51 extern  void            MouseRT(uint16_t t);
     51extern  void            MouseRT(int16_t t);
    5252extern  int16_t         MouseWK(void);
    5353extern  void            MouseWR(int8_t *str);
Note: See TracChangeset for help on using the changeset viewer.