🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19717

Bug in Inside Mac

#19717
From: drc
Date: Fri, 02 Oct 1987 14:04
27 lines
1950 bytes
Inside Macintosh should be updated on page I-380 to document that the
routine whose address is in TERec.wordBreak must preserve registers D1 and D2,
just as that page documents that TERec.clikLoop must preserve D2.

In the SE ROM, for instance, the caller of the word break
routine saves and restores D0/A0/A1 at 41167A and 41168C, but on its return
registers D1 and D2 are assumed preserved by instructions at 41164E and 411652.

In the meantime, I would recommend that anyone who is writing a custom wordbreak
function include inline code to save D1 and D2 at the beginning of their
routine and code to restore it at the end.  So far every compiler I have tried
has the same shortcoming in their Toolbox Interface libraries although some of
them (Semper, TML, Borland, and Think) will probably be updating their interface
code to save and restore the registers.  Don't flame the compiler manufacturers,
this shortcoming also exists in MPW (I have been informed that it is in the
Toolbox Interface Source Code which is licensed from Apple).

It is not clear at this point whether the anomaly is in the documentation (Inside
Mac) or the code licensed from Apple.

Dennis Cohen
Ashton-Tate Glendale Development Center
dBASE Mac Development Team
--------------------------
Disclaimer: All opinions expressed above are my own. I don't know what (if any)
opinions my employer might have.
Technical Details
Message-ID: <243@dbase.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!bloom-beacon!oberon!cit-vax!elroy!mahendo!jplgodo!wlbr!scgvaxd!ashtate!dbase!drc

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!bloom-beacon!oberon!cit-vax!elroy!mahendo!jplgodo!wlbr!scgvaxd!ashtate!dbase!drc
From: drc@dbase.UUCP
Newsgroups: comp.sys.mac
Subject: Bug in Inside Mac
Message-ID: <243@dbase.UUCP>
Date: Fri, 2-Oct-87 10:04:13 EDT
Article-I.D.: dbase.243
Posted: Fri Oct  2 10:04:13 1987
Date-Received: Sun, 4-Oct-87 01:33:20 EDT
Organization: Ashton Tate Development Center Glendale Cal.
Lines: 27
Keywords: TextEdit,WordBreak