Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
JMP (x86 instruction)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Far Jumps == === Real-Address or Virtual-8086 Mode === * The target address includes both: ** A '''segment selector''' (loaded into <code>CS</code>), and ** An '''offset''' (loaded into <code>EIP</code>). The target can be specified: # '''Directly''': Encoded as a pointer (<code>ptr16:16</code> or <code>ptr16:32</code>) in the instruction. # '''Indirectly''': Stored in memory (<code>m16:16</code> or <code>m16:32</code>) and fetched by the instruction. === Protected Mode === In protected mode, far jumps can be used for: # '''Switching Code Segments''' #* A jump to a '''conforming''' or '''non-conforming code segment'''. #* The <code>CS</code> register is updated with the target segment selector, and <code>EIP</code> is updated with the offset. # '''Using a Call Gate''' #* The target operand specifies a '''call gate descriptor''', which defines the segment and offset to jump to. #* This approach allows indirect jumps and is preferred for transitions between '''16-bit''' and '''32-bit''' segments. # '''Performing a Task Switch''' #* The target specifies a '''task gate''' or directly references a '''TSS'''. #* The task's segment selectors (code and stack) and the <code>EIP</code> are loaded from the TSS. ----
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)