source: trunk/enter.asm@ 20

Last change on this file since 20 was 2, checked in by Mattia Monga, 14 years ago

Importazione sorgenti

File size: 293 bytes
Line 
1section .text
2global enter_section
3
4enter_section:
5 enter 0, 0 ; 0 bytes of local stack space
6 mov ebx,[ebp+8] ; first parameter to function
7
8spin: lock bts dword [ebx], 0
9 jc spin
10
11 leave ; mov esp,ebp / pop ebp
12 ret
13
Note: See TracBrowser for help on using the repository browser.