Groups | Search | Server Info | Login | Register


Groups > comp.sys.apple2.programmer > #81

Re: Need example of IIgs code to set BRK vector

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Charlie <charlieDOTd@verEYEzon.net>
Newsgroups comp.sys.apple2.programmer
Subject Re: Need example of IIgs code to set BRK vector
Date Mon, 02 Jan 2012 22:32:36 -0500
Organization A noiseless patient Spider
Lines 29
Message-ID <jdtsqs$p5p$1@dont-email.me> (permalink)
References <6875625a-f276-4d22-8cf3-895f9cceb506@k28g2000yqn.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 3 Jan 2012 03:31:40 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="L3ilCRUbhBcSBj22mANaRw"; logging-data="25785"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188UE4oMI6yr+HmHbVbX2Tz1XlxlFEcIn4="
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.25) Gecko/20111213 Thunderbird/3.1.17
In-Reply-To <6875625a-f276-4d22-8cf3-895f9cceb506@k28g2000yqn.googlegroups.com>
Cancel-Lock sha1:C/ouYkZBwzRST5kLAh3ZSXNrm0U=
Xref x330-a1.tempe.blueboxinc.net comp.sys.apple2.programmer:81

Show key headers only | View raw


On 1/2/2012 8:55 PM, datawiz wrote:
> Can anyone offer a snippet of assembly code to properly set the BRK
> vector on the IIgs?
>
> I'm working on fixing a couple more Apple II games that don't work on
> the IIgs, and I've noticed a trend of BRK causing problems. In the
> latest case, the Apple II BRK vector at FFFE/FFFF is set to point to
> user space code and it's used extensively as a method of code
> obfuscation by the copy protector. In previous fixes, it's been a
> single BRK event, which can be patched to jump to the exit point. In
> this case, BRK instructions are littered throughout the code and sent
> to it's internal handler, so I can't patch every instance and a
> complete rewrite is a bit daunting.
>
> So the path of least resistance seems to be to set the IIgs BRK vector
> to point to the same Apple II BRK vector and it should work correctly,
> right?
>
> I'm not a IIgs guy at all, so any assistance would be appreciated.
>
> Thanks!
> Rich

The IIgs actually has tools to set the BRK vector.  Here is a link to 
IIgs Technote #1 which includes sample source code:

http://www.1000bit.it/support/manuali/apple/technotes/iigs/tn.iigs.001.html

Charlie

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Need example of IIgs code to set BRK vector datawiz <rich.martin@gmail.com> - 2012-01-02 17:55 -0800
  Re: Need example of IIgs code to set BRK vector Charlie <charlieDOTd@verEYEzon.net> - 2012-01-02 22:32 -0500
    Re: Need example of IIgs code to set BRK vector datawiz <rich.martin@gmail.com> - 2012-01-02 20:01 -0800
      Re: Need example of IIgs code to set BRK vector Charlie <charlieDOTd@verEYEzon.net> - 2012-01-03 00:21 -0500
        Re: Need example of IIgs code to set BRK vector datawiz <rich.martin@gmail.com> - 2012-01-02 21:46 -0800
          Re: Need example of IIgs code to set BRK vector Charlie <charlieDOTd@verEYEzon.net> - 2012-01-03 15:10 -0500
            Re: Need example of IIgs code to set BRK vector datawiz <rich.martin@gmail.com> - 2012-01-03 13:56 -0800
  Re: Need example of IIgs code to set BRK vector "Anton Treuenfels" <teamtempest@yahoo.com> - 2012-01-03 20:17 -0600
    Re: Need example of IIgs code to set BRK vector datawiz <rich.martin@gmail.com> - 2012-01-04 06:55 -0800
      Re: Need example of IIgs code to set BRK vector datawiz <rich.martin@gmail.com> - 2012-01-04 07:10 -0800
        Re: Need example of IIgs code to set BRK vector magnusfalkirk <dean.phares@gmail.com> - 2012-01-04 09:05 -0800

csiph-web