Implement push and pop for general registers