FYI: following report sent to Kyle (attachment removed)


Hi Kyle,

After Joep has refactured the lcd_hd44780 libraries in Jallib I have
been building some new sample programs.  The lcd library has a pseudo
variable 'lcd' and I wanted to send a string (character array) to the
display, using this pseudo variable. I use a construct like this:

> const byte LCD_CHARS   =  16
> var byte line[LCD_CHARS] = "0123456789ABCDEF"
> for LCD_CHARS using i loop
>    lcd = line[i]
> end loop

Unfortunately the lcd displays 16 times '0': apparently the index is
not taken into account.  After some trials I found out it is the 'pragma
inline' in the pseudo variable lcd'put (in lcd_hd44780_common.jal) which
makes the difference. With the pragma the program 'forgets' the
indexing, after removing the pragma the program works fine.

I have attached a ZIP-file with a program (and its dependencies) which
show the problem. I have also added the two asm files so that you can
quickly see the differences.

Regards, Rob.



-- 
Rob Hamerling, Vianen, NL (http://www.robh.nl/)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to