Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Benoit0123 Newsgroups: comp.sys.apple2.programmer Subject: Re: running programs in aux memory Date: Mon, 6 Mar 2017 00:20:22 -0000 (UTC) Organization: Mac GUI Lines: 25 Message-ID: References: <5a125a37-dd5a-49d4-88c5-da0e540a06b5@googlegroups.com> <6dcf7880-6076-48fc-996d-336bd0f8b4df@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 6 Mar 2017 00:20:22 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="c0473de77ee556c2e6f663f14445fc75"; logging-data="1535"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MpFzseSfCl6K+UlLZf898" User-Agent: Mac GUI Usenet In-Reply-To: <6dcf7880-6076-48fc-996d-336bd0f8b4df@googlegroups.com> Cancel-Lock: sha1:R4+x1PidL7Utyej/aAThALZZrHY= Xref: csiph.com comp.sys.apple2.programmer:3325 I do not know whether I am off topic or not. Forgive me if this is the case, but to transfer control from AUX memory to MAIN memory, I am using the BRK opcode (with accepts one operand). Therefore, If I manage an address table within main memory, I can call any subroutine within main bank from any aux bank (I say any because it applies to any RAMWorks protocol additional aux memory bank). The only pre requirement is that the vector exists in AUX bank LC and the C3 page be dedicated to internal ROM (not to the slot 3). Also the fact that the whole BRK handling is performed with interrupts disabled can prove useful sometimes. If some routine have been defined within an aux mem bank, then it can be called using the XFER call or by any other mean discussed in this thread. Disadvantage: Aux to Aux control will imply increasing the number of data buffer copy operations with the main memory which can be costly in terms of performance particularly if this is the same aux bank. Just my two cents, BenoƮt -- Growing old is mandatory.. growing up is optional.. But the other way round is as true.