🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #18748

Re: Cache Hack DA

#18748
From: Charlie C. Kim
Date: Fri, 04 Sep 1987 15:43
43 lines
2225 bytes
This was recently posted to the kermit mailing list in reponse to
problems with mac kermit.  

To: info-kermit@cu20b
Subject: Mac Kermit
--text follows this line--
MacKermit works on a Mac II; however, the Sumacc C compiler runtime
library does not.  Unfortunately, the current version of MacKermit is
built with the Sumacc C compiler.  The problem is the traps and calls
to various in-rom/ram packages on the Macintosh are built in-line, on
the stack as I remember, by the Sumacc C compiler runtime libraries.
This doesn't work too well on a 68020 based system like the Mac II
because the 68020 has an instruction cache.

If you are willing to live with a (moderate) performance degradation,
simply turn off the instruction cache with following MPW asm program:
		Machine MC68020
	nocache main
		clr.l d0
		movec d0,cacr
		rts
		ENDP
		end

Simply "restart" to turn the cache back on.

Charlie C. Kim
User Services
Columbia University

Here's the corresponding compiled program in binhex 4.0 format:
---------------- CUT HERE ----------------
(This file must be converted with BinHex 4.0)

:#@j[)'PMB@0SC3""8&"-2j!%!*!)!@qqk!#3"!%!N!-",!#3!b`!N!0$!4JQEJ!
@)'hkZL*Z!!J`%8'm(rrP3#K`!!!H&!*(!2m#H#i!!J#3!d&38%`rN!3!N!S*R`#
3"N&38%`rN!3!N"LG*p!U!*!'!@m"DN(ZrIBI%$mm!2p1V3&53qlqpR"!)YK63'l
k3QG"l[lf,`J[,J!12bi!$%KZrrj1Z[ib%"pR%MmZrri[,J!),bi!%NkY!(*J$%*
R,bi!##m,6Ud!FNcI')"1AL"Ih[`!%Nl3d&*23d968dm!N!3,SJ9J!!j19[cq)'i
!#%2Zr`#3""J!N!-S!!!#!*!%#!#3!b!!!$mm!!'Tm!#3!``!N!-"F!"1H`!#6R8
!!!%!N!-",!#3!b`!N!0$!!,Sk!AL!*!$(!!q!!"$6d4&!!%!#J!!rrmJ!*!)!3!
!&!!!(!!#k'`%6@&TE[M5!:
Technical Details
Message-ID: <93@cunixc.columbia.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!columbia!cunixc!cck
References: <2190@druhi.ATT.COM> <733@csun.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!columbia!cunixc!cck
From: cck@cunixc.columbia.edu (Charlie C. Kim)
Newsgroups: comp.sys.mac
Subject: Re: Cache Hack DA
Message-ID: <93@cunixc.columbia.edu>
Date: Fri, 4-Sep-87 11:43:05 EDT
Article-I.D.: cunixc.93
Posted: Fri Sep  4 11:43:05 1987
Date-Received: Sat, 5-Sep-87 18:14:01 EDT
References: <2190@druhi.ATT.COM> <733@csun.UUCP>
Reply-To: cck@cunixc.columbia.edu (Charlie C. Kim)
Distribution: comp
Organization: Columbia University Center for Computing Activities
Lines: 43
Keywords: Please