Changeset 522c363 in buchla-68k for ram


Ignore:
Timestamp:
11/12/2017 09:19:56 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
081eee0
Parents:
57425b6
Message:

Fixed sendval.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/sendval.c

    r57425b6 r522c363  
    3535        case 4:         /* location */
    3636
    37                 val = (ival << 1) ^ 0x8000;
     37                val = (ival << 1) ^ (int16_t)0x8000;
    3838                break;
    3939
     
    6464/* ++++++++++++++++++++++++++++ FPU interrupts disabled +++++++++++++++++++++ */
    6565
    66         *(fpu + (int32_t)FPU_TNV0) = val;
     66        *(fpu + (int32_t)FPU_TNV0) = (uint16_t)val;
    6767        ++nop;  ++nop;  ++nop;
    68         *(fpu + (int32_t)FPU_TNV1) = val;
     68        *(fpu + (int32_t)FPU_TNV1) = (uint16_t)val;
    6969        ++nop;  ++nop;  ++nop;
    7070        *(fpu + (int32_t)FPU_TCTL) = 0x0015;
     
    9191        if (stat) {
    9292
    93                 fp_resv[0]  = 0x8300;                   /* amplitude (off) */
     93                fp_resv[0]  = -32000;                   /* amplitude (off) */
    9494                fp_resv[1]  = (ps_intn * 10) << 5;      /* intensity */
    9595                fp_resv[2]  = (ps_rate * 10) << 5;      /* sweep rate */
Note: See TracChangeset for help on using the changeset viewer.