Re: Hardcoded insert string for the event messages
- From: "Rick C. Hodgin" <foxmuldrster@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 3 Feb 2011 18:04:11 -0800 (PST)
On Wednesday, February 2, 2011 7:05:46 PM UTC-6, Andy wrote:
My goal is to produce an assembly program from the ENTIRE C code that
will work the same as the C style version.
So if replacing things is what is needed, then that would be fine.
Andy,
You'll basically need to learn how things are done in assembly. If you can understand that, you'll learn very quickly how the compiler converts the more-easily-human-readable C code into machine code. Sometimes the compiler makes things quite a bit more difficult to read than hand-coded assembly, but the functionality is typically the same.
Start out with small programs:
#include <stdio>
int main()
{
printf("Hello world.\n");
return(0);
}
And go up from there. You'll learn about the stack, how parameter variables are passed between functions, return values are obtained, etc.
- Rick C. Hodgin
.
- Follow-Ups:
- Prev by Date: Re: Hardcoded insert string for the event messages
- Next by Date: Re: Best assembler/workflow for this 16-bit project?
- Previous by thread: Re: Hardcoded insert string for the event messages
- Next by thread: Re: Hardcoded insert string for the event messages
- Index(es):
Relevant Pages
|