News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

exporting asm labels

Started by nemesis9, July 31, 2007, 01:40:56 AM

Previous topic - Next topic

nemesis9

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









nemesis9

Sorry,

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