5.128 · exercise

Predict: command-line arguments

Work out what argc, the argv entries, strlen and atoi give for the command line each question names.

0 of 5 correct

Predict the result

main:
        mov     w19, w0
        mov     x20, x1

Predict the result

main:
        ldr     x0, [x1, 8]
        bl      strlen

Predict the result

main:
        ldr     x0, [x1, 8]
        bl      atoi

Predict the result

main:
        ldr     x20, [x1, 16]
        ldrb    w21, [x20, 1]

Predict the result

main:
        ldr     x22, [x1, w0, sxtw 3]