You are not logged in.

#1 2013-01-02 01:40:36

Registered: 2012-04-08
Posts: 25

How to get and use segment address in linux?

I am a beginner about assembler in linux,
I use as and ld tools to compile coders,
but I don't find use segment address in codes,
for example DS and SS.
I want to know  how to get and use segment address
in linux


#2 2013-01-02 22:46:17

Registered: 2010-12-01
Posts: 389

Re: How to get and use segment address in linux?

Aren't DS and SS flags used for 16 bits assambly only?

On 32bits you don't use them as segment  registers, and on 64bits you don't use them at all.

They are not necessary to access memory areas, thanks to the flat model.

Read more

"open source is about choice"
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.


Board footer

Powered by FluxBB