Skip to content

A nonprofessional hobbyist attempting to write a compiler in Javascript for the NMOS 6502/6510 processor and the Commodore 64.

License

Notifications You must be signed in to change notification settings

puregorill/JSC64

Repository files navigation

JSC64


JSC64 (read: Javascript Compiler for the (Commodore) 64)


For more information read the Wiki on github.

A nonprofessional hobbyist attempting to write a compiler in Javascript for the NMOS 6502/6510 processor and the Commodore 64.

I am not a professional coder in any way and to be honest I don't really know what I am doing.

Everything here is for personal use and educational purposes only. Everything is absolutely without warranty.

If something does not work or causes damage, I take no responsibility in any way (see LICENSE).


This project fulfills certain goals for me personally:

  1. To take first steps in javascript (I just started learning javascript a week before starting this toy compiler project)
  2. To develop a small toy compiler
  3. Output of a readable assembler listing to learn from. Possibly the most important goal in mind.
  4. No .exe files and unreadable source, just a browser (and some runtime files that are also readable) and you are ready to go. Possibly the most important goal in mind (combined with 3).

I'm more of a C person, Basic person and Pascal person, so I don't have much knowledge about all the neat OOP features of Javascript and I think I'm going to program Javascript more C style and less the way JS should probably be programmed. So I am using all that stuff like procedures/functions, global variables and more nasty things.

But I have to stand by that, OOP style was never mine and I could never figure out what it was all about. Maybe it's my age, I'm from the C64 era and learned to code like that (as a hobbyist, mind you).


State of development


Early stage but evolving. Currently working on mathematical parser.

For more information, read the github wiki topic "Home".
Scroll down to "Project progress".

If you have a look at <main...js> and <main...html> (there are 2 versions of it), then it should be no issue to trace the structure of the JS program from there.

Codebase not extremely, but still a bit messed up and is certainly subject to future changes and restructuring.


One word of warning


English is not my native language, I use translation software along with my own not so bad English skills. Nevertheless, I'm afraid some wording may be strange (from time to time).

About

A nonprofessional hobbyist attempting to write a compiler in Javascript for the NMOS 6502/6510 processor and the Commodore 64.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published