September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -2,7 +2,7 @@ atom mem = allocate(9)
|
|||
poke(mem,{#8B,#44,#24,#04,#03,#44,#24,#08,#C3})
|
||||
integer res
|
||||
#ilASM{ mov eax,[mem]
|
||||
call :%pLoadMint -- (in case mem>#3FFFFFFF)
|
||||
call :%pLoadMint -- eax:=(int32)eax, in case mem>#3FFFFFFF
|
||||
push 12
|
||||
push 7
|
||||
call eax
|
||||
|
|
|
|||
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