Positron Corrections and Additions Update 4.0.6.7-1.1.3.7

Started by top204, Today at 07:30 PM

Previous topic - Next topic

top204

Below is a link for a "free" Positron8 and Positron16 compilers update that corrects some anomalies that have crept into them, and adds new features and devices to them. Many thanks to the compilers users for spotting anomalies, and many thanks to Dyanko for his dedication with the Positron compilers, and his meticulous findings when an anomaly is spotted.

Download Positron Corrections and Additions Update 4.0.6.7-1.1.3.7

Run the downloaded update executable, and it will update the Positron Compilers with the corrections and additions listed below.

Note
If a preserved copy of the existing compilers are required, before the update. Make a copy of the existing "ProtonIDE" folder within the "C:\Program Files (x86)\" folder.
   
No money is being charged for this update, but a donation to Paypal would be most welcome, and allow me to continue improving the compilers. The Paypal name is: "storypainter@hotmail.com". Thank you.

Addition and Corrections made in version 4.0.6.7 of Positron8 and version 1.1.3.7 of Positron16

Positron16 Addition
Added the use of Constant values as the first parameter in the GetBit function.

Positron8 Corrections
Corrected a Right Shift of a Dword variable with some constant values as the shift amount.

Corrected the Incfsz mnemonic. In some situations, the assembler code generator did not add a space between the mnemonic and the first parameter.

Corrected assigning a set of Floating Point constant values to a Float array, within the code listing itself. i.e. MyFloat = 1.0, 2.0, 3.0, 4.0.

Corrected the comparison: Signed Dword 'Less Than' 65535, with 18F devices. It was missing an assembler code label.

Corrected a Right Shift of a Dword variable with a Constant value between 9 to 15, when the assignment is a Word variable, and the Dword variable holds a value greater than 65535.

Corrected some Right Shifts when the Assignment and the Operand are in different RAM banks, and the shift amount is a Constant value.

Corrected accessing an element index from a String, operating as a parameter. i.e. ParamString[1] etc...

Corrected aliasing a Dword variable as a procedure parameter, and accessing its separate parts. .i.e pParam.Word1.

Corrected placing a Negated Constant value into a Float array. i.e. MyFloatArray[1] = -3.14.

Corrected some Dword ORing with a Constant value, when the assignment and the operand are different variables. i.e. Dwordout = Dwordin | 1.

Positron16 Corrections
Corrected placing a Negated Constant value into a Float array. i.e. MyFloatArray[1] = -3.14. It was ignoring a negative value.

Corrected assigning a Dword array into a Float variable. i.e. MyDword = MyFloatArray[2]. It was ignoring a negative value.

Corrected comparison: Float is 'Greater Than' 0.

Corrected some Signed Dword minus Constant values. i.e. Dwordout = Dwordin - 12345678.

Corrected an Abs function used in a comparison, with a value or variable larger than 16-bit. i.e. If Abs(-12345678) > 0 Then.

Corrected a Dword Left Shift with a shift value of 24, and the Assignment and Operand variable being the same. i.e. Dwordout = Dwordout << 24.

Corrected a comparison if both sides contain the same procedure call. i.e. If MyProc(1) = MyProc(2) Then.

Corrected some Byte to Constant 'Not Equal' comparisons, if used in a boolean comparison with 'Or' or 'And'. i.e. If ByteIn1 <> 20 Or ByteIn2 <> 30 Then.

An array loading into a signed variable is now the same as standard variables, so, if an array is not signed but the assignment variable is, it will be transferred as unsigned. However, if the array is signed and the assignment is signed or unsigned, it will be transferred with a sign extension.

Note. It is always better to not mix signed and unsigned variable types in an expression or assignment etc, and future compiler builds will have warning messages when they are mixed.

Corrected reversing a Dword into a Dword, with a Byte as the bit count. i.e. Dwordout = Dwordout @ bCount.

Corrected 32-bit Modulus results greater than 16-bits.

Corrected PtrX and cPtrX functions when the assignment is an array, and the address is auto incremented or decremented.

Note.
This corrections update will not add the new devices to compilers before the 4.0.4.x "upgrades". It will give an error message if a new device is tried on an earlier Positron8 compiler version.
The addition and correction updates, and all future "upgrades", are for the Positron compilers only. The, now redundant, Proton compilers will not function if the updates are installed over them. To upgrade to the Positron compilers, please message me here on the forum, and I will give the details for the Payment of only £39.99 to Paypal.

▲