??? 01/14/08 21:35 Read: times |
#149449 - 'C' - not rocket science Responding to: ???'s previous message |
Adrian Hodgson said:
What I needed to grasp was how to pass variables from the main function to others! How parameters are passed to functions, and how return values are handled are entirely Implementation-Defined - so you would always have to look in the appropriate compiler Manual If sending a character to the LCD display, would I write my own function call such as printf in assembler It's unlikely that you'd want to write something as general-purpose and, therfore, massive as printf! But yes: in principle, you write yourself a function (or set of functions) to handle the LCD, and then just call them as & when needed. There would be no fundamental reason to need to do it in assembler - you could just as well do it in 'C'! with a reti at the end Extremely unlikely that it would have a RETI at the end! and always assume the main function always uses acc. Never assume - always check the Manual! |
Topic | Author | Date |
How common is 2 Byte ASCII HEX? | 01/01/70 00:00 | |
That is an odd way of looking at is | 01/01/70 00:00 | |
Must not post when tired | 01/01/70 00:00 | |
Correct! | 01/01/70 00:00 | |
Very common indeed! | 01/01/70 00:00 | |
hex_digit_to_ascii | 01/01/70 00:00 | |
optimisation | 01/01/70 00:00 | |
you could, but | 01/01/70 00:00 | |
Widespread | 01/01/70 00:00 | |
ERR Thanks | 01/01/70 00:00 | |
C suggestion | 01/01/70 00:00 | |
and 10 times tougher .. | 01/01/70 00:00 | |
beware | 01/01/70 00:00 | |
C? sorry long post! | 01/01/70 00:00 | |
'C' - not rocket science | 01/01/70 00:00 |