![]() |
|
|
|
#1
|
||||
|
||||
|
Code:
int main(){
int size;
__asm{
mov eax, offset mylabel
sub eax, offset main
mov size, eax
}
printf("0x%.08X\n", size);
__asm{
mylabel:
}
return 0;
}
__________________
http://accessroot.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calculating relative jnz opcode sizes in a custom code generator | redbull | General Discussion | 3 | 09-15-2005 23:54 |
| Writing 4 bytes to COM Port | AgentSmith | General Discussion | 3 | 04-08-2005 01:25 |
| Damaged stolen bytes | *RemedY* | General Discussion | 9 | 05-22-2004 16:58 |
| 22 stolen bytes? | SvensK | General Discussion | 2 | 11-06-2003 17:13 |