Code:
;======================================
;| Reads the calibration data if exists,
;| else inits the buffer with std vals
;| output: d0.l = errorflag (0=ok)
;======================================
SSM_ReadCalibData:
movem.l d1/a0-a2,-(sp)
lea SSM_CalibData(pc),a2
tst.l (a2)
bne.b .hasCalib
tst.b SSM_SystemFriendly(pc)
bne.b .skipFileRead
lea SSM_CalibName(pc),a0
bsr SSM_ReadFile
tst.l d0
bne.b .skipFileRead
move.l a0,(a2)
bra.b .hasCalib
Straight from our replayer code.