Complete the code to identify the register used for the first argument in AAPCS.
The first argument to a subroutine is passed in register [1] according to AAPCS.
In the ARM Architecture Procedure Call Standard (AAPCS), the first argument is passed in register r0.
Complete the code to specify how many registers are used for passing arguments in AAPCS.
AAPCS uses up to [1] registers to pass arguments before using the stack.
AAPCS specifies that up to 4 registers (r0 to r3) are used to pass arguments. Additional arguments are passed on the stack.
Fix the error in the statement about callee-saved registers in AAPCS.
Registers [1] to r7 are callee-saved according to AAPCS.In AAPCS, registers r4 to r7 are callee-saved, meaning the called function must preserve their values.
Fill both blanks to complete the rule about the stack pointer and link register in AAPCS.
The [1] register holds the return address, and the [2] register points to the top of the stack.
The lr (link register) holds the return address, and the sp (stack pointer) points to the top of the stack in AAPCS.
Fill all three blanks to complete the dictionary comprehension that maps argument registers to their usage in AAPCS.
arg_registers = [1]: 'first', [2]: 'second', [3]: 'third'}
According to AAPCS, r0 is the first argument register, r1 the second, and r2 the third.