[Info-vax] Python for x86?

Arne Vajhøj arne at vajhoej.dk
Tue May 9 20:20:56 EDT 2023


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






More information about the Info-vax mailing list