Henoktes722 wrote
I'm trying to do the hack assembly part of the return command. But before I did on the computer, I wrote in a paper, It has many assembly instruction. So is that expected or Am I missing a concept. Here is the assembly.
I don't have time to look at it in detail, but I suspect that you are implementing asm code to do each step as a separate entity (for instance, performing each pop operation separately).
Instead, make a map of your machine state before the return command starts and what you need to make it look like by the end of return command. Now just figure out assembly code to do what needs to be done.