There's something fundamental that I don't understand about
Binary Floating Point. I wrote a simple program:

TEST  START
        USING TEST,R12
        STM     R14,R12,12(R13)
        LR    R15,R12
        LHI   R1,X'FC0'
      LD    1,A
      TCDB  1,0(1)
      SLR   15,15
      BR    14
A     DC    XL8'4008000000000000' (3 in BFP)
      END

The code tests that 'A' is a BFP number (not infinite, not
"not a number" etc.).

Running this on CMS I get a data exception. Running the equivalent
bit of code on Linux (using _asm_ (...)), it works without a problem.

Are there some setup things I need to do in order to use BFP? The
FPC register is all zeroes.

Neale

Reply via email to