if writing to text screen row group 3 just skip instead of throwing exception

This commit is contained in:
James Tauber 2011-08-07 07:03:50 -04:00
parent a9904be5b9
commit 02714dff55

View File

@ -100,7 +100,10 @@ class Memory:
hi, lo = divmod(base, 0x80)
row_group, column = divmod(lo, 0x28)
row = hi + 8 * row_group
assert row_group != 3 # @@@
# skip if writing to row group 3
if row_group == 3:
return
c = chr(0x20 + ((value + 0x20) % 0x40))