flat assembler
Message board for the users of flat assembler.

Index > Main > Stack Segment Descriptor: help to count LIMIT field...

Author
Thread Post new topic Reply to topic
WallTearer



Joined: 23 Dec 2007
Posts: 2
WallTearer 23 Dec 2007, 19:51
Hey, I'm from Kiev(Ukraine), and I got some problems with counting Limit_1 and Limit_2 fields in Stack Segment Descriptor. You now, Segment Descriptors are used in Protected Mode.
Size of stack segment is 5MB.
Field Limit is easier to count in Data Segment Descriptor and Code Segment Descriptor...

I'he been searching a lot on the Internet, by didn't find the solution.
I'll appreciative any help =)
Post 23 Dec 2007, 19:51
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 23 Dec 2007, 20:15
[intel doc?]
expand down segment
used for stack???
expand up segment
used for the rest???
the type_segment bit is used to say the segment type
[/intel doc?]
Post 23 Dec 2007, 20:15
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 23 Dec 2007, 20:40
errm... LSL instruction?

Quote:
Field Limit is easier to count in Data Segment Descriptor and Code Segment Descriptor...

how do you count it in these?
Post 23 Dec 2007, 20:40
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
WallTearer



Joined: 23 Dec 2007
Posts: 2
WallTearer 23 Dec 2007, 20:52
vid wrote:
errm... LSL instruction?

Don't know what is it Embarassed

vid wrote:
how do you count it in these?

There're some rules... But with my knowledge of english I can't translate them, 'cause I got 'em in russian))
These rules are really strange for Stack Segment ((
Post 23 Dec 2007, 20:52
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 23 Dec 2007, 22:04
Quote:
Don't know what is it

Well, grab Intel / AMD manual and study it. It does just what you need.
Post 23 Dec 2007, 22:04
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20303
Location: In your JS exploiting you and your system
revolution 24 Dec 2007, 00:05
Post 24 Dec 2007, 00:05
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 24 Dec 2007, 00:07
hehe
Post 24 Dec 2007, 00:07
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.