This comes terribly close to art….

# on November 30th 2005 at 8:40 am in Arts & Poetry,Ideas & Concepts,Software

OK the following is sick — I know, and you might begin to wonder why I don’t spend my time doing more useful stuff. But then I’d have to respond with this quote I read in the 2600 issue 22:3, in an article by mirrorshades:

There have been countless nights that I have stayed up past 3:00 am working on something that has no inherent value other than the knowledge I gain from doing it. What I do goes beyond interest, beyond hobby, beyond obsession. Can you say the same about anything, anything you do? If you can’t, then you have gone through your life missing something.

Anyways, back on-topic, I was tinkering away with this thing here when I had the idea for the following: a simple BASIC implementation in Javascript.

And lo and behold — here it is. And if I say so myself, this comes terribly close to art.

The commands currently implemented are:

    CLS, COLOUR, RESET, LIST, RUN, GOTO, END, PRINT, IF..ELSE, LET, LOAD, SAVE

Special commands:

    GODOS
    Go into GW-BASIC emulation mode (only the looks change, though).

    GO64
    Go back to C64 emulation mode.

And, of course, you can type HELP, although its best displayed in the DOS mode.

NOTE This thing has only been tested on Firefox 1.5, running on Linux. It is known not to work with Firefox on XP, or OS X for that matter. If you have any bugfixes to the code, please post them below.



Click here to start my emulator with a Commodore 64-look.
Click here to start it with a DOS-look.
 

(Note that both of them want to open in a popup-window, so you might want to disable your popup blocker for this site.)

Changes
20051130
- Virtual Filesystem implemented — supporting the LOAD and SAVE routines. LOAD * gives a file-listing.
- Virtual Filesystem can load remote files (from the site the script is hosted on only). LOAD WEB:* gives a file-listing.
- COLOUR FG,BG implemented, where FG, BG are foreground and background respectively. This replaces the POKE-command.
- IF now supports ELSE.
 
Arts, Javascript, BASIC, Ajax, NG-BASIC

- Navaho Gunleg
comment on this article

Notice: All comments are moderated. Your comment will appear once approved.

© 2005-2012. All remarks and opinions on this site are the intellectual property of Navaho Gunleg, unless specified otherwise. If you find anything offensive or otherwise insulting, just close the damn window; there are far more serious issues in this world to get upset about.