flat assembler
Message board for the users of flat assembler.

Index > Main > iret

Author
Thread Post new topic Reply to topic
Ralph



Joined: 04 Oct 2003
Posts: 86
Ralph 04 Nov 2003, 06:30
This might be a dumb question, but could anyone explain to me what the difference between IRET and RET is? I know what they do, but why does IRET differ? What other information is placed on the stack when you INT and why? Is it mostly pmode information like access level and stuff? It's 12 bytes if I remember correctly, so what's in those other 8 bytes?
Post 04 Nov 2003, 06:30
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 04 Nov 2003, 06:44
Interrupts ( hardware one and INT instruction too ) store in stack, besides return address, the flags register. So, the IRET restores flags too. This is not related to protected mode only. It is common behaviour.

Regards.
Post 04 Nov 2003, 06:44
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica 04 Nov 2003, 06:47
I recomend that your read these pages in the intel manuals: (2nd Volume: instruction set ref.)
int: page 371 (3-330)
iret: page 386 (3-345)
and for comparision: ret: page 719 (3-678)

(it's by far too much to cut and pate (I've tried...))

_________________
... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself.
- Bradley Kuhn
Post 04 Nov 2003, 06:47
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.