[comp.sys.apple2] An Apple A Day

noahm@pro-freedom.cts.com (Noah Magram) (10/16/90)

Hello everyone in this installment I'll tell you:
How to record you're favorite theme songs etc. to tape, on an APPLE ][e!
How to read paddle buttons (a.k.a. the open & closed apple keys)
//////////////////////////////////////////////////////////////////////////////
                               An Apple A Day
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Here's the tip on how to record songs from disk to tape out jack on ][e:

Ingredients:
A two way earphone jack (male)
Copy ][+
Some Assembly language experince
The disk with you favorite song on it
-------------------------------------
1. Boot up Copy][+ and load the sector editor
2. put the disk in drive two (Or whatever drive you have slected)
3. Hit "R" for read, and type: 0001 [RETURN].
--The disk should spin a little and some text and hex will come up on the
screen.
4. Hit "S" for search, and hit "H" for Hex. Then type: 30 C0.
[RETURN]
--The disk should spin a lot or a litte depending where the sound routine is.
* hex $30 C0 is the address to click the speaker, thus making sound if
repeated fast enough (At machine level speed.).
5. Once the drive has stopped then hit "J" a few times to move the cursor back
a bit. then type "L" for list and see if you can find: $C030 anywhere in the
listing, if you couldn't then goto 4 again.
6. If you did find it then hit "B" for beginning then Search again for it,
this time (Now that you verified that it wasn't stray data.) hit "J" ONCE.
Then press "H" for hex entry. Then type 20 [RETURN] [ESC]. Then hit "W" for
write to disk (Remember this should be ONLY DONE ON A BACKUP!!!) and hit
[RETURN] twice. After the disk stops spinning skip back to 4.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                USE THIS METHOD ONLY ON A BACKUP COPY!
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Now for the Button addresses
$C061 (-16287) -- Peek this address to see if the value is larger than $80 or
127 in dec. If the value is larger than 127 then the button (Key) is being
pushed.
 
$C062 (-16286) -- Same as above but applies to PDL(1) intstead of PDL(0)
------------------------------------------------------------------------------
                          See you all later!
------------------------------------------------------------------------------
----
ProLine:  noahm@pro-freedom
Internet: noahm@pro-freedom.cts.com
UUCP:     crash!pro-freedom!noahm
ARPA:     crash!pro-freedom!noahm@nosc.mil

noahm@pro-freedom.cts.com (Noah Magram) (10/18/90)

To all:
PLEASE SEND ME TIPS VIA E-MAIL! Also please, everyone who wants a copy of the
weekly version of An Apple A Day write E-mail to me!
------------------------------------------------------------------------------
This issue we'll discuss the infamous display swiches. I can see some of you
master hackers out there chortle: Ha! What a fool doesn't he know that
EVERYONE knows ALL of the display swiches! Well, all you master hackers out
there let it pass. Belive it or not, THERE ARE PEOPLE THAT DON'T KNOW THE
DISPLAY SWICHES (Gasp!)!!! Oh well, anyways here's today's apple.
//////////////////////////////////////////////////////////////////////////////
                            An Apple A Day!!
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
The graphics display swiches are:
$C050 (-16304) -- Poke to 0 to go to text to graphics mode w/o clearing
screen.
$C051 (-16303) -- This one transfers from text to graphics.
$C052 (-16302) -- This one moves you from mixed screen to full screen
graphics.
$C053 (-16301) -- This one sets full screen graphics to mixed screen.
$C054 (-16300) -- This one 'll display page 2. Can be used to show help screen
on page 2 of text if lo-res graphics are not used.
$C055 (-16299) -- This one 'll display page 1.
----
ProLine:  noahm@pro-freedom
Internet: noahm@pro-freedom.cts.com
UUCP:     crash!pro-freedom!noahm
ARPA:     crash!pro-freedom!noahm@nosc.mil

noahm@pro-freedom.cts.com (Noah Magram) (10/20/90)

Today's Apple is about floating point addition in machine code.
//////////////////////////////////////////////////////////////////////////////
                            An Apple A Day
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
The following is how to add numbers in the FP accumulator in machine code.
1. Load registers Y and A with the address that has the number in it.
2. poke or some other write to address the other number to (244-247) $F4-$F7
3. Finally call or "G" $E7BE (-6210) the result will be in address $9D-$A3
(157-163).
==============================================================================
----
ProLine:  noahm@pro-freedom
Internet: noahm@pro-freedom.cts.com
UUCP:     crash!pro-freedom!noahm
ARPA:     crash!pro-freedom!noahm@nosc.mil

scottr@gnh-applesauce.cts.com (Scott Rothstein) (10/21/90)

You wouldn't also remember how to display hidden (control) characters in DOS
3.3, would you? Someone asked me recently, and I couldn't for the  life of me
remember. Sure, Copy ][+ works, but it bother me that I don't remember the
simple BASIC way....
scottr@applesauce.bb.ny 

jackg@pro-ldm.cts.com (System Administrator) (10/22/90)

In-Reply-To: message from scottr@gnh-applesauce.cts.com

>You wouldn't also remember how to display Hidden (control ) characters in DOS
3.3.

I think you use the Control @.  Or is that the one for invisible file names?

UUCP:     crash!pnet01!pro-ldm!jackg           INET: jackg@pro-ldm.cts.com
ARPA:     crash!pnet01!pro-ldm!jackg@nosc.mil
ProLine:  jackg@pro-ldm                            300-9600 baud (HST)

lone@hogbbs.fidonet.org (Lone Wolf) (10/24/90)

Wow! I am rather new to this echo board, but WOW! An apple A day is
great! I'm an up and comming asm lang monster and love tech stuff. Here
are some suggestions (if they haven't already been used in previous eds:)
Write to Phamtom HR Page 3: poke 230,96
After Xdraw: peek(234)=0 if started over non-black hires dot
poke 55,(addr) poke 56(addr) to point to your own asm lang subroutine
when outputting a char in DOS 3.3. Keep it up!
                                                        -John Hale
Long Live the Apple ][! May all Macs (and Steve Jobs) Burn in Hell!

greg@hoss.unl.edu (Hammer T. H.) (10/29/90)

In <TmoiR2w163w@hogbbs.fidonet.org> lone@hogbbs.fidonet.org (Lone Wolf) writes:

>After Xdraw: peek(234)=0 if started over non-black hires dot

Hmm, I seem to remember peek(234) giving the number of resulting on
pixels from drawing a shape table, either DRAW or XDRAW (though the
latter is the only one that varies).  Useful when you need to detect
collisions with other things on the screen.

>                                                        -John Hale
>Long Live the Apple ][! May all Macs (and Steve Jobs) Burn in Hell!
--
     __  _____________  __
     \ \_\ \__   __/ /_/ /  "Is that really you, or is that a spacesuit and
      \greg@hoss.unl.edu/   you're inside somewhere, maybe just your brain in a
       \_\ \_\|_|/_/ /_/    little jar..." -- Stephanie Speck, _Short Circuit_

ri09+@andrew.cmu.edu (Robert W. Igo) (10/30/90)

Forgive me if you already know this, but the Big Tip Book by the Beagle
Brothers has all kinds of nice addresses and built-in subroutines for
the Apple //'s up to the //c.  

"Ad hoc, ad loc and quid pro quo;
So little time;
So much to know."-- Jeremy from The Yellow Submarine

--BOB, or a reasonable facsimile thereof.....