From 6fb8412aab223390ec375e9e7be2e3af5857427c Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sat, 29 May 2021 12:08:29 -0700 Subject: [PATCH] Document PEEK/POKE shims using negative integers --- reference.html | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/reference.html b/reference.html index 2f5d023..6572442 100644 --- a/reference.html +++ b/reference.html @@ -200,16 +200,16 @@ can be literals (unquoted strings), strings, or numbers
  • POKE 37,n — Text cursor y
  • POKE 216,n — ONERR flag (n < 128 disables ONERR handler)
  • POKE 230,n — Hi-Res plotting page (32 = page 1, 64 = page 2) -
  • POKE 49168,0 — clear keyboard strobe -
  • POKE 49200,0 — toggle speaker (no-op) -
  • POKE 49232,0 — graphics mode -
  • POKE 49233,0 — text mode -
  • POKE 49234,0 — full graphics mode -
  • POKE 49235,0 — mixed text/graphics mode -
  • POKE 49236,0 — display page 1 -
  • POKE 49237,0 — display page 2 -
  • POKE 49238,0 — lores graphics mode -
  • POKE 49239,0 — hires graphics mode +
  • POKE 49168,0 or POKE -16368,0 — clear keyboard strobe +
  • POKE 49200,0 or POKE -16336,0 — toggle speaker (no-op) +
  • POKE 49232,0 or POKE -16304,0 — graphics mode +
  • POKE 49233,0 or POKE -16303,0 — text mode +
  • POKE 49234,0 or POKE -16302,0 — full graphics mode +
  • POKE 49235,0 or POKE -16301,0 — mixed text/graphics mode +
  • POKE 49236,0 or POKE -16300,0 — display page 1 +
  • POKE 49237,0 or POKE -16299,0 — display page 2 +
  • POKE 49238,0 or POKE -16298,0 — lores graphics mode +
  • POKE 49239,0 or POKE -16297,0 — hires graphics mode
    CALL aexpr
    Call native routine @@ -302,21 +302,21 @@ can be literals (unquoted strings), strings, or numbers
  • PEEK(78) & PEEK(79) — Random-Number Field
  • PEEK(222) — Last error code
  • PEEK(230) — Hi-Res plotting page (32 = page 1, 64 = page 2) -
  • PEEK(49152) — Read Keyboard -
  • PEEK(49168) — Clear Keyboard strobe +
  • PEEK(49152) or PEEK(-16384) — Read Keyboard +
  • PEEK(49168) or PEEK(-16368) — Clear Keyboard strobe -
  • PEEK(49178) — See if text mode (> 127) or graphics mode (< 128) -
  • PEEK(49179) — See if mixed mode (> 127) or full mode (< 128) -
  • PEEK(49180) — See if page2 (> 127) or page1 (< 128) -
  • PEEK(49181) — See if hires mode (> 127) or lores mode (< 128) -
  • PEEK(49182) — See if mousetext mode (> 127) -
  • PEEK(49183) — See if 80-column mode (> 127) +
  • PEEK(49178) or PEEK(-16358) — See if text mode (> 127) or graphics mode (< 128) +
  • PEEK(49179) or PEEK(-16357) — See if mixed mode (> 127) or full mode (< 128) +
  • PEEK(49180) or PEEK(-16356) — See if page2 (> 127) or page1 (< 128) +
  • PEEK(49181) or PEEK(-16355) — See if hires mode (> 127) or lores mode (< 128) +
  • PEEK(49182) or PEEK(-16354) — See if mousetext mode (> 127) +
  • PEEK(49183) or PEEK(-16353) — See if 80-column mode (> 127) -
  • PEEK(49200) — Click Speaker (no-op) -
  • PEEK(49248) — Read Paddle Button #3 — Use the PageDown key -
  • PEEK(49249) — Read Paddle Button #0 — Use the Home key -
  • PEEK(49250) — Read Paddle Button #1 — Use the End key -
  • PEEK(49251) — Read Paddle Button #2 — Use the PageUp or Shift key +
  • PEEK(49200) or PEEK(-16336) — Click Speaker (no-op) +
  • PEEK(49248) or PEEK(-16288) — Read Paddle Button #3 — Use the PageDown key +
  • PEEK(49249) or PEEK(-16287) — Read Paddle Button #0 — Use the Home key +
  • PEEK(49250) or PEEK(-16286) — Read Paddle Button #1 — Use the End key +
  • PEEK(49251) or PEEK(-16285) — Read Paddle Button #2 — Use the PageUp or Shift key @@ -458,7 +458,7 @@ otherwise the Home and End keys respectively.

    Since the Tab 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 GET (blocking) or PEEK(49152) (non-blocking): +using GET (blocking) or PEEK(49152) or PEEK(-16384) (non-blocking):