logo       

Access Violation while using loop within a macro.: msg#00045

lang.nasm.devel

Subject: Access Violation while using loop within a macro.

CmdLine=nasm -fobj test.asm

[TEST.ASM]
%imacro mpush 1-*
%rep %0
push %1
%rotate 1
%endrep
%endmacro

section .text use32 class=code

..start:
mpush 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
add esp, 16*4
ret 16

[DrWatson32 LOG]
App: (pid=1004)
When: 30/12/2004 @ 20:35:50.349
Exception number: c0000005 (access violation)
Number of Processors: 1
Processor Type: x86 Family 5 Model 8 Stepping 12
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 4
Current Type: Uniprocessor Free

State Dump for Thread Id 0x554

eax=0080bf60 ebx=ffffffc0 ecx=0080b6a4 edx=00000010 esi=0080b70c
edi=00000001
eip=0041e599 esp=0012fed8 ebp=0012ff14 iopl=0 nv up ei ng nz na po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000
efl=00010286

0041e57e 3b45e4 cmp eax,[ebp+0xe4]
ss:00c49dfa=????????
0041e581 7f04 jg _GetExceptDLLinfo+0x2082e (00421887)
0041e583 33ff xor edi,edi
0041e585 eb05 jmp _GetExceptDLLinfo+0x29433 (0042a48c)
0041e587 bf01000000 mov edi,0x1
0041e58c 8b45f0 mov eax,[ebp+0xf0]
ss:00c49dfa=????????
0041e58f 8b55e4 mov edx,[ebp+0xe4]
ss:00c49dfa=????????
0041e592 8b1c90 mov ebx,[eax+edx*4]
ds:00000010=????????
0041e595 85db test ebx,ebx
0041e597 7408 jz _GetExceptDLLinfo+0x25848 (004268a1)
0041e599 837b0c01 [FAULT] cmp dword ptr [ebx+0xc],0x1
ds:00b19ea6=????????
0041e59d 7502 jnz _GetExceptDLLinfo+0x26048 (004270a1)
0041e59f 8b1b mov ebx,[ebx]
ds:ffffffc0=????????
0041e5a1 85db test ebx,ebx
0041e5a3 7437 jz _GetExceptDLLinfo+0x25883 (004268dc)
0041e5a5 837b0c08 cmp dword ptr [ebx+0xc],0x8
ds:00b19ea6=????????
0041e5a9 7531 jnz _GetExceptDLLinfo+0x26083 (004270dc)
0041e5ab 8b4304 mov eax,[ebx+0x4]
ds:00b19ea6=????????
0041e5ae bad06e4400 mov edx,0x446ed0
0041e5b3 8a08 mov cl,[eax]
ds:0080bf60=50
0041e5b5 3a0a cmp cl,[edx]
ds:00000010=??
0041e5b7 7523 jnz _GetExceptDLLinfo+0x25983 (004269dc)



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise