how could i convert it to a string so that i can display it in small text anywhere. i looked through asm in 28 days but could not find an example of how it would be done.

Code:
;-----------------------------------------------------------
;   Filename:      DCSlibsP.inc
;   Long name:     Doors CS-specific libs for the TI-83+/84+
;   Author:         Kerm Martian aka Christopher Mitchell
;   Last Update:   May 30, 2006
;   Routines Included:
;      -VDispA
;      -ClrDialogFull
;      -ClrWinFull
;      -SmallWindow
;      -LargeWindow
;      -hdetect
;      -DAVLCheck
;      -PutsApp
;      -VputsApp
;      -ReadAppVarWord
;      -DrawCustomRectangle
;      -MultADE
;      -DivHDE
;      -VertLine
;
;Please consult license.txt for the fair use agreement
;implicitly binding by you continuing to read past this
;point.  Close and delete this file if you do not agree
;to the terms of the agreement.
;-----------------------------------------------------------

VDispA:
   bcall(_setxxop1)
   ld a,8
   bcall(_dispop1a)
   ret
VDispHL:
   bcall(_setxxxxop2)
   bcall(_op2toop1)
   ld a,8
   bcall(_dispop1a)
   ret
which one of those would i use.
VDispA is for displaying the contents of the accumulator (1 byte) while VDispHL is for displaying the contents of register HL.
so to display the stats in small text i could do:


Code:

ld hl,0*256+0
ld (pencol),hl
ld a,(atk)
ld l,a
ld h,0
call vdispa
Yes, but there's no reason for the ld l,a \ ld h,0 lines whatsoever...
alright thanks for those.
  
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
Page 2 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement