Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site pucc-h
Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ihnp4!inuxc!pur-ee!CS-Mordred!Pucc-H:ags
From: ags@pucc-h (Dave Seaman)
Newsgroups: net.micro.apple
Subject: Re: 80-column cards
Message-ID: <2114@pucc-h>
Date: Sat, 29-Jun-85 11:31:14 EDT
Article-I.D.: pucc-h.2114
Posted: Sat Jun 29 11:31:14 1985
Date-Received: Wed, 3-Jul-85 07:18:42 EDT
References: <583@utai.UUCP>
Reply-To: ags@pucc-h.UUCP (Dave Seaman)
Distribution: net
Organization: Purdue University Computing Center
Lines: 40
Summary: 

In article <583@utai.UUCP> dudek@utai.UUCP (Gregory Dudek) writes:
>....
>    A plea for assistance...   I've been working on a program
>for the Apple II that uses the 80-column card, and am having
>a bad time trying to get it going on the IIe.  The
>program does cursor addressing by sending characters to the card
>via the "Pascal entry" at location $c9aa.  This works fine on
>(most cards) on the II+.  On the IIe, however, all sorts of
>extra weird characters are produced and the addressing is not always
>accurate.
>    Can anybody help me?  I init the card (in slot 3) by jumping
>to $c300.

The Pascal initialization entry is $C3xx, where xx is the value stored
at $C30D.  On an enhanced //e the value is $4A, meaning that the initialization
entry JPINIT is located at $C34A.  If you are using a different Apple II-series
machine (such as an unenhanced //e), or if you use a non-Apple 80-column card,
you will need to find the correct value for your machine.

Note that the $C300 entry does BASIC initialization, and BASIC does not 
recognize cursor addressing.

For completeness, the other Pascal entry points are described as follows in
Apple's ROM listings (enhanced //e version):

* Pascal 1.1 Firmware Protocol table:
*
* This table identifies this as an Apple //e 80 column
* card.  It points to the four routines available to
* programs doing I/O using the Pascal 1.1 Firmware Protocol.
*

C30B:01		DFB	$01		;GENERIC SIGNATURE BYTE
C30C:88		DFB	$88		;DEVICE SIGNATURE BYTE
C30D:4A		DFB	#>JPINIT	;PASCAL INIT
C30E:50		DFB	#>JPREAD	;PASCAL READ
C30F:56		DFB	#>JPWRITE	;PASCAL WRITE
C310:5C		DFB	#>JPSTAT	;PASCAL STATUS
-- 
Dave Seaman			 ..!pur-ee!pucc-h:ags