Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .text
- GLOBAL system_print
- system_print:
- push ebp
- mov ebp, esp
- ; Save registers that will be used by function
- push eax
- push ebx
- push ecx
- push edx
- ; Do your stuff
- mov ecx, [ebp + 8]
- mov edx, [ebp + 12]
- mov eax, 4
- mov ebx, 1
- call system.kernal
- ; Restore registers to previous state
- pop edx
- pop ecx
- pop ebx
- pop eax
- pop ebp
- ret
- system.kernal:
- int 80h
- ret
Add Comment
Please, Sign In to add comment