Re: ver 4.0 call_back question ?

new topic     » goto parent     » topic index » view thread      » older message » newer message
bernie said...
export function strlen(atom str) -- tested 
Asm("strlen_", 
"prolog4eu "& 
"cld "& 
"mov edi, [ebp+8] "& 
"xor eax, eax "& 
"or ecx, -1 "& 
"repne scasb "& 
"not ecx "& 
"dec ecx "& 
"mov eax, ecx "& 
"epilog4eu "& 
"ret 0 ",1,u) 
return f("strlen_",{str}) 
end function 

<snip>

Those that know assembler always amaze me. Hats off to you Bernie!

Jeremy

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu