2023-05-31 12:35 AM - edited 2023-11-20 04:19 AM
2023-05-31 06:03 AM
the stack goes down, not up?
2023-05-31 05:46 AM
> inside for loop when i > 4
which loop? which i?
What type has stack_pointer? You cast it to uint8_t in the second loop, but not in the first?
ST uses the gcc idiom
register char * stack_ptr asm("sp");
to get the stack pointer
.
hth
KnarfB
2023-05-31 05:47 AM
I made edit
2023-05-31 05:50 AM
what type? What + 4 does depends on the type (size).
2023-05-31 06:02 AM
unit32_t, I guess I'm increament the pointer in wrong direction
2023-05-31 06:03 AM
the stack goes down, not up?
2023-05-31 06:07 AM
So, I have to decreament the pointer, not increamenting it