Menu

PageSelect error

Anobium
2014-04-21
2014-04-22
  • Anobium

    Anobium - 2014-04-21

    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
  • Anobium

    Anobium - 2014-04-22

    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
  • Hugh Considine

    Hugh Considine - 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?

     
  • Anobium

    Anobium - 2014-04-22

    Can you download latest from ..trunk. ?

    Evan/Anobium

     
  • Hugh Considine

    Hugh Considine - 2014-04-22

    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.

     
  • Anobium

    Anobium - 2014-04-22

    I will SVN again in a moment. But, you are correct I did charge that variable name.
    :-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.