savepc (Save Program Counter) is an xkas directive that saves the program counter to a file.
savepc filename.xpc [, index]
The default index is zero. The address is saved at file offset index*4.