def VM(code):
    A = 0
    M = 0
    L = 0
    ML = []
    loop = []
    while A < len(code):
        if code[A] == "(":
            loop.append([L-1,A])
        elif code[A] == ")":
            if loop[-1][0] > 0:
                loop[-1][0] -= 1
                A = loop[-1][1]
            else:
                loop.pop(-1)
        elif code[A] == "+":
            M = (M+1)%256
        elif code[A] == "-":
            L = (L+1)%256
        elif code[A] == "!":
            if not(M in ML):
                ML.append(M)
        elif code[A] == "?":
            print(chr(M),end="")
        elif code[A] == "¡":
            M = ML.pop(len(ML)-1)
            
        A += 1
VM("""--------(++++ ++++)!+!+!+!+!¡++++?¡++""")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: