mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2026-03-10 19:25:13 +00:00
Fix window text bottom - should not be changed if top changes.
The TTY module stores top/height but the Apple monitor stores top/bottom. If top changes, bottom should remain unchanged. Improve the POKE 34 shim, and add a test.
This commit is contained in:
@@ -506,7 +506,7 @@
|
||||
|
||||
|
||||
9000 PRINT : PRINT "POKE Compatibility Shims ";
|
||||
: PRINT "UNIT TESTS NOT YET IMPLEMENTED ";
|
||||
: PRINT "UNIT TESTS NOT FULLY IMPLEMENTED ";
|
||||
9001 POKE 49168,0 : POKE -16368,0 : REM Clear kbd strobe
|
||||
9002 POKE 49200,0 : POKE -16336,0 : REM Toggle speaker
|
||||
9003 POKE 49232,0 : POKE -16304,0 : REM Graphics mode
|
||||
@@ -517,6 +517,9 @@
|
||||
9008 POKE 49233,0 : POKE -16303,0 : REM Text mode
|
||||
9009 SPEED= 0 : SPEED= 255 : REM SPEED= (no-op)
|
||||
|
||||
9010 T$ = "POKE 34"
|
||||
: T = PEEK(34) : U = PEEK(35) : POKE 34,T+1 : S = (PEEK(35) = U) : GOSUB 1 : POKE 34,T : POKE 35,U
|
||||
|
||||
10000 PRINT : PRINT "Numeric Functions ";
|
||||
10001 DEF FN E(X) = ABS(X) < 0.001 : REM Within-Epsilon
|
||||
|
||||
|
||||
Reference in New Issue
Block a user