[Info-vax] Python for x86?

Dave Froble davef at tsoft-inc.com
Tue May 9 23:33:15 EDT 2023


On 5/9/2023 8:20 PM, Arne Vajhøj wrote:
> On 5/9/2023 6:38 PM, Chris Townley wrote:
>> On 09/05/2023 23:32, Dave Froble wrote:
>>> On 5/9/2023 3:38 PM, Chris Townley wrote:
>>>> I then changed the integer bits to append the % to all integer constants, and
>>>> now get:
>
>>>> It shows how BASIC can be slowed down not doing that!
>>>
>>> I haven't been following this closely, but, First guess is that the variables
>>> were defaulted to floating point, and then perhaps an integer conversion
>>> happened?
>>>
>>> Can you post the code?
>>>
>>> Once past the compiler, the "%" and "$" signs don't matter, since the
>>> compiler would assign the variables, if not declared, and it would just be
>>> data and addresses/pointers afterwards.
>
>> Arne posted a link to the code before, but the relevant bits are:
>>
>> Arne's version:
>>
>> sub testfp(integer xscale)
>
> That was the FP sub.
>
>> My changes:
>>
>> sub testint(integer xscale)
>
> I think the only important change is from:
>
> sum = ((sum + 1) * 2 + 1) / 2
>
> to:
>
> sum = ((sum + 1%) * 2% + 1%) / 2%
>
> Arne
>
>
>

Yes, no conversions.

-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list