1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2025-01-07 12:29:52 +00:00

Erase types from IndirectIndexed locations.

This commit is contained in:
Cat's Eye Technologies 2014-04-11 12:52:36 +01:00
parent 264838b2ec
commit 3420fbc243
2 changed files with 3 additions and 1 deletions

View File

@ -265,7 +265,7 @@ Some more tests...
= main ([])
= A: PoisonedWith (Immediate 4)
= Y: UpdatedWith (Immediate 0)
= IndirectIndexed (NamedLocation (Just Word) "position") Y: UpdatedWith A
= IndirectIndexed (NamedLocation Nothing "position") Y: UpdatedWith A
= NamedLocation Nothing "position": PoisonedWith A
= NamedLocation Nothing "value": UpdatedWith (Immediate 1)
=

View File

@ -32,6 +32,8 @@ untypedLocation (LowByteOf x) =
untypedLocation x
untypedLocation (Indexed table index) =
untypedLocation table
untypedLocation (IndirectIndexed word index) =
IndirectIndexed (untypedLocation word) index
untypedLocation (NamedLocation _ name) =
NamedLocation Nothing name
untypedLocation x = x