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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/03/05 17:34
Read: times


 
#89019 - Jan is right: 7
Responding to: ???'s previous message
Jan Waclawek said:
Pray, try (on as many derivatives as you can; including simulators) and tell us!


Just tried it. On three derivatives: Atmel AT89S8252, Dallas DS89C420, and a true-blue Intel 80C31.

In all cases the answer is 07h.

It would seem that when the "Bible" refers to SP first being incremented, all it really means is that if SP=7, the value pushed into IRAM 08h. But three different derivatives produce 07h so it would appear the value to be pushed is read before the stack pointer is updated.

Out of curiosity, Jan, was this a trick question? Or are you really interested in pushing SP onto the stack?

Regards,
Craig Steiner


List of 31 messages in thread
TopicAuthorDate
PUSH SP            01/01/70 00:00      
   8            01/01/70 00:00      
      8???????????????????????????????????            01/01/70 00:00      
         On jokes, reasons &al.            01/01/70 00:00      
            no, you don't            01/01/70 00:00      
   I do not know and do not think I should            01/01/70 00:00      
      Non-compliance?            01/01/70 00:00      
   Theory vs. practice            01/01/70 00:00      
      Jan is right: 7            01/01/70 00:00      
         I did not say 7!            01/01/70 00:00      
            Interesting            01/01/70 00:00      
               POP SP? :-)            01/01/70 00:00      
                  POP SP            01/01/70 00:00      
                     MOV SP,#SP            01/01/70 00:00      
                        exceptions and rules            01/01/70 00:00      
                           MOV A,ACC            01/01/70 00:00      
                              xxx a,acc            01/01/70 00:00      
                              if the "Bible says"...            01/01/70 00:00      
                     more interesting            01/01/70 00:00      
               Hmmm.... interesting indeed!            01/01/70 00:00      
         native doing            01/01/70 00:00      
         Makes sense to me            01/01/70 00:00      
            POP SP            01/01/70 00:00      
               Output of SP            01/01/70 00:00      
                  Simulators            01/01/70 00:00      
                     simulators give me 7 7            01/01/70 00:00      
                        7 7            01/01/70 00:00      
                        spent for which purpose            01/01/70 00:00      
                           Fun...            01/01/70 00:00      
                              Atmel and Philips            01/01/70 00:00      
                        SiLabs F120            01/01/70 00:00      

Back to Subject List