Skip to content
Snippets Groups Projects
Commit 37ff4336 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 2000-04-28 15:04:07 by panne]

NCG now handles writeBLAHOffAddr# primops
parent 1802983c
No related merge requests found
......@@ -200,6 +200,15 @@ primCode [lhs] (IndexOffForeignObjOp pk) [obj, ix]
in
returnUs (\xs -> assign : xs)
primCode [] (WriteOffAddrOp pk) [obj, ix, v]
= let
obj' = amodeToStix obj
ix' = amodeToStix ix
v' = amodeToStix v
assign = StAssign pk (StInd pk (StIndex pk obj' ix')) v'
in
returnUs (\xs -> assign : xs)
primCode [] (WriteByteArrayOp pk) [obj, ix, v]
= let
obj' = amodeToStix obj
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment