Although the usage of assembly language for any processor delivers most compact and effi cient codes, in
some cases, high-level languages, such as C, are used for code development. In such cases, a porting issue
would be coming to convert the high-level source code into the target processor’s code. In this appendix,
we take several problems and solve them using C. Note that these C codes are not going to change much
if the microcontroller (8051) is changed. In most cases, the included fi lename is to be changed to generate
the code of the target processor and some registers’ names are to be modifi ed. It is needless to mention that
these codes would need more memory area of the processor and may not be optimum in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.