On Thursday 28 August 2008 12:52:37 Richard Erlacher wrote: > see below, please. > > regards, > > Richard Erlacher <snip> > Not quite ... that is, not from the extremely basic level. For example ... > Assume that I have code that runs in another environment and now I want to > compile it into an executable for my MCU. I'm staring at a Windows Desktop > ... now what? The <3.13.1 A Step by Step Introduction> refers to inline > assembly language code. Maybe a few words about where to start would be a > good thing.
There is a PDF manual included in the distribution, and an HTML one too in the linux/unix distribution at least, but I wouldn't describe it as "step by step", and is at best a nudge in the right direction. If you want a PDF version I'll happily mail it to you if that would help? The manual does describe how to create inline assembler, interrupt routines (including NMI's), and other little gems. Much more can be learned from examining the supplied .h files (and example files, in some cases) for the target architecture you're using. I've only recently started using the Z80 (Z180 variant) target, and much of what I've learned is from experimentation. I have found that except for the most trivial programs, you will need to break your work down into separate assembler sources and then assemble and link everything at the end. The load map file is absolutely invaluable and I would always urge anyone to examine it thoroughly, and even an examination of the emitted hex file wouldn't hurt either. As for C, Kernighan and Ritchie's ANSI C is probably regarded as the defininitive reference. http://en.wikipedia.org/wiki/The_C_Programming_Language_(book) -- Richard. PGP Key-id: 0x5AB3D350 In 1914, the first crossword puzzle was printed in a newspaper. The creator received $4000 down ... and $3000 across. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user