Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: Problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 8 Topic 4583 of 4729
Post > Topic >>

Re: Problem with fasm

by Frank Kotler <spamtrap@[EMAIL PROTECTED] > Mar 24, 2008 at 11:41 AM

suchi_01 wrote:
> Hi Frank,
>             I am sorry i was not clear about the environment. The code
> (assembly language function) is called during boot time by a
> bootsector code (after enabling protected mode). I am successful in
> calling the function but it does not return back to the C code back
> (ie., next line after the call in C Code). At boot time there is no
> elf loader and it is difficult to point it to where it has to return.
> Mysteriously, using global in nasm does the stuff!

Very mysterious. I'm still not sure where the C code begins and ends, 
but in any case, the call puts a return address on the stack. If it 
finds your assembly function, the "ret" ought to return to the same 
place, whether it was generated by Nasm or Fasm. Possible issue with 
"bitness"?

If all else fails, converting Fasm source to Nasm shouldn't be too 
difficult... but you really shouldn't have to!

Best,
Frank
 




 8 Posts in Topic:
Problem with fasm
suchi_01 <spamtrap@[E  2008-03-22 01:18:36 
Re: Problem with fasm
Frank Kotler <spamtra  2008-03-22 10:24:31 
Re: Problem with fasm
suchi_01 <spamtrap@[E  2008-03-23 22:00:36 
Re: Problem with fasm
Frank Kotler <spamtra  2008-03-24 07:10:39 
Re: Problem with fasm
suchi_01 <spamtrap@[E  2008-03-23 22:52:50 
Re: Problem with fasm
Frank Kotler <spamtra  2008-03-24 11:41:15 
Re: Problem with fasm
suchi_01 <spamtrap@[E  2008-03-24 04:19:06 
Re: Problem with fasm
suchi_01 <spamtrap@[E  2008-03-24 00:54:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 15:17:52 CDT 2008.