Giter VIP home page Giter VIP logo

6502js's Introduction

FORSH Interpreter

Screenshot of FORSH running

(My take on writing a FORTH interpreter): to run it, copy assembly code from mos.txt into the textbox, hit Assemble, then Run

Because of the way input is handled in 6502js, some of the input controls for the text console are a little janky:

  • \d to backspace:
  • \c to clear the line
  • \e for enter
  • \h for help

The shell is a FORTH interpreter written by me. Try entering the following commands (use \e instead of enter)

  • 1 2 push some numbers onto the stack
  • .S show the stack contents
  • 3 * + . multiply by 3, add, then pop and print the top of stack

6502js

I built this on top of the following 6502 simulator I found: https://skilldrick.github.io/easy6502/ (which this repo is a fork of). Most of the code I wrote is in mos.txt and dict.txt, but I did end up extending the simulator/assembler with a few features that made debugging my project easier:

  • define statements
  • arithmetic (ie label+2)
  • Added label and arithmetic parsing to the debug memory monitor, disassembler, PC display for easy of debugging
  • Doubled the size of the simulated screen to be able to write a somewhat usable amount of text

6502js's People

Contributors

biged avatar jvorob avatar skilldrick avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.