Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erin van der Veen
clean-ide
Commits
f7858fbc
Commit
f7858fbc
authored
Jun 02, 2020
by
Erin van der Veen
Browse files
Use non-machine instruction version of set_return_code.icl
parent
3108a8bc
Pipeline
#43173
passed with stage
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Unix/set_return_code.icl
View file @
f7858fbc
implementation
module
set_return_code
import
Platform
import
StdInt
set_return_code_world
::
!
Int
!*
World
->
*
World
set_return_code_world
i
world
=
IF_
ARM
(
set_return_code_world_
arm
i
world
)
(
set_return_code_world_
intel
i
world
)
set_return_code_world
i
world
=
IF_
INT_64_OR_32
(
set_return_code_world_
64
i
world
)
(
set_return_code_world_
32
i
world
)
set_return_code_world_intel
::
!
Int
!*
World
->
*
World
set_return_code_world_intel
i
world
=
IF_INT_64_OR_32
(
set_return_code_world_intel_64
i
world
)
(
set_return_code_world_intel_32
i
world
)
set_return_code_world_arm
::
!
Int
!*
World
->
*
World
set_return_code_world_arm
i
world
=
IF_INT_64_OR_32
(
set_return_code_world_arm_64
i
world
)
(
set_return_code_world_arm_32
i
world
)
set_return_code_world_intel_64
::
!
Int
!*
World
->
*
World
set_return_code_world_intel_64
i
world
=
code {
pushI
0
pushLc
return_code
:xxx
pop_b
3
| mov dword ptr [rbx+r10],eax
instruction
66
instruction
137
instruction
4
instruction
19
fill_a
0
1
pop_a
1
}
set_return_code_world_intel_32
::
!
Int
!*
World
->
*
World
set_return_code_world_intel_32
i
world
=
code {
fill_a
0
1
pop_a
1
pushI
0
pushLc
return_code
:xxx
pop_b
3
| mov (%esp),%edx
instruction
139
instruction
20
instruction
36
| movl %edx,(%eax,%ebx,1)
instruction
137
instruction
20
instruction
24
}
set_return_code_world_arm_64
::
!
Int
!*
World
->
*
World
set_return_code_world_arm_64
i
world
=
code {
set_return_code_world_64
::
!
Int
!*
World
->
*
World
set_return_code_world_64
i
world
=
code {
pushI
0
xffffffff
and%
pushLc
return_code
...
...
@@ -79,8 +38,8 @@ set_return_code_world_arm_64 i world = code {
pop_a
2
}
set_return_code_world_
arm_
32
::
!
Int
!*
World
->
*
World
set_return_code_world_
arm_
32
i
world
=
code {
set_return_code_world_32
::
!
Int
!*
World
->
*
World
set_return_code_world_32
i
world
=
code {
pushI
-4
pushLc
return_code
addI
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment