Embedded Systems
margulis.lst
Associated article: Programming Risc Engines
Tags: Embedded Systems
_PROGRAMMING RISC ENGINES_
by Neal Margulis
Example 1: This conversioî routine converts days and hours into
total hours
/* convert days ¦ hours into hours */
/* C code */
int convert(days, hours)
register unsigned int days, hours;
{
unsigned int total;
total = days * 24 + hours;
return (...


