How many bytes does the stack space of SPMC65 family MCU take up? How can a stack generate?
SPMC65 family MCU takes up 32 bytes at locations $01E0 ~ $01FF, and the direction of the pointer movement is from high address to low, i.e., the initial state stack pointer (SP) points to $01FF; after a data is pushed onto the stack, SP will automatically subtract 1; before a data is popped from the stack, SP will first automatically add 1. Once the pointer is out of $01E0, CPU will execute the Illegal Address Reset (IAR).