25
votes
Accepted
How are the randomizer values on the Apple II maintained?
It's incremented while waiting for keyboard input.
The 16-bit random seed (RNDL and RNDH) is updated by the KEYIN routine as it spins while waiting for a key press. KEYIN is used by the Monitor ROM's ...
22
votes
Accepted
How did the Apple IIe convert to upper case?
This is actually done as part of the Applesoft tokenizer. Basically when you type a line of code into the Applesoft interpreter, the very first thing that happens is that the line is tokenized -- it ...
11
votes
Accepted
Help understanding TAIPAN source code for the Apple II
You don't need to follow the listing far to see the problem.
Line 10 ends with GOTO 10000, and 10000 starts with CALL 6147, which is $1803, smack in the middle of the Applesoft source code, which ...
11
votes
How did the Apple IIe convert to upper case?
This post has a brief history of Applesoft. You'll note it was modified in 1984 to allow entry of lower-case keywords.
If you look at the PARSE routine (at $d56c) in the ][+ version of Applesoft in ...
8
votes
How did the Apple IIe convert to upper case?
[Oioioi, this is one of the darkest corner of the II line :))]
How did the Apple IIe convert to upper case?
The Apple IIe did not convert at all. That's why the IIe Programmers Reference mentions:
.....
7
votes
Accepted
Did any AppleSoft language enhancements patch CHRGOT?
Yes, programmers occasionally patched CHRGOT. It wasn't a common tactic because there were better ways to add user-defined commands and functions, but you might choose to patch CHRGOT if you wanted ...
6
votes
Help understanding TAIPAN source code for the Apple II
You might have more luck with the BASIC program from this disk: Taipan Hayden Book Version, which was apparently keyed from the Taipan: A Historical Adventure For The Apple Computer book.
It at least ...
6
votes
Examples of floating-point numbers that don’t round-trip losslessly through text conversion in Microsoft BASIC
Once you know the underlying implementation, it’s not too hard to come up with numbers that neither correctly parse, nor losslessly print back. All examples below use Commodore 64 BASIC V2, which is ...
5
votes
Extensions to Apple BASIC with ampersands
A little late to the party but I remember doing this back in the early 80's, it was definitely the & "extension" used in Applesoft. Like Patrick mentioned I also remember combining ...
3
votes
Accepted
Why did ProDOS trace Applesoft?
IIRC using trace serves two purposes, both related to stability and performance:
Improving command detection
With TRACE enabled BASIC prints the line number `prefixed by a '#' character and suffixed ...
3
votes
Motivation for DOS 3.3 using I/O hooks rather than ampersand-hook
As usual History and compatibility.
The Apple II was originally only released with Integer BASIC in ROM. Applesoft BASIC had to be loaded to RAM - not to mention that it was far from what we know, for ...
2
votes
What books did schools use to teach BASIC?
"101 BASIC COMPUTER GAMES" also known as "BASIC COMPUTER GAMES" (the "101" in the title was not clear on some version of the cover art).
https://en.wikipedia.org/wiki/...
1
vote
Examples of floating-point numbers that don’t round-trip losslessly through text conversion in Microsoft BASIC
I'd like to address this bit:
Why not parse the number once, when the user enters the line, and
store the number in binary?
As you noted, such conversions can result in "oddities" (there's ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
applesoft-basic × 36apple-ii × 27
programming × 7
basic × 5
microsoft-basic × 5
graphics × 3
apple-dos × 2
integer-basic × 2
hardware × 1
commodore-64 × 1
assembly × 1
emulation × 1
memory × 1
6502 × 1
rom × 1
hard-disk × 1
memory-layout × 1
apple × 1
compilers × 1
floating-point × 1
apple-iigs × 1
vic-20 × 1
joystick × 1
text × 1
books × 1