flat assembler
Message board for the users of flat assembler.

Index > Main > bit of a noobish question but..

Author
Thread Post new topic Reply to topic
hckr83



Joined: 12 Nov 2006
Posts: 86
Location: usa
hckr83 28 Dec 2006, 01:07
well I'm having trouble making sure I understand this right

does int, in 32bit work like this:
int=
push ss
push esp
pushf
push cs
push eip

or is it reversed...can't figure it out right now..

_________________
x86 CPU Emulation library: http://sourceforge.net/projects/x86lib
Post 28 Dec 2006, 01:07
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 28 Dec 2006, 08:51
Have you studied Intel's Software Developer Manuals ?
They contain a lot more information than this !
Post 28 Dec 2006, 08:51
View user's profile Send private message Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 28 Dec 2006, 15:03
hckr83 wrote:
well I'm having trouble making sure I understand this right

does int, in 32bit work like this:
int=
push ss
push esp
pushf
push cs
push eip

or is it reversed...can't figure it out right now..

Usually, this depends on what int is "invoked", cause some push an additionally dword, some kind of status-code (don't know how Intel's manual calls these).

Also, they optionally do context-switching with task-gates/traps and so on. You got stuff like task state segments, where the state of the task can be saved during task switch and finally task state registers.

Maybe I'm partially wrong/incomplete, but it's been a while since I last needed that stuff.

_________________
MCD - the inevitable return of the Mad Computer Doggy

-||__/
.|+-~
.|| ||
Post 28 Dec 2006, 15:03
View user's profile Send private message Reply with quote
hckr83



Joined: 12 Nov 2006
Posts: 86
Location: usa
hckr83 28 Dec 2006, 18:25
since you didn't say I was wrong, guess I'm right..
task-gates and such I'm not worrying about yet(maybe even ever..) and the status code thing is pushed only on some things(GP and SF I think..)

also I'm doing software task-switching...think it's easier to do

Quote:

Have you studied Intel's Software Developer Manuals ?
They contain a lot more information than this !

yea I did but the only thing I could get was their pseudo-code and it's over 4 pages long and can't find the right thing in it..
Post 28 Dec 2006, 18:25
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger 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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.