🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.atari.st
Article #131

v03i087: sozo1.2pat -- Patches for Sozobon C 1.2

#131
From: Steven Grimm
Date: Tue, 14 Aug 1990 20:57
58 lines
1933 bytes
Submitted-by: nike.cair.du.edu!onecom!wldrdg!hans (Johann Ruegg)
Posting-number: Volume 3, Issue 87
Archive-name: sozo1.2pat

Here is a bug fix for "top" in Sozobon release 1.2.  You will need it if
you use the -O option at all.

Basically, several calls to the function "uses" or "sets" were incorrectly
coded with register masks instead of register numbers.  The fix is to
take out the RM() calls in several places.

Also, line 299 of peep3.c should call "uses" instead of "sets" with the
first parameter being "i2" not "i3".


In "peep2.c", make the following changes:

688c688
< 			if (uses(i2, RM(dr1)))
---
> 			if (uses(i2, dr1))
736c736
< 			if (uses(i2, RM(dr1)))
---
> 			if (uses(i2, dr1))
784c784
< 			if (uses(i2, RM(dr1)))
---
> 			if (uses(i2, dr1))

In "peep3.c", make the following changes:

299c299
< 	    !sets(i3, RM(i3->src.areg))) {
---
> 	    !uses(i2, i3->src.areg)) {
333c333
< 				if (sets(i3, RM(rm)))
---
> 				if (sets(i3, rm))
400c400
< 				if (sets(i3, RM(rm)))
---
> 				if (sets(i3, rm))
467c467
< 				if (sets(i3, RM(rm)))
---
> 				if (sets(i3, rm))


After you have made these changes, recompile the optimizer "top" without the
-O option (dont use the old "top").  Then install this fixed version of "top".
Now recompile again with the -O option (e.g. using the newly make "top").
Now install this "top" as your new version.

	Johann Ruegg
	Sozobon Ltd.
	uunet!isis!onecom!wldrdg!hans
Technical Details
Message-ID: <2954@male.EBay.Sun.COM>
Path: arc1-ca.pugleaf.net!wuarchive!cs.utexas.edu!sun-barr!newstop!male!panarthea.ebay.sun.com

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!wuarchive!cs.utexas.edu!sun-barr!newstop!male!panarthea.ebay.sun.com
From: koreth@panarthea.ebay.sun.com (Steven Grimm)
Newsgroups: comp.sources.atari.st
Subject: v03i087: sozo1.2pat -- Patches for Sozobon C 1.2
Keywords: text
Message-ID: <2954@male.EBay.Sun.COM>
Date: 14 Aug 90 20:57:37 GMT
Sender: news@male.EBay.Sun.COM
Reply-To: nike.cair.du.edu!onecom!wldrdg!hans (Johann Ruegg)
Lines: 58
Approved: koreth@panarthea.ebay.sun.com