Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Benoit0123 Newsgroups: comp.sys.apple2.programmer Subject: Re: A fix for the Uthernet II manual and a tiny enhancement for the detectionroutine Date: Thu, 10 Mar 2016 09:13:48 -0000 (UTC) Organization: Mac GUI Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 10 Mar 2016 09:13:48 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ac9e0e4d7dd3957fb97803ee6801bab8"; logging-data="3124"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RBKDtOA77ITVI0Ik5CdkZ" User-Agent: Mac GUI Usenet In-Reply-To: Cancel-Lock: sha1:ztDZ8HeSFbrI20fFhiADuNnkLLs= Xref: csiph.com comp.sys.apple2.programmer:2469 Benoit0123 wrote: > I've got a look at the Uthernet 2 manual, and noted some discrepancy > within > the published listing. > Despite the fact that the WDATA was equated to $C0C7 value within the > listing, the instruction STA WDATA to write to the data port was assembled > as 8D 07 C0 (for instance at lines 89 and 106 page 28). > Here is a subroutine that tries to detect the UII card within an Apple 2. > The changes from the one published is that it automatically skips all Disk > 2 > interface cards (detected by a checksum routine on the Cnxx ROM space). > and > also skips any card with a firmware entry point as the UII card dos'nt > have > any at this time. The checked bytes are at offsets: 06 (value 38) 07 > (value > 18) and 0B (value 01). > (snip) One thing is missing: there is a soft switch in Apple //e (and presumedly in Apple 2GS too) that selects either slot ROM or internal ROM for the $C100-$C2FF and $C400-C7FF) CPU 64K space. SLOTCXROM is at address $C006/07/15. Under "normal" conditions, SlotCXROM is on which means that Slot ROM is selected, but, to be complete, the detection routine should save the current status, select slotCXROM before restoration upon exit. I do not know of any cascade effect in the Apple 2+ or //c of accessing this soft switch. -- Growing old is mandatory.. growing up is optional.. But the other way round is as true.