CSES - x86-64 Assembly

Source

Basic instructions

More

Examples

; Destination, then source
mov rax, 7 ; rax := 7

; Destination and two operands
add rax, rdx, 4

; Comparison
cmp rax, rdx
je .target ; rax == rdx
jne .target ; rax != rdx
jl .target ; rax < rdx
jle .target ; rax <= rdx
jg .target ; rax > rdx
jge .target ; rax >= rdx

.target: ...