Does sw and lw in MIPS store a value below or above the stack pointer?
问题 My professor gave a video that looks like this: In the lower right, he wrote $ra at location 124 while the $sp is at 128 which implies that the first sw $ra, 4($sp) instruction stores the $ra value at a location 4 bytes less than the $sp . But my book does it differently: and The image implies that the lw instruction stores it at locations larger, more positive numbers than the $sp . So which is right? Does lw and sw offset numbers refer to numbers higher or lower than the $sp ? 回答1: You are