??? 03/03/06 06:00 Read: times |
#111141 - well ... I've looked at it ... Responding to: ???'s previous message |
I looked it over, and found myself asking, "Why would one do that?" ... and similar questions.
They say there are many ways to "skin a cat." I keep wondering why one would want that software-FIFO. There's probably good reason, but I've not found it. Also, if I were presenting something to a group of neophytes, I'd certainly make it clear which assembler syntax was in use and what intrinsics there were. Not everybody knows what you assume they know, particularly when you assume certain, perhaps well-known, constants/parameters are known. As for me, when you refer to any object, it had better be defined within that code body, else I'll confuse it with something with a similar name on some other MCU. Another thing ... if you have routines that would be called putc or getc or the like in 'C', why not use those names in assembler? They're meaningful and easy to recall and that will help anybody to understand your code. Long labels in assembler don't make for very pretty code, either, BTW. I try to keep my label names under 6 characters. That way they're easy to type and don't require a separate line or extra tabs, neither of which makes the code more readable. It makes the symbol cross-reference easier to use, too. Creative use of upper and lower case is helpful, too. I know, I know ... those Pepsi-swilling tennis-shoe-wearing software geeks are too weak or lazy to use the shift-key any more than absolutely necessary. It's good excercise, though, and perhaps all the exercise they get. RE |
Topic | Author | Date |
interrupt driven serial: RFC | 01/01/70 00:00 | |
It must be perfect! | 01/01/70 00:00 | |
I don't believe | 01/01/70 00:00 | |
Validation | 01/01/70 00:00 | |
well ... I've looked at it ... | 01/01/70 00:00 | |
request for comment on comment | 01/01/70 00:00 | |
let's take this a little at a time ... | 01/01/70 00:00 | |
OK then give yours | 01/01/70 00:00 | |
Intel Original | 01/01/70 00:00 | |
on byte buffer | 01/01/70 00:00 | |
c version | 01/01/70 00:00 | |
Coloring | 01/01/70 00:00 | |
html syntax colouring | 01/01/70 00:00 | |
to C or not to C | 01/01/70 00:00 | |
yeah but thats the point | 01/01/70 00:00 | |
How true for "real C" | 01/01/70 00:00 | |
excellent idea![]() | 01/01/70 00:00 | |
asm, in the same style | 01/01/70 00:00 | |
This may not work well ... | 01/01/70 00:00 | |
How? | 01/01/70 00:00 |