View Full Version : Your Basic Basic Thread.
Jul 16, 2003, 08:53 PM
00 PRINT "I just got an old Apple //c and have been playing around with Basic and wondering if anyone remebers Basic and how fun it is to play with."
10 input a$
Jul 17, 2003, 01:16 PM
Oh yea, I remember.
What do you want to know?
If you have a game that displays in high resolution play it.
At some point press, hard escape or reset.
During the boot immediately press control reset to stop it.
You will have restored the last high-resolution image.
Call-3110 will also restore the last high-resolution image, but it will have the text window below it.
Another tip, if you end up in the machine code, *] prompt, by using an improper call, you can often escape back into the dos, prodos, or general command prompt by typing 3d0g. That’s three d zero g, or what I remember as “3 dog”.
Something else, if want a joystick, you can build your own. A simple restive joystick element, a serial cable, and two buttons are all you need. As a side note, the joystick buttons map as Open Apple and Closed Apple.
Oh, and Brickout is hidden on the Prodos disks.
Jul 17, 2003, 01:48 PM
I didn't completely understand the thread title until now.
Coffee, I need coffee.
Some basic Beginners All-purpose Symbolic Instruction Code
Input n$, for a string
Get a$, for a single charcter
If a = "y" then goto nnnn
is the same as
If a = char(89) then goto nnnn
skip line numbers in sets of 10 or 100
the key combination <control G> = bell = char(7)
Short hand for print " is just ?"
remember rem statements
Jul 17, 2003, 02:39 PM
Oh some other stuff.
Dependent on what version of Dos you loaded, your basic comands and the amount of memory basic can use.
The internal memory also limits how many charcters and line numbers you can use. Most people wont type a program larger than the computer can handle.
Poor man's cut and paste.
10 print "Wow I would like to see this twice."
then press <esc> and use the arrow keys to go to the begenning of line 10. Press <esc> again
then type a <2> over the 1 and use -> arrow key to get you to the end of the line. Press <return>
Then type RUN or LIST
By the way Input A and Input A$ are simular. 'A' by its self will be a numeric responce, 'A$' is any keyboard charcter except Open-apple, control, shift, closed apple, and reset.
Jul 18, 2003, 12:32 AM
I remember about BASIC far too well. My first 8-bit machine had a BASIC interpreter like all the other machines of the time. I couldn't wait until I got an assembler because speed was an issue at 1.79 MHz. :D Of course, that IIc is operating at 2 MHz, so there's no speed issue.
Then, last summer, I was taking a class on algorithms. The instructor of the class taught it with QuickBASIC on x86 machines. It was an easy A because I remembered everything back then, but it was easy to see with the beginners how many people could make mistakes since BASIC is a lazy language.
Just remember not to goto to create a never-ending loop. :D
Jul 18, 2003, 08:50 PM
Look for books on Apple MLX at flea markes. They usualt came with disks that contained the compilers, sets of simple utilities, and sample programs.
Same for books on Basic. There is also the web.
Jul 18, 2003, 10:15 PM
Anyone remember the Beagle Bros ads with their two liners that make the Apple IIe do the most crazy things? I loved their software.
Jul 21, 2003, 12:34 PM
I loved the Beagle Bros.
I saw a book and animation that refrenced their brillant use of single small animations to make a picture come alive, like the fly on thier logo.
I saw this book. (http://www.amazon.com/exec/obidos/ASIN/0030711738/inktomi-bkasin-20/002-3830733-4642400) It might help you. I have neve had problems with Amazon's auction site. Once a vender was slow in shipping a product and they got on his a**.
Jul 26, 2003, 01:02 AM
I use BASIC on my IIe a lot. A few days ago I finished my Temperture Conversions program. I have it recoreded on a .WAV file if anyone wants it. It draws a thermometer when you start it... Took me a few hours...
I learned a quick trick for doing the edges that are straght... Define something as being the starting point and ending point...
5 color = x
10 FOR V = 1 to 32
20 plot v,1
25 NEXT V
that would draw a straight line down the edge of your screen
Jul 26, 2003, 01:10 AM
also... i found if youre ever at a * prompt thingey... if you type
the machine will just stop and you have to control-reset to get back... strange..
typing microsoft does the same
typing big blue, or ibm... inverts the text and changes the keyboard layout... :p
this might be a feature or something... or some command, but it think it's an easter egg.
Jul 28, 2003, 11:28 AM
No Easter egg.
At the ML prompt (*) I inverts the screen.
N will make it normal text again.
F should flash the text, but in (*) mode it will only show up as inverted.
L will list the code from the last hex entry and for the next 16. (I think it was 16)
B and M are also commands, but I can't remember what they do.
I don't think that Wal-Mart and Microsoft are Easter eggs.
What you’re doing is chaining a set of tools or macros.
Try this: Type "
Ill " It should inverse the screen and print two consecutive lists.
Jul 28, 2003, 11:52 AM
the command "Flash" can be used to make all text that appears on screen after its entered to flash. "Invert" works the same way, with inverting the text. "Normal" will make the text normal again. These commands can be used inside a program as well.
My favorite command: peek -136336 (i beleive thats the number, it has been a while
it makes a click! put it in a program, and goto the command repeatedly to make a buzzing tone! stick some POKEs in there for different tones!
Jul 28, 2003, 02:00 PM
Aha yes. I was just talking about the ML prompt.
Flash will flash on the later // computers, but not in 80col mode.
I'm visiting my parents next week.
I will try to dig up some of my old programs.
I will be able to salvage some code and comands frome there.