[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two ways to torture a comp teacher
In article <1994Aug1.010743.30284@cobra.uni.edu> fishern3485@cobra.uni.edu
writes:
>[...]
>There's also a very particular range of (large) line numbers that if
>you try to list them, will crash basic. Pity I can't recall what
>they are.... (experament! make an exe file to list every 256'th line)
>[...]
There are many such ranges of numbers...the bug is triggered whenever
Applesoft encounters a line number that produces a high byte of $AB (=171,
the GOTO token) partway through the evaluation, and there are still digits
left to process.
The first deadly range runs from 437760 (=171*2560) to 440319 (=172*2560-1).
My personal favoriate number from this range is 437777.
(On the IIGS, my favorite nasty command is POKE 49193,0. It disables direct
access to bank $E1. Since most of the firmware depends on stuff in bank $E1,
everything just sort of falls apart...)
- Neil Parker