Consider stack starting at address 0x5000 0000. The stack size is 0x1000.
If I add 0x1000 to current stack pointer(Register A10) and store result in A10, then I should get underflow error.
What might be the code in assembly to change stack pointer? something like following:
stw a10, 0x1000(a10) # I'm not sure if stw is correct opcode ?
what are other options to create stack undeflow exception?