Skip to content

Instantly share code, notes, and snippets.

@wecing
Last active August 29, 2015 14:15
Show Gist options
  • Save wecing/446f9124b2154eb511ee to your computer and use it in GitHub Desktop.
Save wecing/446f9124b2154eb511ee to your computer and use it in GitHub Desktop.
def load(addr):
pt = pd[(addr & M1) >> S1]
pg = pt[(addr & M2) >> S2]
v = pg[addr & M3]
return v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment