Skip to content

Instantly share code, notes, and snippets.

View bhuvnesh17's full-sized avatar

Bhuvnesh Kumar bhuvnesh17

View GitHub Profile
@bhuvnesh17
bhuvnesh17 / asm.py
Created March 10, 2016 02:53 — forked from AnthonyLam/asm.py
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",