mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-06-26 16:29:28 +00:00
Pass test, hamfistedly.
This commit is contained in:
parent
c9c2d9345f
commit
d225d1e727
|
@ -111,7 +111,12 @@ fillOutNamedLocationTypes p@(Program decls routines) =
|
|||
mapProgramRoutines (xform) p
|
||||
where
|
||||
xform (COPY src dest) =
|
||||
COPY (resolve src) (resolve dest)
|
||||
-- ewww special-case-y
|
||||
case ((resolve src), (resolve dest)) of
|
||||
((NamedLocation (Just Word) name), A) ->
|
||||
error ("absolute access of non-byte-based address '" ++ name ++ "'")
|
||||
_ ->
|
||||
COPY (resolve src) (resolve dest)
|
||||
xform (CMP dest other) =
|
||||
CMP (resolve dest) (resolve other)
|
||||
xform (ADD dest other) =
|
||||
|
|
Loading…
Reference in New Issue
Block a user