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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/15/10 11:04
Read: times


 
#175052 - Preserving registers
Responding to: ???'s previous message
Chris Papadopoulos said:
If I give a price [value?] to R0 before
i call scan2 routine, and inc R0 after i call the scan2 what will be the result

That will depend entirely upon whether or not the scan2 routine modifies R0!

This is why it is Good Practice to always document which registers a routine modifies - and any other "side effects"...

List of 4 messages in thread
TopicAuthorDate
Errors with indirect registers            01/01/70 00:00      
   MOV @R7,96h            01/01/70 00:00      
   using R0 in an other routine            01/01/70 00:00      
      Preserving registers            01/01/70 00:00      

Back to Subject List