Hugh McMaster : reg: Split 'add' functions from reg.c.