[net.micro.apple] Help with AE 80-column card?

binder@lando.dec.com (Fabrum esse suae quemque fortunae) (06/23/86)

I just bought an Applied Engineering Viewmaster-80 card for my ][+ and I'm 
having trouble using it with CP/M.  

My machine is homebuilt, not an official Apple, and it has a full keyboard. 
The AE card traps out ^A to switch its case lock, and it traps out ^K to
generate a left bracket.  I want to disable the ^A and ^K trapping, so that I 
can use the Turbo Pascal editor with its default key bindings.  WordStar does
the disable just fine, but I believe that's because WordStar has its own
keyboard driver to allow typeahead.  There's no documentation in the AE manual
telling how the traps can be disabled, if indeed they can be without writing a
keyboard driver. Because the card is Videx compatible, I'm wondering if
there's info in the Videx manuals that describes what I need.  Can anyone out
there help me? 

Thanks,
Dick Binder   (The Stainless Steel Rat)

UUCP:  {decvax, allegra, ucbvax... }!decwrl!dec-rhea!dec-dosadi!binder
ARPA:  binder%dosadi.DEC@decwrl.ARPA

jeffm@mmintl.UUCP (Jeffrey Miller) (07/03/86)

In article <3769@decwrl.DEC.COM> binder@lando.dec.com writes:
>I just bought an Applied Engineering Viewmaster-80 card for my ][+ and I'm 
>having trouble using it with CP/M.  
>
>My machine is homebuilt, not an official Apple, and it has a full keyboard. 
>The AE card traps out ^A to switch its case lock, and it traps out ^K to
>generate a left bracket.  I want to disable the ^A and ^K trapping, so that I 
>can use the Turbo Pascal editor with its default key bindings.  WordStar does
>the disable just fine, but I believe that's because WordStar has its own
>keyboard driver to allow typeahead.  There's no documentation in the AE manual

Correct me if I'm wrong but you're obviously running a Microsoft Softcard
(or copy) with CP/M 2.2x.  CP/M is doing the trapping cause most apples
can't type a '[' so ^K is trapped and translated.  This also is done so that
^B becomes '\', ^U is a tab, and there's one other I can't remember, maybe
^@ or something.
You need to run configio.bas, which will read and write the I/O configuration
block where keyboard characters get redefined.  This utility comes with Ms
CP/M 2.2x.  You may be able to get some help with the ^A trapping from AE,
since this isn't one of the standard chars trapped by CP/M.  Check for it
anyway in the keyboard character redefinition table with configio.bas.

*

        *************************************************
        *       Jeff Miller                             *
        *       Multimate International Corp.           *
        *       52 Oakland Avenue                       *
        *       East Hartford, CT  06108-9911           *
        *       (203) 522-2116 x257                     *
        *  UUCP:                                        *
        * ...!seismo!utah-cs!utah-gr!pwa-b!mmintl!jeffm *
        *                                               *
 -->    * P.S. I can't *mail* to ARPA but I can receive *    <--
 -->    * from there.  News I *post* should get there.  *    <--
        *************************************************
*

harry@nlgvax.UUCP (Harry Schreurs) (07/11/86)

In article <3769@decwrl.DEC.COM> binder@lando.dec.com writes:
>I just bought an Applied Engineering Viewmaster-80 card for my ][+ and I'm 
>having trouble using it with CP/M.  
>
>My machine is homebuilt, not an official Apple, and it has a full keyboard. 
>The AE card traps out ^A to switch its case lock, and it traps out ^K to
>generate a left bracket.  I want to disable the ^A and ^K trapping, so that I 
>can use the Turbo Pascal editor with its default key bindings.  WordStar does
>the disable just fine, but I believe that's because WordStar has its own
>keyboard driver to allow typeahead.  There's no documentation in the AE manual
>telling how the traps can be disabled, if indeed they can be without writing a
>keyboard driver. Because the card is Videx compatible, I'm wondering if
>there's info in the Videx manuals that describes what I need.  Can anyone out
>there help me? 
>
>Thanks,
>Dick Binder   (The Stainless Steel Rat)
>

I once had the same problem.
In the VIDEX VIDEOTERM manual I found the source of the software
contained in the VIDEOTERM.

The problem you have may be caused by the following code:

				*
				* GET CHARACTER FROM KEYBOARD
				*
C844: 20 D1 C8			RDKEY	JSR CSRMOV
..............			.....	... ......
..............			.....	... ......
C852: 20 5C C8				JSR KEYSTAT
..............			.....	... ......
..............			.....	... ......
C85B: 60				RTS
-----------------------------------------------------------------------------
C85C: C9 8B			KEYSTAT	CMP #$8B	; CHECK FOR CONTROL K
C85E: D0 02				BNE NOTK	; SKIP IF NOT
C860: A9 DB				LDA #$DB	; SUBSTITUTE [
C862: C9 81			NOTK	CMP #$81	; CHECK FOR CONTROL A
C864: D0 0A				BNE NTSHFT	; SKIP IF NOT
-----------------------------------------------------------------------------
..............			.....	... ......
..............			.....	... ......
C870: 48			NTSHFT	PHA		; SAVE CHARACTER
..............			.....	... ......
..............			.....	... ......
C8A0: 60				RTS


Change the code in the address range C85C-C864 to:

C85C: EA			KEYSTAT	NOP
C85D: EA				NOP
C85E: EA				NOP
C85F: EA				NOP
C860: EA				NOP
C861: EA				NOP
C862: EA				NOP
C863: EA				NOP
C864: EA				BMI NTSHFT

The effect of these statements is that no translation of characters
is done by the software on the VIDEX VIDEOTERM.

The software on your board may differ but
somewhere this translation is done.
So look for code in the PROM of your board where this translation is done.

Hope this is enough help for you to solve your problem.

--------------------------------------------------------
Harry Schreurs

UUCP: ...{seismo,mcvax,prlb2}!philmds!nlgvax!harry

May the cold be with you!