??? 03/30/05 07:09 Read: times |
#90658 - Don't bother with 'C' Responding to: ???'s previous message |
Vikrant Bhange said:
I will try to write it in assembly code but I will have to study the instractions. Of course you will! Even if you did manage to write it in 'C', this kind of stuff always requires a thorough understanding of the underlying architecture! ... can i do it in the following way in C:
Call the RAM functions with absolute address by using function pointers? Function pointers on an 8051 bring a whole raft of problems of their own! As Michael says, you could faff around for ages trying to get this to work in 'C', and still end up with a kludge that could break on the whim of the compiler - or you could could just do it straight in assembly. If this does not work I will go with assembly Just go straight for assembly - don't waste your time. 'C' is good for many (most?) things, but this is not one of them! See: http://www.8052.com/forum/read.phtml?id=90416 |
Topic | Author | Date |
Boot loader with single flash | 01/01/70 00:00 | |
this is a '51 forum not M16C | 01/01/70 00:00 | |
How I address this problem... | 01/01/70 00:00 | |
My Question is generic not for M16C | 01/01/70 00:00 | |
I said what you have to do.... | 01/01/70 00:00 | |
will try in Assembly but..... | 01/01/70 00:00 | |
Don't bother with 'C' | 01/01/70 00:00 | |
one caveat![]() | 01/01/70 00:00 |