[net.sources.mac] Debug INIT & FKEY resources

blm@cxsea.UUCP (02/09/87)

Here are two resources I find handy while developing on the Mac. Both of
them check to see if a debugger is installed (by comparing the address of
the 1010 trap against RomBase), and if so, enter the debugger. One of them
is an INIT resource, the other is an FKEY resource. If they find that no
debugger is present, they'll just beep.

Attached below is a Binhex'd Unpit file containing the resources themselves,
and the MDS sources. Just use ResEdit to copy the resources in to your
System file. They're public domain, so do with them what you will.

Note that you can really screw things up digging around in memory, so be
careful! If you do screw something up though, it's not my fault.

------------------------- Cut Here -------------------------
(This file must be converted with BinHex 4.0)

:&84PBR9R)%P1593J*L"'5d9C,P"TG!"3593J99"*9!#3"!Pl!*!%q+e36@%d)!*
!SP*)-V0,)&E9[K!941)LFM8YAVKX0`iFQ1I+(FV!5UFV(C!!dm26bI$5fj3,QA5
2+$I!%MT$5DB3Q***5MLmair)(Uplp4SX(lIk&#1BTP-YR%rXSXp'A+kLTB5!P&A
UK+GB[qaT6[ed)6[*X%0D+9Ga8!#Ma%1,@h3!!!%H`k08H`k03T!!EJ+3!'i"$l)
T+8T5P+9S!!&VG(FB*rMf(L*`b-KD"EC!XJ0rrj!(qaT6[ed)6[*X%0D+9Ga8X!Z
hj+Q8T5Y!Zhj+Q8T5Y"kYHLq@BP&a5)aX!!)lM"2i!&VGrj!Ji$ZKL'eSD9M1YAb
GKeC@5++3!$G#M0hUi#im[NkTZD%Thkk+*e)TUA,88UlLT&LEfZVUFTJ1k')E@KT
@-keI*f(9PC,eF$G#M0hUi#im[NkTZD%Thkk+*e)TUA,8*hNf#,%hYGA8j6#d#fb
"C!E`KX+@4S#-&*E5VZ+J)5RH6B!2S!!!f3XI5%!AB0P+p+GqZLLG5p+GqZLLG81
LS&"0B63ri6#h,%*V0S&*b!TPC#dVM35lAPHXX#S5a@S'9qX*8R%j5kkLafp8jM$
4#CD,P9#i8C!!C2+!&46U5&h`#-k!HZQY0TcK`4CN)K3*,1eVNa+*5`Q3!"PD1dH
N+GT@[iY&#L"bq`M8F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[VFD#JfrkRkmD'S!I`'`0!$q!f"`mGeGr)NqUUUZbp9,4#S#UUl@Akja,Q+
YSi%5hkCM-VhrQQJpXIR4842&TmHpplfVVXAPTeRC[Sak[(1$YHFZDI#*5p%DmhI
$A(XH,SbjhB3*MZbqV&2d8Xr%e,[KdjI@)fRlRIk`f[Xip2V&Yk*QGEe,Vm529ae
SU,l+e&pM3ZKi+YLNdq%6K@1D[kbm[FpkTbLHUT!*CPjXDN09h9f4U)eEkIcVlcG
AaEj#(G`"8cJJqeHSf(B(#TXqbD@A99AXdLbkYY9l*TCG6FUMVi"34@jNP$B!!!:
-- 

Brian L. Matthews                               "Facts are impotent against
...{mnetor,uw-beaver!ssc-vax}!cxsea!blm          loud and frequent assertion."
+1 206 251 6811
Computer X Inc. - a division of Motorola New Enterprises