The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: nemesis9 on July 31, 2007, 01:40:56 AM

Title: exporting asm labels
Post by: nemesis9 on July 31, 2007, 01:40:56 AM
How can I export asm labels to my C code. For instance,  my asm file has:

label1:
<asm code>
label2:

In my C code I want to get pointers to these labels so the code fragment can be copied.

For instance, in the C code:

BYTE* codeStart = label1 ;
BYTE* codeEnd = label2 ;
size = label2 - label1;

copyCode (codeStart, destination, size);

Thanks








Title: Re: exporting asm labels
Post by: nemesis9 on July 31, 2007, 04:05:07 PM
Sorry,

Should have put this question in the newbie category.  The answer is to simply use the public keyword.