#: 16358 S12/OS9/68000 (OSK)
31-Aug-92 23:40:58
Sb: #Combining C and asm
Fm: Bob van der Poel 76510,2203
To: all
Is there any way to share C-language #defines with assembler routines? What I
want to do is something like this... First off, in a C file I define something:
#define FOO 12345
Now, in a #asm section I want to use the contant FOO like this:
#asm
asmfunc:
move.l #FOO,d0
....
#endasm
Of course, what happens now is that cpp stops working when it hits #asm
sections and FOO is assembled as an external reference which never gets
resolved. Anyone with some brilliant thoughts?
There are 2 Replies.
|