Skip to content

Instantly share code, notes, and snippets.

View darshanparajuli's full-sized avatar

Darshan Parajuli darshanparajuli

View GitHub Profile
@AnthonyLam
AnthonyLam / asm.py
Created March 9, 2016 17:19
Tool for creating instructions
import re
# Format of Input Text
# OPCODE RS RD RT/#IMM;
class Asm:
def __init__(self,filename):
self.functions = {"nop":"0000",
"add":"0001", "sub":"0010",
"cmp":"0011", "slt":"0100",