Newsgroups: comp.sys.apple2.programmer From: LOSETHECAPITALWORDSedhel@bigfoot.com (Edhel Iaur, Esq.) Subject: Re: Pokes and Peeks X-Nntp-Posting-Host: rocky-gw.oswego.edu Message-ID: <341ef692.3375680@129.3.17.35> Sender: news@oswego.Oswego.EDU (Network News) Organization: US-A2WUG X-Newsreader: Forte Free Agent 1.1/32.230 References: <341E20D6.CF8EF341@qut.edu.au> Date: Tue, 16 Sep 1997 21:37:34 GMT Lines: 51 Path: news1.icaen!news.uiowa.edu!iagnet.net!howland.erols.net!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!128.226.1.24!bingnews.binghamton.edu!news.acsu.buffalo.edu!oswego!news On Tue, 16 Sep 1997 16:01:59 +1000, Stephen Lowis wrote: >I have been trying to track down the necessary pokes and peeks for using >the Apple II's internal games port (not the joystick port). The internal one is just a superset of the external one...from my web page: IF PEEK (-16284) > 127 then joystick button 3 is pressed IF PEEK (-16285) > 127 then joystick button 2 is pressed IF PEEK (-16286) > 127 then joystick button 1 is pressed IF PEEK (-16287) > 127 then joystick button 0 is pressed Poke -16289,1 Puts .3 volts (1.6 MA) out pin 12 of internal joystick socket (Output 3 on at 0.3 volts) Poke -16290,1 Puts 3.5 volts out pin 12 of internal joystick socket (Output 3 on at 3.5 volts) Poke -16291,1 Puts .3 volts (1.6 MA) out pin 13 of internal joystick socket (Output 2 on at 0.3 volts) Poke -16292,1 Puts 3.5 volts out pin 13 of internal joystick socket (Output 2 on at 3.5 volts) Poke -16293,1 Puts .3 volts (1.6 MA) out pin 14 of internal joystick socket (Output 1 on at 0.3 volts) Poke -16294,1 Puts 3.5 volts out pin 14 of internal joystick socket (Output 1 on at 3.5 volts) Poke -16295,0 Puts .3 volts (1.6 MA) out pin 15 of internal joystick socket (Output 0 on at 0.3 volts) Poke -16296,1 Puts 3.5 volts out pin 15 of internal joystick socket (Output 0 on at 3.5 volts) The rest is basically just PDL(x), where x=the axis # you want to read (0=X axis of joystick 1, 1=Y axis of joystick 2 or the second paddle, and so on, up to 3). PRINT PDL(0), when you have a joystick plugged in, will probably read about 127. The one thing I remember that I forgot is the strobe thing...there's a POKE/PEEK that'll make a certain pin's power dip for a moment. If you need a bit more detail, look here: http://www.visi.com/~nathan/a2/faq/pinouts.html#Game16 >If you can point me in a direction, or send them to me, my address is >lowis@gil.com.au CC:lowis@gil.com.au -- _ />___________________ +==Apple // Forever==+ || | |/ \| | |M#M#M#||___________________---__ +-37th Wisest Wizard-+ || | |`-.| | |#M#M#M||___________________--- +- Edhel Iaur, Esq. -+ ||/ \|\_/|/ \| \> http://members.aol.com/owsw/1WSW.Home.Page.html http://www.grin.net/~cturley/USA2WUG/FOUNDING.MEMBERS/HOME.PAGES/EDHEL ***For my correct email address, delete all the capital letters***