mirror of
https://github.com/mnaberez/py65.git
synced 2024-11-19 06:31:08 +00:00
Removed special case for "flags".
This commit is contained in:
parent
af3fc635ff
commit
ab7c84659a
@ -373,8 +373,6 @@ class Monitor(cmd.Cmd):
|
||||
intval = self._address_parser.number(value) & 0xFFFF
|
||||
if len(register) == 1:
|
||||
intval &= 0xFF
|
||||
if register == 'p':
|
||||
register = 'flags'
|
||||
setattr(self._mpu, register, intval)
|
||||
except KeyError, why:
|
||||
self._output(why[0])
|
||||
|
@ -274,7 +274,7 @@ class MonitorTests(unittest.TestCase):
|
||||
self.assertEqual(0x42, mon._mpu.a)
|
||||
self.assertEqual(0x43, mon._mpu.x)
|
||||
self.assertEqual(0x44, mon._mpu.y)
|
||||
self.assertEqual(0x45, mon._mpu.flags)
|
||||
self.assertEqual(0x45, mon._mpu.p)
|
||||
self.assertEqual(0x46, mon._mpu.sp)
|
||||
self.assertEqual(0x4600, mon._mpu.pc)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user