- AppVar help on the TI84+C
- 16 Jun 2013 10:45:16 pm
I wrote a program/hack in Processing to save an images compressed data in text for asm. I also created a dll for asmstudio8x to create an appvar. I created a viewer assembly program and it will display an image unless the appvar spans across pages. If the appvar is stored on one page it will display an image without problems. However, if it's drawing an image and it needs to change pages, the data is not on the next page. Here's some code without using compression. I think the problem is at IncMemPort. It would help if I could find the FlashToRam routine in the ROM to verify.
ld a,$22 ;set GRAM register
bcall(_ChkFindSym) ;b=$0e (rom) de=$6ef6
ld de,20 ;will point it to the data
inc b ;next page
ld h,a ;if hl happened to point past $7fff
call SetMemPage ;sets the rom page to $0e initially
call IncMemPort ;draws image until it has to change
ld hl,$4000 ;pages. just starts displaying garbage.
jp z, Low
.db $15,"TESTAPPV", $00 ;appvar that stores image data