[Info-vax] Python for x86?
Chris Townley
news at cct-net.co.uk
Tue May 9 20:34:00 EDT 2023
On 10/05/2023 01:20, 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
>
Correct - sorry - my bad cut and paste
Still at least we got to the bottom of it. Using the % sign was part of
our standards using VAX/DEC/Compaq/HP Basic
--
Chris
More information about the Info-vax
mailing list