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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/09/01 23:44
Read: times


 
#14839 - RE: Coments field ( ;) - Kathy
Kathy wrote:
Comments are not like this...:
mov a,#10h ;moves 10 hex to a 
But ... like this:
mov a,#10h ;loads accumulator with value 10 hex 

But Kathy, the 2nd example is just a more long-winded way of writing exactly the same as the first; it simply describes the action of the MOV instruction - which can be found from the databook.
As you say, the comment should describe why the instruction is there, not just what it does; eg, what is the significance of the "magic number" #10h?

List of 21 messages in thread
TopicAuthorDate
Coments field ( ;)            01/01/70 00:00      
RE: Coments field ( ;)            01/01/70 00:00      
RE: Coments field ( ;)            01/01/70 00:00      
RE: Coments field ( ;)            01/01/70 00:00      
RE: Coments field ( ;)            01/01/70 00:00      
RE: Coments field ( ;)            01/01/70 00:00      
RE: Coments field ( ;), Kathy            01/01/70 00:00      
RE: Coments field ( ;) - Kathy            01/01/70 00:00      
RE: Coments field ( ;)            01/01/70 00:00      
No Never Comment !!            01/01/70 00:00      
RE: Coments field ( ;) - Kathy            01/01/70 00:00      
RE: Still Off_Base - Kathy            01/01/70 00:00      
RE: Coments field ( ;) - Kathy            01/01/70 00:00      
RE: Coments field ( ;) - Bordyn            01/01/70 00:00      
RE: Coments field ( ;)            01/01/70 00:00      
RE: Coments field ( ;),Alfredo            01/01/70 00:00      
RE: Coments field ( ;),Gil            01/01/70 00:00      
RE: Coments field ( ;),Bordyn            01/01/70 00:00      
RE: Coments field ( ;),Bordyn            01/01/70 00:00      
RE: Coments field ( ;),Andy            01/01/70 00:00      
RE: Coments field ( ;),Andy            01/01/70 00:00      

Back to Subject List