Re: [hatari-devel] FPU update |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
>> I have already volunteered to do that. (68030 + 68882) I only need
>> (tiny) test source code.
>
> I'm not able to write an assembly program, but i can provide some pseudo code:
>
> 1. set FPCR to 80-bit rounding precision
> 0x0000 --> FPCR
>
> 2. load register with denormal number:
> 0x00000000 0x10000000 0x00000000 --> FPx
>
> 3. load another register with integer 2
> 2 --> FPy
>
> 4. do following loop:
> for (int i = 0; i < 6; i++)
> {
> FPx = FMUL(FPx, FPy);
> print content of FPx in hexadecimal format
> }
>
I got these results:
00000000 20000000 00000000
00000000 40000000 00000000
00000000 80000000 00000000
00010000 80000000 00000000
00020000 80000000 00000000
00030000 80000000 00000000