In the attachment are some screen shots, source code and the ASM files.
In the source file. If you remove the 'dim aa as word' you get the errant code. Please ignore the strange coding (in the braces) - I am trying to track this error.
The error is occurring at line 787 when the byte variable BRXX is not set correctly. This the variable that holds the BottomRightXposition of the box being drawn. The byte sits at memory location 33 (0x021) but the memory location 161 (0x0A1) is updated during the error condition.
Definitely some strange things happening there Anobium! I'm trying to compile the source code, but what I'm getting out of the compiler doesn't quite match the uploaded assembly. Have you got a newer version of glcd.h there?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Pretty sure I've got the latest from trunk, but I think there are some changes in variable names ("ii" to "xColCount" in ST7920lineh, for example) in what you have locally.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hugh,
I have a page select error. It took a while to figure out. :-(
Attached are two asm files - no works, the other does. The only way I can get stability is by declaring a new word variable.
Have a look please but this may be a source of a number of the issues with GLCD.
Last edit: Anobium 2014-04-21
Hugh, more information.
In the attachment are some screen shots, source code and the ASM files.
In the source file. If you remove the 'dim aa as word' you get the errant code. Please ignore the strange coding (in the braces) - I am trying to track this error.
The error is occurring at line 787 when the byte variable BRXX is not set correctly. This the variable that holds the BottomRightXposition of the box being drawn. The byte sits at memory location 33 (0x021) but the memory location 161 (0x0A1) is updated during the error condition.
Please, please have a look and fix.
:-)
Last edit: Anobium 2014-04-22
Definitely some strange things happening there Anobium! I'm trying to compile the source code, but what I'm getting out of the compiler doesn't quite match the uploaded assembly. Have you got a newer version of glcd.h there?
Can you download latest from ..trunk. ?
Evan/Anobium
Pretty sure I've got the latest from trunk, but I think there are some changes in variable names ("ii" to "xColCount" in ST7920lineh, for example) in what you have locally.
I will SVN again in a moment. But, you are correct I did charge that variable name.
:-)