??? 12/10/09 09:06 Read: times |
#171540 - Comments are mainly for YOU Responding to: ???'s previous message |
Your principal concern is clarity for yourself. As a side-effect, it helps your readers too.
I am familiar with assembly language in general but not necessarily 8051 dialect. Most mnemonics are self-explanatory. Some instructions may affect flags in a special way, and it is often helpful to remind yourself. The actual special function registers of a controller are similar. A reminder of the effect of the bit settings is always useful. Any of your textbooks will advise on how to comment your programs. You have to make a compromise between clutter and conciseness. This is a personal decision for you. A sentence or two in regular English explaining what you want to do is always worthwhile. Most ASM instructions will soon be familiar to you. David. |
Topic | Author | Date |
Problem using Timer2 in 89S52! | 01/01/70 00:00 | |
not a very useful suggestion from 'Plz' | 01/01/70 00:00 | |
further suggestion | 01/01/70 00:00 | |
Message & Readable code is here... | 01/01/70 00:00 | |
look in the assembler manual | 01/01/70 00:00 | |
New Code, hope it helps! | 01/01/70 00:00 | |
what You are trying to make ? | 01/01/70 00:00 | |
mov T2MOD,#4 | 01/01/70 00:00 | |
sorry | 01/01/70 00:00 | |
t2mod=0 ; t2con=4 (tr2=1) It worked!![]() | 01/01/70 00:00 | |
PSW | 01/01/70 00:00 | |
that is not a comment! | 01/01/70 00:00 | |
Comments OR Explaination!!! | 01/01/70 00:00 | |
Comments are mainly for YOU | 01/01/70 00:00 | |
WRONG! | 01/01/70 00:00 | |
Answer the "why" in your comments. | 01/01/70 00:00 | |
I got (I)T2 working !!! | 01/01/70 00:00 | |
Clear TF2 in your service routine | 01/01/70 00:00 | |
Clearing TF2 in ISR | 01/01/70 00:00 |