Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subroutine return address in gas ???

Status
Not open for further replies.

evges

Technical User
Sep 27, 2001
4
0
0
IE
Hi everybody

Please advise
I work in gas.
I have no ram.
I need to save space.
I want to call a subroutine.
I need to save returning address for the subroutine.

In Intel syntax I would do this:

mov $+5, bx
jmp _subroutine

What should I use to do the same for gas ??

Thanks for your help
 
If you goto and search for

"GAS assembly code"

there are plenty of hits relating to what I think you are looking for.

Thats what I did for the previous links.

if you know lots about asm and not much about gas then I would try to find a good converter, if that fails try to find a downloadable manual for gas.

Straiph.
0000:0000:0000:0000h
The people who have nothing to say and say it too loud have little knowledge, It's the quiet ones you need to worry about!
 
Thanks Straiph
I found it.
If anyone interested... should use '.' instead of '$' and make sure you are in 32-bit mode.

Have a fun and thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top