X86机器指令

                                    内在的远转移

-------------------------------------------------------------------------------|

        指令                               |     实模式机器编码                 |

-------------------------------------------------------------------------------|

        INT 21H                         |    0xCD  0x21                        |

-------------------------------------------------------------------------------|

        IRET                              |    0xCF                                   |

-------------------------------------------------------------------------------|

                           JMP 指令的变体

---------------------------------------------------------------------------------------------------------------------------|

    JMP 类型    |                 实例                          |    实模式机器编码                                           |

---------------------------------------------------------------------------------------------------------------------------|          

    短               |    JMP SHORT mylabel             |    0xEB [signed byte]                                      |

---------------------------------------------------------------------------------------------------------------------------|

    近直接        |    JMP NEAR PTR mylabel       |    0xE9 [low byte][high byte]                           |

---------------------------------------------------------------------------------------------------------------------------|

    近间接        |    JMP BX                                  |    0xFF 0xE3                                                   |

---------------------------------------------------------------------------------------------------------------------------|

    远直接        |    JMP DS:[mylabel]                  |     0xEA [IP low][IP high][CS low][CS high]     |

---------------------------------------------------------------------------------------------------------------------------|

    远间接        |    JMP DWORD PTR [BX]        |    0xFF 0x2F                                                   |

---------------------------------------------------------------------------------------------------------------------------|

                          CALL 指令的变体

---------------------------------------------------------------------------------------------------------------------------|

    Call 类型    |        实    例                                |        实模式机器编码                                       |

---------------------------------------------------------------------------------------------------------------------------|

    近直接       |    CALL mylabel                         |    0xE8 [low byte][high byte]                            |

---------------------------------------------------------------------------------------------------------------------------|

    近间接       |    CALL BX                                |    0xFF 0xD3                                                    |

---------------------------------------------------------------------------------------------------------------------------|

    远直接       |    CALL DS:[mylabel]                |    0x9A [IP low][IP high][CS low][CS high]       |

---------------------------------------------------------------------------------------------------------------------------|

    远间接       |    CALL DWORD PTR [BX]      |    0xFF 0x1F                                                     |

---------------------------------------------------------------------------------------------------------------------------|

    近返回       |    RET                                       |    0xC3                                                             |

---------------------------------------------------------------------------------------------------------------------------|

    远返回       |    RETF                                     |    0xCB                                                             |

---------------------------------------------------------------------------------------------------------------------------|

你可能感兴趣的:(汇编)