Section Exercises
True or False
Multiple Choice
We have some values in rax
and rbx
. How do you check if their difference (rbx - rax
) is smaller than the value 9 in AT&T Assembly?
subq %rax, %rbx
cmpq %rbx, $9
jl somelabel
subq %rax, %rbx
cmpq $9, %rbx
jl somelabel
subq %rbx, %rax
cmpq %rbx, $9
jl somelabel
subq %rbx, %rax
cmpq $9, %rbx
jl somelabel
What postfix is used for instructions using registers such as ax
, di
, bp
?
Last updated