This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Your Projects subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Project Releases => Your Projects
Author Message
magicdanw
pcGuru()


Calc Guru


Joined: 14 Feb 2007
Posts: 1110

Posted: 11 Oct 2007 09:53:35 pm    Post subject:

You only seem to inc de once in rclShad, instead of twice.

To get the size of Ans, instead of skipping the two bytes at the beginning with inc de \ inc de, read those bytes. They're the size bytes of Ans.
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 11 Oct 2007 09:57:03 pm    Post subject:

So, to check if it's bigger than 5, I would do something like this, right?
Code:
ex de,hl
ld a,(hl)
cp 5
jr nc,chkRet
...
chkRet:
ret z
ret
Oh, and check the updated code, I added another inc de and it worked fine.

EDIT: BUG! It messes up Y equations, so don't hit [Y=] without archiving your stuff.


Last edited by Guest on 11 Oct 2007 10:13:03 pm; edited 1 time in total
Back to top
magicdanw
pcGuru()


Calc Guru


Joined: 14 Feb 2007
Posts: 1110

Posted: 11 Oct 2007 10:21:19 pm    Post subject:


Code:
ex de, hl
ld a, (hl)
cp 6
ret nc
inc hl
xor a
cp (hl)
ret nz
I think this should do it. How are you messing up the Y variables?
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 11 Oct 2007 10:27:36 pm    Post subject:

I replaced the initial b_call(_chkFindSym( with rst 10h, that seems to have fixed it. I also shaved off a few more bytes with Iambian's help.

Updated source:

Code:
;HomeScreenPictures
nolist
#include    "ti83plus.inc"
.list
.org    $9D93
.db    t2ByteTok, tAsmCmp

   b_call(_RclAns)         ;gets Ans
   rst 10h               ;b_call(_FindSym)
   ld a,(hl)            ;sees if Ans is a string or not, returns if not
   and %00011111
   cp StrngObj
   ret nz
   inc de
   inc de
   ex de,hl
   ld de,listData
   ld bc,5
   ldir               ;copies string in Ans to listdata
   b_call(_ThetaName)      ;theta holds function number
   b_call(_RclVarSym)      ;   0  = Recall
   b_call(_convOP1)      ;   !0 = Store
   or a
   jr nz,stoShad
rclShad:
   call getOP1
   inc de
   inc de
   ex de,hl
   ld de,savesscreen
   ld bc,128
   ldir
   ex de,hl
   ld (hl),b
   b_call(_homeup)
   res AppAutoScroll, (IY +  AppFlags)
   ld hl,savesscreen
   b_call(_puts)
   set AppAutoScroll, (IY +  AppFlags)
   b_call(_homeup)
   ret
stoShad:
   call getOP1
   jr c,createList
   b_call(_delVarArc)
createList:
   ld hl,listName         ;loads the name into OP1
   b_call(_Mov9toOP1)
   ld hl,14            ;creates a 13-element list, which is 128 bytes + [length of name]
   b_call(_createRList)
   inc de
   inc de
   ld hl,textShadow
   ld bc,128
   ldir
   ret
getOP1:                  ;loads the name into OP1
   ld hl,listname         ;and calls FindSym
   b_call(_Mov9toOP1)
   b_call(_FindSym)
   ret
listName:   .db ListObj,tVarLst
listData:   .db 0,0,0,0,0,0
.end
.end
I attached the most recent, non-who-reads-readmes version.

(@DarkerLine: Could you update it? Thanks)


Last edited by Guest on 11 Oct 2007 11:34:21 pm; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2
» View previous topic :: View next topic  
Page 2 of 2 » All times are UTC - 5 Hours

 

Advertisement