reggetf is a wrapper around regget that returns a lambda function for regget.
reggetf
regget
(define (reggetf reg) (lambda () (regget reg)))