首页 文章
  • 12 votes
     answers
     views

    汇编程序使用GDT跳转到保护模式

    我目前正在玩x86 Assember,以提高我的低级编程技能 . 目前,我在32位保护模式下的寻址方案面临一些问题 . 情况如下: 我有一个程序加载在0x7e0,它将CPU切换到保护模式并跳转到代码中的相应标签: [...] code to switch CPU in Protected Mode [...] jmp ProtectedMode [...] bits 32 Protect...
  • 15 votes
     answers
     views

    如何在x86中编码相对较短的jmp

    假设我想使用以下操作码进行短跳转: EB CB或JMP rel8“跳转短路,RIP = RIP 8位位移符号扩展到64位”(其中CB是一个字节有符号值,表示与EIP寄存器中的方向相关的相对偏移) 也许总是偏移量将偏移2,因为此短跳转中的执行时间(参考方向)中的EIP是twobyte指令的基础,但是加数occurs always eb 30 = jmp 0x00000032(30)eb e2 ...
  • 0 votes
     answers
     views

    我对比较和跳跃装配很困惑

    我想输入 11,00,01,10 in ebx and eax register. Everytime i input 01 or 10 i need to jump at l1. And if i input 11 or 00 i want to quit from the procedure. 我怎样才能做到这一点 . 我尝试过,但只有前两个cmp正在工作休息不起作用 . cmp ebx...

热门问题