GLCD module inline assembler explanation wanted

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
atlantis
Posts: 1
Joined: Mon Mar 01, 2010 9:40 am

GLCD module inline assembler explanation wanted

Post by atlantis » Mon Mar 01, 2010 10:01 am

I had a long hard look at the GLCD module and got stuck in the Graphics.bas file where there is inline assembler for the font table lookups. Being no assembler programmer I am having some difficulties understanding what's going on.

I see that the sequence

Code: Select all

ASM-
      TBLRD *+ 
      movff TABLAT, Result
End ASM
does read from the font table and moves the read byte into the result register. But can somebody tell me in what register the address of the (currently used) font table is stored and where and how this is set in the module code?

Regards
Martin

Post Reply