I'm trying to store values 6 and 7 on stack, This is my code:
randomNum: .string "%d "
add sp, sp, -8
mov x27, #6
str x27, [x29, -4]
mov x27, #7
str x27, [x29, -8]
ldr x0, =randomNum
ldr x1, [x29, -4]
bl printf
ldr x0, =randomNum
ldr x1, [x29, -8]
bl printf
add sp, sp, 8
The output is always
0 7
So 6 seems aren't stored on the stack. How does the str instruction works? Should I use strh instead of str?