Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bits 32
- jmp Main
- SetChar:
- mov ebp, esp
- add esp, 4
- jmp .block_0
- .block_0:
- push 753664
- pop eax
- mov [ebp + 0], eax
- mov eax, [ebp + 0]
- push eax
- mov eax, [ebp + -4]
- push eax
- mov eax, [ebp + -8]
- push eax
- push 320
- pop ebx
- pop eax
- mul ebx
- push eax
- pop ebx
- pop eax
- add eax, ebx
- push eax
- push 3840
- mov eax, [ebp + -12]
- push eax
- pop ebx
- pop eax
- or eax, ebx
- push eax
- pop ebx
- pop eax
- mov [eax], bx
- pop eax
- mov esp, ebp
- ret
- Main:
- mov ebp, esp
- add esp, 12
- jmp .block_0
- .block_44:
- pop eax
- mov esp, ebp
- ret
- .block_33:
- mov eax, [ebp + 8]
- push eax
- push 12
- pop ebx
- pop eax
- cmp eax, ebx
- jl .block_13
- jmp .block_44
- .block_13:
- mov eax, [ebp + 8]
- push eax
- pop eax
- mov [ebp + 4], eax
- mov eax, [ebp + 8]
- push eax
- push 1
- pop ebx
- pop eax
- add eax, ebx
- push eax
- pop eax
- mov [ebp + 8], eax
- mov eax, [ebp + 4]
- push eax
- push 0
- mov eax, [ebp + 0]
- push eax
- mov eax, [ebp + 4]
- push eax
- pop ebx
- pop eax
- mov al, [eax + ebx]
- push eax
- call SetChar
- sub esp, 12
- jmp .block_33
- .block_0:
- mov eax, str_0
- push eax
- pop eax
- mov [ebp + 0], eax
- push 0
- pop eax
- mov [ebp + 8], eax
- jmp .block_33
- str_0: db "Hello world!",0
Add Comment
Please, Sign In to add comment