[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Applesoft BASIC coding
Lyrical Nanoha wrote:
On Fri, 8 Sep 2006, Miles Attacca wrote:
My second problem would actually negate the first (although that still
might be handy to know). I've read in an FAQ online that it's possible
to boost the lo-res mode from 40x40 to 40x48 (cutting out the last four
lines of text), but the FAQ concerned doesn't detail this. I could
always jump into full hi-res mode, but having 16 colors is a tad more
exciting. Any code that can accomplish this?
poke -16302,23
It's conventional to POKE 0, since only the address matters,
or even X=PEEK(49234), which is the same as X=PEEK(-16302).
Both addresses are decimal representations of $C052 (nomix),
but since Applesoft allows positive numbers greater than
32767, it's more straightforward to use positive numbers.
And as John pointed out, its companion switch is "mix" at
$C053 (or 49235), which is set by default in GR mode.
BTW, 49235 = 12*4096 + 0*256 + 5*16 + 3.
C 0 5 3
All of the softswitches are in the $C000 to $C0FF I/O space,
which is documented in the Apple II Reference Manual as well
as in numerous online references.
-michael
New, faster SUDOKU v2.0 solver for Apple II's!
Home page: http://members.aol.com/MJMahon/
"The wastebasket is our most important design
tool--and it's seriously underused."