I`m interested in converting large chunks of assembler code in my C. I
am converting my project from Assembly and have found that however
efficient the C Compiler is at making small/fast code, I still have a
few key routines (such as LCD display) that I'd like to use assembler.
In Borland C++ compiler, you could do something like this:
asm {
pop ax; pop ds
iret
}
And the compiler would just add the asm to the output to the assembler.
I see that gnu has a contruct for assembler instructions, but it is a
real pain (not to mention confusing at least on first glance). Is there
a better way of adding large chunks of asm? I thought of making an
extern reference, which might work, but then I'm making my link more
complicated (not out of the question tho).
Thanks
-Mark