RESTORE works a bit differently. You CAN reference global labels from inside a function; this example lets you read the 5 just fine.