Skip to content

Instantly share code, notes, and snippets.

@akyoto
Last active October 16, 2019 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akyoto/493a2af4013bd25f430ad8d5ae7da769 to your computer and use it in GitHub Desktop.
Save akyoto/493a2af4013bd25f430ad8d5ae7da769 to your computer and use it in GitHub Desktop.
cpu-registers.txt
Register sizes
--------------
================ rax (64 bits)
======== eax (32 bits)
==== ax (16 bits)
== ah (8 bits)
== al (8 bits)
Register purpose
----------------
AX multiply/divide, string load & store
CX count for string operations & shifts
DX port address for IN and OUT
BX index register for MOVE
SP points to top of stack
BP points to base of stack frame
SI points to a source in stream operations
DI points to a destination in stream operations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment