Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 547 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 547 Bytes

js-y86

js-y86 is an assembler and simulator written in Javascript.

To use on a webpage, include y86.js first then the rest of the .js files. ASSEMBLE takes a string of y86 assembly code and produces another string formatted as a .yo file. This string can be passed to toByteArray() to create a byte array which can be passed to EXECUTE to have it run.

On node.js, to assemble a .ys file, run:

node y86.js -a source.ys

To execute, run:

node y86.js -e object.yo

License

This project is licensed under the terms of the MIT license.