Skip to content

Instantly share code, notes, and snippets.

@iamgreaser
iamgreaser / gist:6859571
Last active December 24, 2015 20:39 — forked from asiekierka/gist:6858846
areia-1 CPU, version 2
AREIA-1
------------
16 registers, 16 bits each,
0 = always 0
15 = SP
Memory is treated as little-endian.
Opcode byte: oooooott (o - opcode, t - type of opcode)
l is .b or .w
from pyspades.constants import *
def apply_script(protocol, connection, config):
class TemplateProtocol(protocol):
def __init__(self, team, *args, **kwargs):
return connection.on_team_join(self, team, *args, **kwargs)
class TemplateConnection(connection):
def __init__(self, *args, **kwargs):
return connection.on_team_join(self, *args, **kwargs)