Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/15/05 01:27
Read: times


 
#103732 - code changed so push/pops in same sub
Responding to: ???'s previous message
Updated code : http://rafb.net/paste/results/rNH8qW54.html

I removed the subs and merged some of them; I also used
the third register bank to define variables, 6 bytes of
which are defined to store the received SPI information,
which is later printed to the LCD. (Haven't converted the
data types yet, but thats okay. I get consistent chars
with one card, then switching cards I get consistent other
chars. Ill fix this later.) This should leave the 2nd and
3rd register bank free for the stack, so I should have 16
bytes available, which for 6 bytes pushed onto the stack
and the LCALLs, should just be enough.

I also cleared up the registers so R0-R4 are not even used.
Since the stack problem was taken care of within one sub, the
code now continues as it should have.

I will work on reading information from the card tonight.
I want to thank you all for your help, especially those of you
(Craig) who have the patience to teach someone what you already know. Thank you all.

List of 11 messages in thread
TopicAuthorDate
Stack pointer causing code to loop?            01/01/70 00:00      
   Try using a simulator            01/01/70 00:00      
      declaring variables            01/01/70 00:00      
         careful            01/01/70 00:00      
   push and pull            01/01/70 00:00      
      Correct            01/01/70 00:00      
         ah.. so if I change...            01/01/70 00:00      
            Uh, no            01/01/70 00:00      
               in same sub            01/01/70 00:00      
                  Try a Ring Buffer            01/01/70 00:00      
   code changed so push/pops in same sub            01/01/70 00:00      

Back to Subject List