D Paste by Robert Forrest
Description: Inline D Assembler label offset
Hide line numbers

Create new paste
Post a reply
View replies

Paste:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
import std.stdio;

void main()
{
   asm 
   {
      call L1;
      L1: pop EBP;
      sub EBP, offsetof L1; // Line 9
   }
}

/* Error:
Line 9: undefined identifier 'L1'
*/

Replies:
No replies posted yet