i have this code
.elseif ax==IDM_CLOSE
invoke CloseHandle,hProject
mov ecx,noMdiChild
or ecx,ecx
jz no_close
loop_3:
push ecx
invoke SendMessage,hMdi,WM_MDIGETACTIVE,0,0
invoke SendMessage,hMdi,WM_MDIDESTROY,eax,0
pop ecx
loop loop_1
no_close:
gives jumo destination too far: by 214 bytes
Can someone explain this?
loop_1: is too far.
yeah...sorry my bad. the error was pointing to next line.
Sorry, where is loop_1??
Guys,
Its worth the effort to ditch very old instructions like LOOP and construct your loop code with CMP/Jxx code. its much faster and has no range limitations. Old code like LOOP are junk dumped into microcode in the CPU and are there purely for backwards compatibility. Any modern code (after 1995) is done better with the lower level CMP/Jxx style of code.