From: kate@pfu.fujitsu.co.JP (Yoshio Katayama)
Newsgroups: fj.lang.c
Subject: Re: overflow action ??
Date: 11 Sep 92 11:49:35 GMT
Distribution: fj
Organization: PFU Limited, Tokyo Japan.
In-reply-to: shinya@sw6.isl.mei.co.JP's message of 11 Sep 92 02:31:46 GMT

$@JR;3(J$@!w#P#F#U$G$9!#(J

In article <SHINYA.92Sep11113146@chorus.sw6.isl.mei.co.JP>,
	shinya@sw6.isl.mei.co.JP (MIYAJI Shin'ya) writes:

>$@Nc$($P!"#S#P#A#R#C$NMM$J%l%8%9%?D9#3#2%S%C%H$N%^%7%s$K$*$$$F!"(J
>$@%-%c%i%/%?(J$@7?$d!"%7%g!<%H7?$N$h$&$J%l%8%9%?D9$h$jC;$$%G!<%?7?$N7W;;$r9T$J$&;~!"(J
>$@%3%s%Q%$%i$O!"1i;;$r9T$J$&Kh$K!J(J$@0?$O!"$=$NCM$,;2>H$5$l$k;~$K!K$=$NCM$r!"$=$N%G(J
>$@!<%?7?$N=j$G!"#03HD%!JId9f$J$77?!K0?$OId9f3HD%!JId9f$"(J$@$j7?!K$r9T$J$C$F$$$k$h$&(J
>$@$G$9!#(J

$@!!DL>o$N1i;;$G$O!"(Jint $@7?$^$?$O(J unsigned $@7?$G1i;;$9$k$h$&$KJ8K!$K(J
$@5,(J$@Dj$5$l$F$$$^$9!#$b$A$m$s!"$3$l$i$N7?$G1i;;$7$?$N$HF1$87k2L$,F@(J
$@$i$l$k$J$i!"$=$N8B$j$G$O$"$j$^$;$s!#(J

$@!!$7$+$7!"(JRISC $@$N$h$&$K(J 32 $@%S%C%H1i;;L?Na$7$+;}$?$:!"$^$?%m!<%I(J
$@L?Na$G<+F0E*$K#03HD%!?Id9g3HD%$r9T$J$&(J CPU $@$G$O!">o$K(J 32 $@%S%C%H(J
$@$K3HD%$7$F$7$^$&$h$&$K%3%s%Q%$%i$r@_7W$9$k>l9g$,KX$s$I$@$H;W$$$^(J
$@$9!#3HD%L?(J$@Na$r>JN,$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?$@!K(J
$@$O!"$"$^$j(J$@5$9g$$$rF~$l$F:GE,2=$7$F$$$J$$$G$9$M!#(J

>	for ( i=0;i<10;i++) {
>		a += 1;
    $@!D(J
>	return( a+b+c+d );

>LY1:					! [internal]
    $@!D(J
>	inc	%o1		<- a
>	sll	%o1,16,%o1
    $@!D(J
>	srl	%o1,16,%o1
    $@!D(J
>	bl,a	LY1
>	add	%o5,%g2,%o5	<- e
>L77010:
>	add	%o1,%o3,%o1

$@!!$3$NId9g3HD%$r%k!<%W$N30$KDI$$=P$9:GE,2=$/(J$@$i$$$O9T$J$C$FM_$7$$(J
$@$H$$$&5$$O$7$^$9!#(J

$@!tB(CMDj?t$K$J$kDj?t$r%l%8%9%?$K:\$;$F$7$^$&$7!D(J :-(
--
($@3t(J)$@#P#F#U!!Bh#43+H/It!!Bh#2%=%U%H%&%'%"It!!Bh#3%=%U%H%&%'%"2](J
    $@JR;3!!A1IW(J    E-mail: kate@pfu.fujitsu.co.jp
		  Tel:    0427-96-5211
    $@!J$5!K!_#1(J  $@!J$]!K!_#1(J  $@!J%3!K!_#1(J  $@!J$$!K!_#2(J