Questions tagged [applesoft-basic]

For questions related to the Applesoft BASIC interpreter and language.

Filter by
Sorted by
Tagged with
29
votes
4answers
2k views

Did the LET statement actually do anything in 8-bit Microsoft BASICs?

I know the LET statement was available in AppleSoft and other Microsoft 8-bit BASICs back in the day, but I can't think of a time where I actually used it. Frankly, I get the impression that it was ...
27
votes
2answers
3k views

Apple II: Applesoft BASIC memory management

I am trying to write an Applesoft / floating point BASIC program using high resolution graphics and some assembly language code. My BASIC program is quite large, and after running the program for a ...
26
votes
4answers
4k views

Why was it common to reference memory locations using negative numbers on some BASICs?

If you had an Apple II, it was common in BASIC to reference memory locations above the 32K point by using a negative number. For example, if you wanted to click the speaker you would PEEK/POKE -16336 ...
18
votes
2answers
1k views

Apple // screen editing

I've heard mention many times of screen editing commands on the Apple // for fixing typos in BASIC programs (and patching code in the monitor?). I did not learn these growing up, never having the ...
16
votes
3answers
1k views

What are the differences between the versions of AppleSoft BASIC?

Apple did make some changes to AppleSoft BASIC over the years between the first version on the Apple II and the last version on the Enhanced IIe and IIe card. What are the differences between the ...
12
votes
4answers
712 views

At what address do Apple II Applesoft programs get stored?

Online references disagree on whether Applesoft programs were stored at 0x801 (2049) or 0x3001 (12289). A quick test on my OpenEmulator install with an Apple II Plus definitely puts it at 0x801. ...
10
votes
4answers
2k views

What are the rules for Applesoft BASIC formatting for code?

What are the rules for Applesoft BASIC formatting for code? I've been doing some BASIC coding and noticed that: 10 input "some question?"; name$ Will be reformatted as: 10 INPUT "some question?";...
10
votes
1answer
390 views

Apple II: HPLOT crashes system. Why?

While I was writing a program on an Apple IIe, I set up access the graphics page using softswitches, and then tried to draw on it, but the system crashed so hard I had to do a Control - Open Apple - ...
10
votes
1answer
1k views

Testing/using a joystick in AppleSoft?

How does one use joysticks in a program on the Apple //? I have three different joysticks here and I would like to visualize their state (pot and button values), maybe similar to the SDL joystick ...
8
votes
1answer
957 views

Why does the Applesoft BASIC have shapes?

Why did Apple include shapes in Applesoft BASIC? There are no sprites on the Apple II, but shapes provide a simple vector drawing tool. As graphics go the shapes are kind of an odd duck, they provide ...
7
votes
2answers
576 views

Are there standalone emulators of Applesoft Basic?

My only retrocomputing desire is to program in Applesoft Basic and relive the Apple II days from the 1980's. Playing games is of no particular interest to me. I just want to use a keyboard, not a ...
7
votes
2answers
300 views

In Applesoft BASIC, does combining statements into a single line speed up execution?

In Applesoft BASIC, does combining statements into a single line speed up execution? For example, would this: 10 PRINT "HELLO WORLD" : FOR I = 1 TO 100 : PRINT I : NEXT I Run faster than this: 10 ...
6
votes
2answers
511 views

Where can I find the Applesoft line-drawing algorithm?

I’m trying to make some graphics in Processing that look just like what I’d get on an Apple //e. I think the info I seek is in the ROM disassembly but I can’t find anything by googling. I'm also ...
6
votes
2answers
292 views

How can you reset the behavior of ONERR in AppleSoft BASIC?

In an Applesoft BASIC program you can use the standard MS-BASIC ONERR statement to perform error trapping. For example: 10 ONERR GOTO 100 20 POKE 0, 400 : REM INVALID VALUE WILL CAUSE ERROR 30 END ...
6
votes
2answers
620 views

What books did schools use to teach BASIC?

What books would have been used to teach school aged kids BASIC in a classroom setting back when BASIC was in common use? 8-Bit computers commonly came with tutorials to learn BASIC, like A Touch of ...
5
votes
3answers
618 views

How to use HGR2 (or HGR) on an Apple II

I am a big fan of the TV show lost, and I was trying to make the Dharma Initiative logo. But at certain point I couldn't add new lines of code and the final part of the logo was cut off. I tried to ...
5
votes
2answers
769 views

Apple II: Applesoft variable syntax error weirdness

While typing immediate-mode commands in Apple II Applesoft / floating point BASIC, I discovered an odd situation where I will get other programming error messages before a syntax error. Why does it do ...
5
votes
1answer
378 views

1980's ROM used which exp(n) algorithm?

In 1980's ROM (Apple IIe, Commodore 64, VIC-20, ...) which algorithm is used to compute exp(x), and where do the coefficients below come from? (Chebyshev, Remez, Pade, ...) .byte $71,$34,$58,$3E,$...
4
votes
0answers
269 views

How to use IIgs enhanced graphics modes in AppleSoft BASIC with System 6?

There are many packages that let you use the enhanced graphics modes of the IIgs in AppleSoft BASIC. However most packages like Iconix do not like System 6 so they have to run off disks and not the ...
3
votes
0answers
342 views

How do Apple II BASIC compilers compare? [closed]

Programs like The Beagle Compiler allow AppleSoft BASIC or other Apple II BASIC variants to be compiled. How do the compilers compare in terms of compatibility with AppleSoft language features? Eg how ...
2
votes
1answer
238 views

Turn off Apple IIe sound

Is there a way to disable sound output on the Apple IIe from Applesoft Basic? Can't seem to find this in any of the documentation or online. Update: Found this From http://www.calormen.com/jsbasic/...
2
votes
2answers
217 views

INPUT with comma vs. semi

I certainly don't recall this at the time, but I'll ask to be sure. According to the GW-BASIC documentation, a semicolon between the INPUT prompt and the variable suppresses the question-mark prompt. ...