x86-64 architecture Flashcards
how many GPRS
16
each gpr holds
64 bits
GPRS
rax, rbx, rcx, rdx, rsi, rdi, rbp, rsp, r8-r15
accessing portion of GPR
different lettering
- 64 bits –> rax
- lowest 32 bits –> eax
- lowest 16 bits –> ax
- lowest 8 bits –> al
what are rFLAGS used for
status and CPU control information; stores status info about instruction that was just executed; updated by CPU and not accessible thru programs
carry flag
an rFLAG; used to indicate if previous operation resulted in a carry
types of rFLAGS
carry, parity (even # of 1’s) , adjust (binary coded decimals), zero, sign (negative), direction (increment or decrement), overflow
all memory addresses hold
one byte (8 bits)
memory addresses
fixed length sequence of digits
memory location
binary or decimal number
little-endian
used for multibyte data types (int, float) last byte of binary representation is stored first
big-endian
used for multibyte data types (int, float) ; first byte of binary representation is stored first