The easiest way to do this is to compile up your C function
without the #asm and look at the assembly code that is generated. The
-S option is used for this.
Keep in mind that variables fall into two classes: function local
and global. In the code you submitted, the variables are all local.
B
> Please excuse the slight off topic question. I am trying to
> use bcc for a
> couple of small routines. There needs to be some assembly in
> it, and I
> need to pass arguments back and forth. I tried the following:
>
> #define BDOOR_MAGIC 0x564D5868
> #define BDOOR_CMD_GETVERSION
On Tue, 23 Mar 1999, Stacy D. Coil wrote:
>uint32 v;
>uint32 m;
> #asm
> mov v, eax
> mov m, ebx
> #endasm
>
> But this returns and no symbol for v and m. Could someone be kind enough
> to show me how to pass varibles from c to assembly and back?
You can't just say "m
Please excuse the slight off topic question. I am trying to use bcc for a
couple of small routines. There needs to be some assembly in it, and I
need to pass arguments back and forth. I tried the following:
#define BDOOR_MAGIC 0x564D5868
#define BDOOR_CMD_GETVERSION 10
#define BDOOR