Isn't the whole point to just observe that the environment part of the continuation is the top of the stack. Thus, you don't really do CPS transformations (where the environment is closed over), but just manipulate the global top-of-stack, with continuations accessing variables via that register.