Is there a limit on the size of a value that can be handled by DIV?
Example:
tempsecs=999999 --- no problem
days=tempsecs DIV 86400 --- overflows if tempsecs>=32768
Another oddity I discovered:
If I create a REPeat loop thus:
100 Frame=0 : Keypress=0
110 REPEAT loop
120 a$=INKEY$
130 Frame=Frame+1
140 IF a$<>"" THEN Keypress=Keypress+1
150 AT 0,0 : PRINT Frame, Keypress
160 END REPeat loop
...I reasonably expect that when a key is pressed, the Keypress value
will increase in step with the Frame value (every time the loop
repeats, a keypress is detected) but no. I can type run, and hold down
the enter key, and Frame will increment 55 times for each detected
Keypress. It seems INKEY$ is limited to approx 15 keyboard scans/sec.
On my original QL, with or without GC, they increment together, 1:1.
Q-EmuLator 1.1, JS ROM
QL, JSU ROM
*grins*
Now, tell me what an idiot I am
![Wink ;)](./images/smilies/icon_e_wink.gif)