This page looks best with JavaScript enabled

assambly

 ·  ☕ 1 min read

注意要點

這種關於rip基底做偏移要注意%rip要帶入下一行指令的位置
0x1–mov 0x2ee6(%rip),%rdx 這裡%rip指向0x1 但執行mov 0x2ee6(%rip),%rdx的時候%rip要指向下一行指令所以帶入0x2,所以mov 0x2ee6(%rip)=mov 0x2ee6+0x2
0x2–mov 1,%rax

rip already points past the lea so the address of the next instruction should be used

Share on

呂奕珣
WRITTEN BY
呂奕珣
SDN ML FINTECH HFT