September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
24
Task/Machine-code/Phix/machine-code-3.phix
Normal file
24
Task/Machine-code/Phix/machine-code-3.phix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
integer res
|
||||
#ilASM{ jmp @f
|
||||
::add
|
||||
[32]
|
||||
mov eax,[esp+4]
|
||||
add eax,[esp+8]
|
||||
[64]
|
||||
mov rax,[rsp+8]
|
||||
add rax,[rsp+16]
|
||||
[]
|
||||
ret
|
||||
@@:
|
||||
push 12
|
||||
push 7
|
||||
call :add
|
||||
[32]
|
||||
add esp,8
|
||||
mov [res],eax
|
||||
[64]
|
||||
add rsp,16
|
||||
mov [res],rax
|
||||
[]
|
||||
}
|
||||
?res
|
||||
Loading…
Add table
Add a link
Reference in a new issue