Commit Graph

32 Commits

Author SHA1 Message Date
Joshua Bell d7ebf753db Thunderclock: Tweak DOS/BASIC handling of colons
This is ugly, but you should see what real BASIC/DOS do under the hood.
2024-02-11 15:16:39 -08:00
Joshua Bell cc5806e482 Fix ESLint warnings (and one actual bug) 2023-01-04 19:34:48 -08:00
Joshua Bell 7a8c663315 Further fixes for LEFT$/MID$/RIGHT$ and tests
* MID$ allows 0 for the second (length) argument
* Add tests for error cases.
2022-12-05 18:46:44 -08:00
Colin Leroy-Mira 3d37fc357a
Fix bug in LEFT$ MID$ and RIGHT$ (#45)
"The message ?ILLEGAL QUANTITY ERROR is displayed
 if \aexpr\<1 or \aexpr\>255.

Co-authored-by: Colin Leroy-Mira <colin.leroy-mira@sigfox.com>
2022-12-05 18:46:20 -08:00
Joshua Bell b0b2299cfb Fix initialization 2021-03-31 20:45:46 -07:00
Joshua Bell 5fc7c66b55 Make TEXT set HTAB 1 : VTAB 24 2021-03-31 20:13:14 -07:00
Joshua Bell 2495381bcb Fix parsing of unterminated strings in DATA statements
Fixes #35
2020-06-24 21:42:10 -07:00
Joshua Bell 697ccd63e9 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.
2020-06-24 21:19:49 -07:00
Joshua Bell 17b0baf7e5 Add softswitch reads for display modes
Fixes #32

The RdAltChar (mousetext) is not accurate. Under Virtual II it seems
to always return true if the 80 column firmware is active, regardless
of which character set is active.
2020-05-29 21:55:32 -07:00
Joshua Bell 44e308f030 GR adjusts text window. Fixes #33
GR now adjusts the text window to the bottom four lines of the
display. A unit test is added to verify.
2020-05-29 20:57:57 -07:00
Joshua Bell dca4875d3d TAB()/SPC() should have implicit trailing ;
Also add docs.

Fixes #34
2020-05-29 20:41:22 -07:00
Joshua Bell af0a7eb886 Ensure COLOR= gives Illegal Quantity Error for > 255. Fixes #30 2020-05-03 21:04:36 -07:00
Joshua Bell 92df9eb56d Missing semicolons 2018-08-01 18:43:57 -07:00
Joshua Bell 05b7bbca87 Animate paper showing/hiding; add a few more compat shims; fix docs for CALL 54915 2017-08-15 10:10:30 -07:00
Sigurður Sveinn Halldórsson d53e58db23 Fix ON GOTO and ON GOSUB - Should resolve #11 (#12)
* Fix ON GOTO and ON GOSUB - Should resolve #11

* Fix ON GOTO and ON GOSUB better - Should handle edge cases

* Fix ON GOTO and ON GOSUB - Added unit tests

* Fix ON GOTO and ON GOSUB - Fixed unit tests
2016-07-25 19:14:33 -07:00
Joshua Bell a8f92fad0a Remove command line support. Depend on CDN for polyfills 2016-03-08 20:31:24 -08:00
Joshua Bell 20f302339f Fix ONERR GOTO handling - should skip to next line. Resolves #7 2015-12-06 15:47:15 -08:00
Joshua Bell f55aa51023 Make line numbers relevant; resolves issue #5 2014-12-28 20:55:23 -07:00
Joshua Bell cef9261ca2 Fold some long lines 2014-12-28 19:45:40 -07:00
Joshua Bell 7a01309073 Implement CALL-3288; resolves #8 2014-12-27 17:51:21 -07:00
Joshua Bell b1fb46a5fa Expose more TTY CALL shims 2014-11-08 16:36:31 -08:00
Joshua Bell 308c2d0baf Linting 2013-12-26 14:38:15 -08:00
Joshua Bell 98a8ba581a Remove copyright/license from individual JS files 2013-08-21 23:07:46 -07:00
Joshua Bell c96d891dc3 Parse error cleanup. Don't tokenize digraphs. 2013-08-17 16:00:23 -07:00
Joshua Bell e44c2069e8 Drop underscores in named function expressions 2013-08-17 15:30:46 -07:00
Joshua Bell fe3dddb32b Move cscript/rhino console support to separate file 2013-08-16 21:00:47 -07:00
Joshua Bell 66de8344ff Drop dependency on external harmony polyfill 2013-08-16 20:12:32 -07:00
Joshua Bell 90e42a5773 Document hex literals 2013-08-16 19:58:09 -07:00
Joshua Bell e2891cfcef Simplify tokenizers; remove jslint cruft 2013-08-16 19:53:09 -07:00
Joshua Bell 73802c7eb7 Use RegExp literals where possible 2013-08-16 18:38:29 -07:00
Joshua Bell 783b85a8db Added keyword table to support language localization 2012-06-20 11:54:32 -04:00
Joshua Bell 9aa91a4410 Snapshot 2012-02-08 22:13:44 -05:00