v4.10 small things

Beta Testing discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

v4.10 small things

#1 Post by janni » 29 Sep 2010 13:18

Some leftovers from Basic got into mP v4.10:

- new functions in Conversions lib have names like LongWordToHex,
- Parameter Assistant also uses 'longword' instead of 'dword' in parameter lists.

Description of Glcd_PartialImage procedure claims that
Bitmap array can be located in both code and RAM memory (due to the mikroPascal PRO for PIC pointer to const and pointer to RAM equivalency).
What kind of equivalency is that, if the pointers differ in size? (Naturally, Glcd_PartialImage does not work with RAM arrays.)
The same claims appear in T6963c libs.

An obvious mistake in size of output string in IntToHex description in Help:
procedure IntToHex(input : integer; var output : array[64] of char);

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: v4.10 small things

#2 Post by slavisa.zlatanovic » 01 Oct 2010 15:01

Hi!
- new functions in Conversions lib have names like LongWordToHex...
We used the same names in all 3 compilers (C, Pascal & Basic). It was a developers decision.
- Parameter Assistant also uses 'longword' instead of 'dword' in parameter lists.
I have managed to reproduce it and I will inform our software developers about it.
Thanks for reporting!
Bitmap array can be located in both code and RAM memory (due to the mikroPascal PRO for PIC pointer to const and pointer to RAM equivalency).
Yes, this is a bug in the Help file. I will report it.
!!! Note that this statement is true for the Enhanced PIC16 family:

From Help file:
PIC16 Enhanced Family Specifics
PIC16 Enhanced family has 16-bit FSRs, FSRxL and FSRxH, capable of accessing entire RAM and Flash memory.
This makes pointers to constants and pointers to variables compatible.
procedure IntToHex(input : integer; var output : array[64] of char);
Yes, this is a bug in the Help file. I will report it.
Best regards
Slavisa

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: v4.10 small things

#3 Post by janni » 01 Oct 2010 17:04

Hi Slavisa,
slavisa.zlatanovic wrote:
- new functions in Conversions lib have names like LongWordToHex...
We used the same names in all 3 compilers (C, Pascal & Basic). It was a developers decision.
Understandable, though it dos not make the routines any more Pascal-like :( . Maybe it would not take much work and maintenance effort to have two identical routines with different names (like LongWordToHex and dWordToHex)?
Bitmap array can be located in both code and RAM memory (due to the mikroPascal PRO for PIC pointer to const and pointer to RAM equivalency).
Yes, this is a bug in the Help file. I will report it.
!!! Note that this statement is true for the Enhanced PIC16 family...
Unfortunately, in the Enhanced PIC16 family the question of memory choice is moot, as there is not enough RAM to spare for keeping 1024 bytes of 128x64 bitmap.

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: v4.10 small things

#4 Post by slavisa.zlatanovic » 06 Oct 2010 08:49

Hi!
Understandable, though it dos not make the routines any more Pascal-like :( . Maybe it would not take much work and maintenance effort to have two identical routines with different names (like LongWordToHex and dWordToHex)?
I'll pass your suggestion to our developers.
Thanks for your suggestions.
Unfortunately, in the Enhanced PIC16 family the question of memory choice is moot, as there is not enough RAM to spare for keeping 1024 bytes of 128x64 bitmap.
I agree with you on this matter.
Best regards
Slavisa

Post Reply

Return to “mikroPascal PRO for PIC Beta Testing”