diff --git a/src/nasm/C3a2nasm.java b/src/nasm/C3a2nasm.java index 8d6ca38c0b008d945ba8e7f50b77d2a69b68a86b..3475c263e0ed28dadc53ba44d68bec1baa85e2df 100644 --- a/src/nasm/C3a2nasm.java +++ b/src/nasm/C3a2nasm.java @@ -169,7 +169,10 @@ public class C3a2nasm implements C3aVisitor <NasmOperand> { } public NasmOperand visit(C3aInstParam inst){ NasmOperand label = (inst.label != null) ? inst.label.accept(this): null; - //nasm.ajouteInst(new NasmMov()); + NasmOperand addr = inst.label.accept(this); + NasmOperand destination = inst.label.accept(this); + NasmOperand source = inst.label.accept(this); + nasm.ajouteInst(new NasmMov(label, addr, destination, source, "")); return null; } public NasmOperand visit(C3aInstReturn inst){ diff --git a/src/nasm/NasmMov.java b/src/nasm/NasmMov.java index a0dad24ba382d980d256356d1a813d3206efb82d..55cb379c65e6ac5fd31bc5e45f11e9f5e51784d5 100644 --- a/src/nasm/NasmMov.java +++ b/src/nasm/NasmMov.java @@ -15,6 +15,10 @@ public class NasmMov extends NasmInst { super(); } + public NasmMov(NasmOperand label, NasmOperand addr, NasmOperand destination, NasmOperand source, String s) { + super(); + } + public <T> T accept(NasmVisitor <T> visitor) { return visitor.visit(this); }