Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

Re: In Applesoft, can open-apple key be detected with GET?

From Brian Patrie <bpatrie@bellsouth.spamisicky.net>
Newsgroups comp.sys.apple2.programmer
Subject Re: In Applesoft, can open-apple key be detected with GET?
Date 2018-01-08 18:09 -0600
Organization Aioe.org NNTP Server
Message-ID <p31180$1hrc$1@gioia.aioe.org> (permalink)
References <4d44b35b-8a2d-49cf-95c0-1f57e3747b5c@googlegroups.com> <e8fdc532-b9a4-4b88-89c8-478dfd72e2da@googlegroups.com>

Show all headers | View raw


On 2018-01-08 16:23, James Davis wrote:
 > I wonder if there is some way to wire up the (16-pin Game Port)
 > pushbuttons [(0, 1)={KB-key (Open-Apple, Solid-Apple)}] to cause
 > the Keyboard Strobe to set (go to 128)?  Or, can it (and/or the
 > Keyboard register {KBD}) be poked with the high ASCII values
 > representing OA & SA?--For the GET K$ to retrieve.  Better yet,
 > just set K$ to the value and bypass the GET when OA/SA is pressed.

You cannot poke values into the keyboard register.
You can, however monkey with what you get from GET.

  10 PRINT "Press keys to see their values."
  11 PRINT "Type OA-Q to quit."
  20 GET K$:K = ASC(K$+CHR$(0)) + ( PEEK(49249)>127 ) * 128
  21 K$ = CHR$(K) : REM kinda optional
  30 PRINT K,
  40 IF K = 209 OR K = 241 THEN 99 : REM OA-Q
  90 GOTO 20
  99 END

(The +CHR$(0) is to prevent an illegal quantity error,
if the user types ctrl-@.)

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


Thread

In Applesoft, can open-apple key be detected with GET? Matthew Power <matthewmpower@gmail.com> - 2018-01-07 13:11 -0800
  Re: In Applesoft, can open-apple key be detected with GET? Du Hast <duhast6377@gmail.com> - 2018-01-07 13:23 -0800
    Re: In Applesoft, can open-apple key be detected with GET? Matthew Power <matthewmpower@gmail.com> - 2018-01-07 14:10 -0800
      Re: In Applesoft, can open-apple key be detected with GET? gids.rs@sasktel.net - 2018-01-08 08:09 -0800
  Re: In Applesoft, can open-apple key be detected with GET? James Davis <JPD.Enterprises@outlook.com> - 2018-01-08 14:23 -0800
    Re: In Applesoft, can open-apple key be detected with GET? James Davis <JPD.Enterprises@outlook.com> - 2018-01-08 14:26 -0800
      Re: In Applesoft, can open-apple key be detected with GET? Matthew Power <matthewmpower@gmail.com> - 2018-01-09 18:25 -0800
    Re: In Applesoft, can open-apple key be detected with GET? Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2018-01-08 18:09 -0600
      Re: In Applesoft, can open-apple key be detected with GET? James Davis <JPD.Enterprises@outlook.com> - 2018-01-08 18:21 -0800
        Re: In Applesoft, can open-apple key be detected with GET? Tom Porter <laseractiveguy@gmail.com> - 2018-01-09 18:16 -0800
        Re: In Applesoft, can open-apple key be detected with GET? Michael J. Mahon <mjmahon@aol.com> - 2018-01-09 22:37 -0600

csiph-web