なんとなくAMD64とx86アーキテクチャのドキュメントを眺めてみたくなった。
https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/programmer-references/24592.pdf
このあたりから読めばいいみたい
x86はMicrosoftのページがヒットした。
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/x86-architecture