mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2024-12-21 16:30:19 +00:00
Document PEEK/POKE shims using negative integers
This commit is contained in:
parent
b0b2299cfb
commit
6fb8412aab
@ -200,16 +200,16 @@ can be literals (unquoted strings), strings, or numbers
|
||||
<li><code>POKE 37,<var>n</var></code> — Text cursor y
|
||||
<li><code>POKE 216,<var>n</var></code> — ONERR flag (<var>n</var> < 128 disables ONERR handler)
|
||||
<li><code>POKE 230,<var>n</var></code> — Hi-Res plotting page (32 = page 1, 64 = page 2)
|
||||
<li><code>POKE 49168,0</code> — clear keyboard strobe
|
||||
<li><code>POKE 49200,0</code> — toggle speaker (no-op)
|
||||
<li><code>POKE 49232,0</code> — graphics mode
|
||||
<li><code>POKE 49233,0</code> — text mode
|
||||
<li><code>POKE 49234,0</code> — full graphics mode
|
||||
<li><code>POKE 49235,0</code> — mixed text/graphics mode
|
||||
<li><code>POKE 49236,0</code> — display page 1
|
||||
<li><code>POKE 49237,0</code> — display page 2
|
||||
<li><code>POKE 49238,0</code> — lores graphics mode
|
||||
<li><code>POKE 49239,0</code> — hires graphics mode
|
||||
<li><code>POKE 49168,0</code> or <code>POKE -16368,0</code> — clear keyboard strobe
|
||||
<li><code>POKE 49200,0</code> or <code>POKE -16336,0</code> — toggle speaker (no-op)
|
||||
<li><code>POKE 49232,0</code> or <code>POKE -16304,0</code> — graphics mode
|
||||
<li><code>POKE 49233,0</code> or <code>POKE -16303,0</code> — text mode
|
||||
<li><code>POKE 49234,0</code> or <code>POKE -16302,0</code> — full graphics mode
|
||||
<li><code>POKE 49235,0</code> or <code>POKE -16301,0</code> — mixed text/graphics mode
|
||||
<li><code>POKE 49236,0</code> or <code>POKE -16300,0</code> — display page 1
|
||||
<li><code>POKE 49237,0</code> or <code>POKE -16299,0</code> — display page 2
|
||||
<li><code>POKE 49238,0</code> or <code>POKE -16298,0</code> — lores graphics mode
|
||||
<li><code>POKE 49239,0</code> or <code>POKE -16297,0</code> — hires graphics mode
|
||||
</ul>
|
||||
|
||||
<dt>CALL <var>aexpr</var><dd>Call native routine
|
||||
@ -302,21 +302,21 @@ can be literals (unquoted strings), strings, or numbers
|
||||
<li><code>PEEK(78)</code> & <code>PEEK(79)</code> — Random-Number Field
|
||||
<li><code>PEEK(222)</code> — Last error code
|
||||
<li><code>PEEK(230)</code> — Hi-Res plotting page (32 = page 1, 64 = page 2)
|
||||
<li><code>PEEK(49152)</code> — Read Keyboard
|
||||
<li><code>PEEK(49168)</code> — Clear Keyboard strobe
|
||||
<li><code>PEEK(49152)</code> or <code>PEEK(-16384)</code> — Read Keyboard
|
||||
<li><code>PEEK(49168)</code> or <code>PEEK(-16368)</code> — Clear Keyboard strobe
|
||||
|
||||
<li><code>PEEK(49178)</code> — See if text mode (> 127) or graphics mode (< 128)
|
||||
<li><code>PEEK(49179)</code> — See if mixed mode (> 127) or full mode (< 128)
|
||||
<li><code>PEEK(49180)</code> — See if page2 (> 127) or page1 (< 128)
|
||||
<li><code>PEEK(49181)</code> — See if hires mode (> 127) or lores mode (< 128)
|
||||
<li><code>PEEK(49182)</code> — See if mousetext mode (> 127)
|
||||
<li><code>PEEK(49183)</code> — See if 80-column mode (> 127)
|
||||
<li><code>PEEK(49178)</code> or <code>PEEK(-16358)</code> — See if text mode (> 127) or graphics mode (< 128)
|
||||
<li><code>PEEK(49179)</code> or <code>PEEK(-16357)</code> — See if mixed mode (> 127) or full mode (< 128)
|
||||
<li><code>PEEK(49180)</code> or <code>PEEK(-16356)</code> — See if page2 (> 127) or page1 (< 128)
|
||||
<li><code>PEEK(49181)</code> or <code>PEEK(-16355)</code> — See if hires mode (> 127) or lores mode (< 128)
|
||||
<li><code>PEEK(49182)</code> or <code>PEEK(-16354)</code> — See if mousetext mode (> 127)
|
||||
<li><code>PEEK(49183)</code> or <code>PEEK(-16353)</code> — See if 80-column mode (> 127)
|
||||
|
||||
<li><code>PEEK(49200)</code> — Click Speaker (no-op)
|
||||
<li><code>PEEK(49248)</code> — Read Paddle Button #3 — <em>Use the PageDown key</em>
|
||||
<li><code>PEEK(49249)</code> — Read Paddle Button #0 — <em>Use the Home key</em>
|
||||
<li><code>PEEK(49250)</code> — Read Paddle Button #1 — <em>Use the End key</em>
|
||||
<li><code>PEEK(49251)</code> — Read Paddle Button #2 — <em>Use the PageUp or Shift key</em>
|
||||
<li><code>PEEK(49200)</code> or <code>PEEK(-16336)</code> — Click Speaker (no-op)
|
||||
<li><code>PEEK(49248)</code> or <code>PEEK(-16288)</code> — Read Paddle Button #3 — <em>Use the PageDown key</em>
|
||||
<li><code>PEEK(49249)</code> or <code>PEEK(-16287)</code> — Read Paddle Button #0 — <em>Use the Home key</em>
|
||||
<li><code>PEEK(49250)</code> or <code>PEEK(-16286)</code> — Read Paddle Button #1 — <em>Use the End key</em>
|
||||
<li><code>PEEK(49251)</code> or <code>PEEK(-16285)</code> — Read Paddle Button #2 — <em>Use the PageUp or Shift key</em>
|
||||
</ul>
|
||||
</dl>
|
||||
</section>
|
||||
@ -458,7 +458,7 @@ otherwise the <em>Home</em> and <em>End</em> keys respectively.
|
||||
<p>
|
||||
Since the <em>Tab</em> key is necessary for keyboard access to browser functions and
|
||||
the rest of the web page, it is not available. Otherwise, special keys can be detected
|
||||
using <code>GET</code> (blocking) or <code>PEEK(49152)</code> (non-blocking):
|
||||
using <code>GET</code> (blocking) or <code>PEEK(49152)</code> or <code>PEEK(-16384)</code> (non-blocking):
|
||||
</p>
|
||||
|
||||
<table style="margin-left: 3em;">
|
||||
|
Loading…
Reference in New Issue
Block a user