From 05b7bbca876d8d55c41f5d5e764a82c4cfbb04d3 Mon Sep 17 00:00:00 2001
From: Joshua Bell Compatibility Shims
-
@@ -287,22 +290,22 @@ can be literals (unquoted strings), strings, or numbers
-
POKE 32,n
- Text window left edge
- POKE 33,n
- Text window width
- POKE 34,n
- Text window top edge
- POKE 35,n
- Text window bottom
- POKE 36,n
- Text cursor x
- 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 32,n
— Text window left edge
+ POKE 33,n
— Text window width
+ POKE 34,n
— Text window top edge
+ POKE 35,n
— Text window bottom
+ POKE 36,n
— Text cursor x
+ 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
-
CALL -3288
- pop ONERR
/RESUME
entry from stack
- CALL -3100
- reveal hi-res page 1
- CALL -3086
- clear current hi-res page to black
- CALL -3082
- clear current hi-res page to current color
- CALL 54951
- clear stack (pop all FOR
/NEXT
, GOSUB
/RETURN
, and ONERR
/RESUME
entries)
- CALL -1036
- move cursor right
- CALL -1008
- move cursor left
- CALL -998
- move cursor up
- CALL -958
- clear text from cursor to bottom of window
- CALL -922
- move cursor down
- CALL -868
- clear text from cursor to end of line
+ CALL 54915
or CALL -10621
— clear stack (pop all FOR
/NEXT
, GOSUB
/RETURN
, and ONERR
/RESUME
entries)
+ CALL 62248
or CALL -3288
— pop ONERR
/RESUME
entry from stack
+ CALL 62436
or CALL -3100
— reveal hi-res page 1
+ CALL 62450
or CALL -3086
— clear current hi-res page to black
+ CALL 62454
or CALL -3082
— clear current hi-res page to current color
+ CALL 64500
or CALL -1036
— move cursor right
+ CALL 64528
or CALL -1008
— move cursor left
+ CALL 64538
or CALL -998
— move cursor up
+ CALL 64578
or CALL -958
— clear text from cursor to bottom of window
+ CALL 64614
or CALL -922
— move cursor down
+ CALL 64668
or CALL -868
— clear text from cursor to end of line
+ CALL 64780
or CALL -756
— wait for keypress
+ CALL 65152
or CALL -384
— set inverse text mode
+ CALL 65156
or CALL -380
— set normal text mode
-
PR#0
- set 40 column mode
- PR#3
- set 80 column mode
+ PR#0
— set 40 column mode
+ PR#3
— set 80 column mode
-
PEEK(32)
- Text window left edge
- PEEK(33)
- Text window width
- PEEK(34)
- Text window top edge
- PEEK(35)
- Text window bottom
- PEEK(36)
- Text cursor x
- PEEK(37)
- Text cursor y
- 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(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(32)
— Text window left edge
+ PEEK(33)
— Text window width
+ PEEK(34)
— Text window top edge
+ PEEK(35)
— Text window bottom
+ PEEK(36)
— Text cursor x
+ PEEK(37)
— Text cursor y
+ 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(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(222)
in an ONERR handler.
separator
,
remark
,
data-declaration
- - take a peek at the code if you want the gruesome details. Source lines may
+ — take a peek at the code if you want the gruesome details. Source lines may
only start with line numbers or (as an extension) separators. Special statement
parsing is done while lexing: REM
consumes anything to the next
line break, and DATA
statements yield an array of strings
@@ -588,7 +591,7 @@ function which implements the logic for walking over the array.
DEF FN
supports string and integer functions
e.g. DEF FN IN$(X$) = " " + X$
- - the return type must match the argument type, so string-to-number or number-to-string functions
+ — the return type must match the argument type, so string-to-number or number-to-string functions
can not be implemented.
==
is supported for equality comparisons, with the same meaning as "single equals" =
diff --git a/styles.css b/styles.css
index 14c48f0..6faf77d 100644
--- a/styles.css
+++ b/styles.css
@@ -9,14 +9,13 @@ h1, h2, h3, p, ul { margin-bottom: 0; margin-top: 0; }
/* "Paper" (for copying output) */
#paper {
- display: none;
margin: 0;
position: fixed;
z-index: 100;
left: 0;
right: 0;
bottom: 0;
- top: 560px;
+ height: 0;
overflow-x: hidden;
overflow-y: scroll;
font-family: Courier, Monospace;
@@ -28,10 +27,10 @@ h1, h2, h3, p, ul { margin-bottom: 0; margin-top: 0; }
padding-left: 50px;
white-space: pre;
box-shadow: inset 0 5px 10px black;
+ transition: height 0.5s ease;
}
-body.printout #paper { display: block; }
-#show_paper { display: inline-block; }
-#hide_paper { display: none; }
+body.printout #paper, #paper-spacer { height: 200px; }
+
+body:not(.printout) #hide_paper { display: none; }
body.printout #show_paper { display: none; }
-body.printout #hide_paper { display: inline-block; }