5.83 · exercise

Intermediate quiz: ARMv8 assembly

Argument registers, instruction aliases, the frame record, integer division, condition flags, and stepping in gdb.

0 of 8 correct

Multiple choice

What role do registers x0 through x7 play in an AArch64 procedure call?

Multiple choice

The instruction cmp x20, x21 is an alias. Which instruction does the assembler actually encode?

Multiple choice

At the top of a routine, what does stp x29, x30, [sp, -16]! accomplish?

Multiple choice

What happens to the remainder when sdiv divides one register by another?

Multiple choice

In gdb, what is the difference between si and ni?

Multiple choice

Which condition flag records that the result of an operation is negative?

Multiple choice

In the GNU assembler, which prefix marks an immediate written in binary?

Multiple choice

What does it mean that x19 through x28 are callee-saved?