All pastes #167873 Raw Edit

mirak

public c v1 · immutable
·published 2006-09-12 13:30 UTC
rendered paste body
	"move.w (%%a0),%%d0             \n\t"		"move.b (%%a1),%%d2             \n\t"		"add.l  %%d2,%%d0               \n\t"		"cmp.l   #255,%%d0              \n\t"  /* overflow? */        "bls.b   1f          			\n\t"  /* no: return value */        "spl.b   %%d0					\n\t"  /* yes: set low byte to appropriate boundary */    	"1	:                    		\n\t"		"move.b %%d0,(%%a1)			    \n\t"