??? 11/16/06 21:18 Read: times |
#128125 - (SDC)C how to 2 |
I know this is general C question rather than SDCC...
In asm, for being able to parse a set of commands I'd write the following: Commands: db 'START',0 dw STARTExecute db 'STOP',0 dw STOPExecute db 'DUMP',0 dw DUMPExecute Then, when the receiver buffers a zero-terminated string, it can compare them in a loop with this list, and jump to the appropriate service routine. How to do something similar in (SDC)C? Thanks, Jan Waclawek (the C hater, but now tries to get something to work in C :-) ) |
Topic | Author | Date |
(SDC)C how to 2 | 01/01/70 00:00 | |
Something like this? | 01/01/70 00:00 | |
maybe this is it... | 01/01/70 00:00 | |
I would use switch | 01/01/70 00:00 | |
One advantage | 01/01/70 00:00 | |
Yeah you are right its not that bizzare![]() | 01/01/70 00:00 |