joystickandcursorkeys / basic64-js Goto Github PK
View Code? Open in Web Editor NEWCommodore 64 Basic Emulator
License: GNU General Public License v3.0
Commodore 64 Basic Emulator
License: GNU General Public License v3.0
Start using this.Exception
to normalize basic errors, and detailed errors.
FOR on 60, does not increase T
4 goto 60 basiccommands.js:61:17
5 print "�" basiccommands.js:61:17
6 for t=0to255:poke1024+t,t:next basiccommands.js:61:17
10 poke 53272,12 basiccommands.js:61:17
15 poke 1,0 basiccommands.js:61:17
20 for t=0 to 2047 basiccommands.js:61:17
30 poke 12288+t,peek(53248+t) basiccommands.js:61:17
40 next basiccommands.js:61:17
50 poke 1,255 basiccommands.js:61:17
60 for t=0to7: read a: poke 12288+t,a basiccommands.js:61:17
61 print t basiccommands.js:61:17
62 next basiccommands.js:61:17
100 data 170,85,170,85,170,85,170,85
The issue dissapears if line 60 is split up into the "for" part and the "after the for" part.
like
60 for t=0to7
61 read a: poke 12288+t,a
(and move 61 to 62 and 62 to 63)
Example:
40 if t<1000 then goto 20
expected operator or 'eq/=', not comp < at line 40
Import / Export
State save
Disk management (multiple virtual disks?)
Save screen shot
Make shareable link
?1 does not work, but ? 1 does work.
Space is mandatory.
PRINT1 works on C64, but not in basic64
"print:print"
creates an exception.
while "print", works ok
PRINT1 does
Syntax error
When used inside a program
SPC(n) is a parameter to PRINT (just like ";")
SPC usually does not work standalone in commodore basic.
Add TAB = menu
Add 1-8 instead of F1-F8
Add CTRL-Backspace is runstop/restore
In commodore basic.
reada and read a & printa and print a are equivalent commands.
print a, without defining a, returns "undefined"
Right now they are passed as below.
Array [ {…} ]
0: Object { type: "value", value: 1 }
"type=value" is not enough.
Is needed for parsing commands like
poke1
printa
readb
-make commands class "queryable".
-only for statements, functions are simpler, they end with a "("
Should stop program but does not.
list 10
Only line 10
list -100
All lines up to 100 (inclusive)
list 10-20
All lines from 10 to 20 (inclusive)
list 20-
All lines from 20 and up (inclusive)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.