🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #7011

Re: Aztec C and Enforcer

#7011
From: Thad P Floryan
Date: Tue, 27 Nov 1990 03:00
88 lines
3547 bytes
bj@cbmvax.commodore.com (Brian Jackson) in <16055@cbmvax.commodore.com> writes:

	In article <36209@cup.portal.com> Radagast@cup.portal.com (sullivan -
	segall) writes:

	>Where can I get a copy of Enforcer?  (Sounds quite useful.)
	>
	>                           -Sullivan_-_Segall (a.k.a. Radagast)
	> 
	It comes with the developer stuff. It was on the 1990 Devcon disks and
	we just got through posting it to the commercial services (I posted
	it to GEnie, at least; I assume that BIX, CIS, etc. have it.) It's
	also on the FAUG BBS in the San Francisco Bay area (415) 5952479.

Note that it's also at abcfd20.larc.nasa.gov.  Note also that it REQUIRES
an MMU in one's Amiga per its docs (enclosed below).

Thad Floryan [ thad@cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]

-------------------- begin enclosed material --------------------

Enclosed is a majik tool for detecting invisible bugs in programs; _The
Enforcer_ uses the MMU to build a shroud of protection over anything that
is not legal memory.  Any "empty holes" in the address space are marked as
illegal by _Enforcer_.	Reads of the system ROMs are allowed, but not
writes.  With the exception of longword reads of location 4, the lowest 1K
of memory is completely off-limits.

When an illegal access is detected, the power LED will flash and a detailed
message will be sent out the serial port (at the default speed).  Illegal
writes are aborted, illegal reads return NULL data.  For example:



Program Counter (approximate)= 783C460         Fault address        =DEADBEEF
User stack pointer	     = 7860ABC	       DOS Proccess address = 7839F98
Data: 00000001 01E0F0FB 00000FA0 0783AE18 00000001 01E0987F 01E0A93D 0783C3EC
Addr: 0783AE18 0785FB28 07810114 0783C3EC 07860AC0 00F8F56A 00F8F55E 078021D0
Status register =$8	       Special status word =$729 (WRITE-WORD)
Data output buffer  =$FFFFADEF (o)
Process/CLI = Background CLI ,"lawbreaker"
Hunk-O-Matic says: PC address is in hunk #0, near offset $70



CLI command "lawbreaker" has written the word value $ADEF to location
$DEADBEEF.  The write was aborted.  With the information given, it is
usually quite easy to figure out what went wrong.




Remote keystrokes:
	    ^S	- pause
	    ^Q	- resume
	    ^X	- disable _Enforcer_ reporting until next ^Q.


Command line options:
	    on
	    fprotect	;Same as on, but write protects $F00000-$F7FFFF
	    off






Notes:

    If you don't have an external terminal, just use a modem & a terminal
    program.  Most modems will echo back characters at any baud rate. Else,
    just set the baud rate to match the modem.


    Illegal hits from CLI commands named "metascope" or "wack" are ignored.


    The Alert() system call writes to locations in the $180-$1C0 area.


    _The Enforcer_ works on any V1.2,V1.3 or V2.0 system, provided the MMU
    is available.

    _The Enfocer_ also works on A3000 SuperKickstart machines, under 2.0
    or under 1.3.

-------------------- end enclosed material --------------------
Technical Details
Message-ID: <36246@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!portal!cup.portal.com!thad
References: <7127@sugar.hackercorp.com> <16050@cbmvax.commodore.com> <36209@cup.portal.com> <16055@cbmvax.commodore.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!portal!cup.portal.com!thad
From: thad@cup.portal.com (Thad P Floryan)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Aztec C and Enforcer
Message-ID: <36246@cup.portal.com>
Date: 27 Nov 90 03:00:42 GMT
References: <7127@sugar.hackercorp.com> <16050@cbmvax.commodore.com>
  <36209@cup.portal.com> <16055@cbmvax.commodore.com>
Organization: The Portal System (TM)
Lines: 88