about summary refs log tree commit diff stats
path: root/example/samples/x86_32_pop_esp.S
blob: 4115a522c52f1ca0a4e6835a9591b33bf0fc48fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
main:
    MOV EAX, ESP
    CALL test
    MOV ESP, EAX
    PUSH 0
    PUSH title
    PUSH msg
    PUSH 0
    CALL DWORD PTR [ MessageBoxA ]
    RET

test:
    POP ESP
    JMP ESP
title:
.string "Hello!"
msg:
.string "World!"