Modify to use pop instruction when take value from SP