diff options
author | Peter Wu <lekensteyn@gmail.com> | 2014-01-18 16:21:00 +0100 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2014-01-18 16:21:00 +0100 |
commit | 5e2f579b3e9c871e36dd19c488115a853dc3c179 (patch) | |
tree | 37b26016fbdfe745e1f0a7a5fad28f8a40203740 /Registers.py | |
parent | 29f430dc3c911971e62819292ceb02fa79d514a7 (diff) | |
download | pp2cc-5e2f579b3e9c871e36dd19c488115a853dc3c179.tar.gz |
Change license to MIT
You are free to use this code under the terms of the MIT license.
While at it, include my public e-mail address and remove trailing white
space.
Diffstat (limited to 'Registers.py')
-rw-r--r-- | Registers.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/Registers.py b/Registers.py index 13149fb..3784f96 100644 --- a/Registers.py +++ b/Registers.py @@ -1,28 +1,23 @@ #!/usr/bin/env python """Compiles C into assembly for the practicum processor (PP2) -All rights reserved, you may not redistribute or use this program without prior -permission from Peter Wu or Xander Houtman. Use of this program is entirely -your own risk. In no circumstances can the authors of this program be held -responsible for any damage including, but not limited to, financial damage or -data loss. Modification of this program is not allowed without prior -permission. The generated output (assembly and messages) are not subject to -this license. +Copyright (C) 2011-2014 Peter Wu <lekensteyn@gmail.com> +Licensed under the MIT license <http://opensource.org/licenses/MIT>. """ import re __author__ = "Peter Wu" -__copyright__ = "Copyright 2011, Peter Wu" +__copyright__ = "Copyright (C) 2011-2014 Peter Wu" __credits__ = ["Peter Wu"] -__license__ = "Proprietary" +__license__ = "MIT" __version__ = "1.0" __maintainer__ = "Peter Wu" -__email__ = "uwretep@gmail.com" +__email__ = "lekensteyn@gmail.com" class Registers(object): """Register related functions - + Some functions were supposed to optimize things (alloc and free), but it's not implemented """ @@ -131,7 +126,7 @@ class Registers(object): return None def is_register_changed(self, line, register): """Returns True if the register is possibly modified in the line - + Keyword arguments: line -- The instruction line to be analyzed register -- The register to be looked for in the line |