Thread: WHDLoad problem
View Single Post
Old 02 March 2018, 22:02   #37
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,092
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.
StingRay is offline  
 
Page generated in 0.05063 seconds with 11 queries