Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2024_compilation_Bazizi_Zaynoune
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BAZIZI Zakaria
2024_compilation_Bazizi_Zaynoune
Commits
5f922a1d
Commit
5f922a1d
authored
1 year ago
by
ZaynouneFatimaZahrae
Browse files
Options
Downloads
Patches
Plain Diff
sa2ts
parent
c16c77d3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/nasm/C3a2nasm.java
+4
-1
4 additions, 1 deletion
src/nasm/C3a2nasm.java
src/nasm/NasmMov.java
+4
-0
4 additions, 0 deletions
src/nasm/NasmMov.java
with
8 additions
and
1 deletion
src/nasm/C3a2nasm.java
+
4
−
1
View file @
5f922a1d
...
@@ -169,7 +169,10 @@ public class C3a2nasm implements C3aVisitor <NasmOperand> {
...
@@ -169,7 +169,10 @@ public class C3a2nasm implements C3aVisitor <NasmOperand> {
}
}
public
NasmOperand
visit
(
C3aInstParam
inst
){
public
NasmOperand
visit
(
C3aInstParam
inst
){
NasmOperand
label
=
(
inst
.
label
!=
null
)
?
inst
.
label
.
accept
(
this
):
null
;
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
;
return
null
;
}
}
public
NasmOperand
visit
(
C3aInstReturn
inst
){
public
NasmOperand
visit
(
C3aInstReturn
inst
){
...
...
This diff is collapsed.
Click to expand it.
src/nasm/NasmMov.java
+
4
−
0
View file @
5f922a1d
...
@@ -15,6 +15,10 @@ public class NasmMov extends NasmInst {
...
@@ -15,6 +15,10 @@ public class NasmMov extends NasmInst {
super
();
super
();
}
}
public
NasmMov
(
NasmOperand
label
,
NasmOperand
addr
,
NasmOperand
destination
,
NasmOperand
source
,
String
s
)
{
super
();
}
public
<
T
>
T
accept
(
NasmVisitor
<
T
>
visitor
)
{
public
<
T
>
T
accept
(
NasmVisitor
<
T
>
visitor
)
{
return
visitor
.
visit
(
this
);
return
visitor
.
visit
(
this
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment