I am trying to make a program that starts at 0 and counts to 100. Can anyone tell me incorrect syntax (Please don't give the answer or optimazations yet)


Code:
#include "ti83plus.inc"
.org $9D95
.db $BB,$6D

Start:
    LD A, 0
    bcall _ClrScrnFull
Loop:
    LD H, 0
    LD L, (Memory)
    bcall _DispHL
    LD A, L
    INC A
    LD (Memory), A
    LD A, L
    CP 100
    JR Z, End
    JR Loop
End:
    ret
Memory:
    .DB 0
You can only indirectly load the "Memory" byte into 'A', 'L' will not work.
I already finished this about a week or two ago, http://www.cemetech.net/forum/viewtopic.php?t=4179 Thanks though Razz
I was just reading that, a you reply quick! Its good to post a reply though for the next person reading it.
  
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 1 of 1
» 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