Skip to content

Instantly share code, notes, and snippets.

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