|
%eax | %ecx | %edx | %ebx | %esi | %edx
|
Temporary data, General purpose registers
|
|
%esp | %ebp
|
Current: stack top | stack frame
|
|
%eip
|
Instruction pointer
|
|
CF | ZF | SF | OF
|
Carry flag | Zero flag | Sign flag | Overflow flag
|
|
sal | sar
|
arithmetic shift left | right
|
|
shl | shr
|
logical shift left | right
|
|
jz | jnz
|
jump if == 0,"zero" | != 0,"not zero"
|
|
je | jne | jg | jge | jl | jle
|
jump if == | != | > | >= | < | <=
|
|
js
|
jump and store
|
|
jmp | jmp *reg
|
unconditional relative jump| absolute jump, reg is a registry.
|
|
ja | jb (unsigned)
|
jump above | below
|
|
cmp b, a
|
a - b
|
|
test b, a
|
a & b
|
|
zf "zero flag"
|
set when a&b== 0
|
|
sf "signed flag"
|
set when a&b < 0
|
|
lea a, b
|
load effective address a into b
|
|
mov a, b
|
move contents of a into b
|
|
cmov (z,nz,e,ne,g,ge,l,le,ng,nge,nl,nle,a,b, ...)
|
compare and move if condition is met.
|
|
movl %edx, %eax
|
eax = edx, eax bendir á edx
|
|
movl (%edx), %eax
|
eax = *edx, eax verður bendir á innihald edx
|
|
movl %edx, (%eax)
|
*eax = edx, eax bendir á bendinn að innihaldi edx
|
|
movl (%edx), (%eax)
|
eax = edx, yfirskrifar innihald eax með innihaldi edx.
|
|
address(mn[i][j]) = 0+i*N+4j
|
|
address(nm[i][j]) = 0+i*M+4j
|
|
1: CPU initiates disk read, writes cmd, lbn and desk to a DC port(address)
|
|
2: DC reads sector and performs a DMA transfer into main memory
|
|
3: DC notifies CPU with interrupt signal when DMA transfer completes
|
|
N=2n
|
Number of addresses in virtual address space
|
|
M=2m
|
Number of addresses in physical address space
|
|
P=2p
|
Page size(bytes)
|
|
PPO
|
Physical page offset(same as VPO)
|
|
PPN
|
Physical page number.
|
|
CO
|
Byte offset within cache line
|
|
CI
|
Cache index
|
|
CT
|
Cache tag
|
|
TLBI
|
TLB index
|
|
TLBT
|
TLB tag
|
|
VPO
|
Virtual page offset
|
|
VPN
|
Virtual page number
|
|
TLB
|
holds recently used PTE's, located on the cpu chip.
|
|
PTE
|
Page table entry, physical address of data in cache/memory
|
|
ID
|
Name
|
Default Action
|
Event
|
|
2
|
SIGINT
|
Terminate
|
Interupt,ctrl-c
|
|
9
|
SIGKILL
|
Terminate
|
Kill (unavoidable)
|
|
11
|
SIGSEGV
|
Terminate&Dump
|
Segfault
|
|
14
|
SIGALRM
|
Terminate
|
Timer signal
|
|
15
|
SIGTERM
|
Terminate
|
Kill nicely(catchable)
|
|
17
|
SIGCHLD
|
Ignore
|
Child stoppd or killd
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.