[pypy-svn] r62597 - pypy/trunk/pypy/lang/gameboy
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Mar 5 17:35:55 CET 2009
Author: cfbolz
Date: Thu Mar 5 17:35:54 2009
New Revision: 62597
Modified:
pypy/trunk/pypy/lang/gameboy/ram.py
Log:
more explicit exception
Modified: pypy/trunk/pypy/lang/gameboy/ram.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/ram.py (original)
+++ pypy/trunk/pypy/lang/gameboy/ram.py Thu Mar 5 17:35:54 2009
@@ -6,6 +6,8 @@
from pypy.lang.gameboy import constants
+class InvalidMemoryAccess(Exception):
+ pass
class iMemory(object):
def write(self, address, data):
@@ -42,4 +44,4 @@
# FF80-FFFE
elif address >= 0xFF80 and address <= 0xFFFE:
return self.hi_ram[address & 0x7F]
- raise Exception("Invalid Memory access, address out of range")
\ No newline at end of file
+ raise InvalidMemoryAccess("Invalid Memory access, address out of range")
More information about the Pypy-commit
mailing list