Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Video Overview

  • What is the program counter?
    • Holds memory address of the next instruction which is going to be executed
      • %rip - register instruction pointer
      • <+7> explained
    • RIP-Relative Addressing
      • Data (e.g. global variables) is often accessed relative to where the RIP is currently pointing
    • disassemble --pc --count 10

Titles

  • How does your CPU know what line of C++ to execute next?
  • Understanding The Program Counter (Instruction Pointer) | C++ Tutorial
  • This Register Controls Everything Your C++ Code Does
  • How the RIP Register Works in C++ and x64 Assembly

References

  • ChatGPT and Gemini