Last active
August 29, 2015 14:15
-
-
Save wecing/19a131f537d2b6ff68e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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