frankhart2018 / mockasm-runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mock ASM Runtime

⛔ [DEPRECATED] in favour of https://github.com/yamini-vm/yamini.

A simple assembler for a mock instruction set along with a runtime to run the resulting code.

Installation

user@programmer~:$ pip install git+https://github.com/frankhart2018/mockasm-runtime.git

Note:- I do not plan in pushing this to pypi anytime soon (or maybe ever).

Usage

user@programmer~:$ mockasm --file_path test.s

Debugging

Generate tokens

user@programmer~:$ mockasm --file_path test.s --tokens

Generate opcodes

user@programmer~:$ mockasm --file_path test.s --opcodes

Generate both tokens and opcodes

user@programmer~:$ mockasm --file_path test.s --tokens --opcodes

Note:- The order in which you specify the flags (--tokens, --opcodes) does not matter.

About


Languages

Language:Python 89.8%Language:JavaScript 7.3%Language:HTML 1.7%Language:CSS 1.2%