Changeset aa021e2 in buchla-68k


Ignore:
Timestamp:
07/14/2017 09:22:01 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
7bb1284
Parents:
7ecfb7b
Message:

Don't shift negative constants.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/fpu.h

    r7ecfb7b raa021e2  
    2929
    3030#define VALMAX          (1000 << 5)
    31 #define VALMIN          (-1000 << 5)
     31#define VALMIN          (-VALMAX)
    3232
    3333/* FPU data types */
  • ram/midas.c

    r7ecfb7b raa021e2  
    147147        BIOS(B_SETV, 26, fpuint);       /* set level 2 int. vector for FPU */
    148148
    149         initcfg    = 0;                 /* set initial configuration  (in MS bits) */
    150         fp_resv[0] = (-1000) << 5;      /* initial output amplitude = 0.0 */
     149        initcfg    = 0;         /* set initial configuration  (in MS bits) */
     150        fp_resv[0] = VALMIN;    /* initial output amplitude = 0.0 */
    151151
    152152        fpuclr();               /* quiet the FPU */
Note: See TracChangeset for help on using the changeset viewer.