I've want to test this program viewtopic.php?f=7&t=3545
with -lang fb, -gen gcc (or gas)
And i've this error :
i've already coded with inline asm.. hmm it's strange i'm lost lol.
he can't take account my [a] and variable what ?
Code: Select all
private function fbmld_search _
( _
byval root as fbmld_t ptr ptr, _
byval pt as any ptr _
) as fbmld_t ptr ptr
dim as fbmld_t ptr ptr node = root
dim as any ptr a = pt, b = any
asm
mov eax, dword ptr [a] <--- HERE
bswap eax
mov dword ptr [a], eax <--- HERE
end asm
while *node <> NULL
b = (*node)->pt
asm
mov eax, dword ptr [b] <--- HERE
bswap eax
mov dword ptr [b], eax <--- HERE
end asm
if a < b then
node = @(*node)->left
elseif a > b then
node = @(*node)->right
else
exit while
end if
wend
function = node
end function
Thank you!