morpheus
- Male
- Member since Feb 12th 2016
- Last Activity:
- Posts
- 615
- Reactions Received
- 1,287
- Points
- 4,497
- Profile Hits
- 3,041
-
Morpheus-termination routine
extern terminate
bits 64
section .data
target: db "morpheus",0section .text
global mainmain:
push rbp ;set stack frame
mov rdi,target ;first parameter for terminate
mov rax,0
call terminate ;call C function
mov rax,0 ;set return value to 0
xor rdi,rdi ;zero rdi register
xor rax,rax ;zero rax register
pop rbp ;restore stack, simply remove frame we needed
mov rax,0 ;no error happened
ret ;return
Electro.
du hurensohn