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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/31/02 18:07
Read: times


 
#26568 - RE: what's wrong with this code
I am not familiar with the free compiler you are using, but I see some potential problems nonetheless.

    mov _tempa,200

Moves the value at direct address 200 (SFR space) into _tempa. Is this what you intended, or did you want _tempa to contain the value 200? If it's the latter case, your assembly line should be:

    mov _tempa,#200

The same thing goes for:

    mov _tempa,0

This will move the value at direct address 0 (R0 in register bank 0) into _tempa. It's quite likely that the compiler uses R0 for its internal operations.


List of 4 messages in thread
TopicAuthorDate
what's wrong with this code            01/01/70 00:00      
RE: what's wrong with this code            01/01/70 00:00      
RE: thanks henry            01/01/70 00:00      
RE: what's wrong with this code            01/01/70 00:00      

Back to Subject List