From 280ab8eb52525c664dba9286949869fadb61f3ed Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Tue, 10 Feb 2015 10:28:28 +0100 Subject: Tests: add x86_32 pop esp regression test --- example/samples/x86_32_pop_esp.S | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 example/samples/x86_32_pop_esp.S (limited to 'example/samples') diff --git a/example/samples/x86_32_pop_esp.S b/example/samples/x86_32_pop_esp.S new file mode 100644 index 00000000..4115a522 --- /dev/null +++ b/example/samples/x86_32_pop_esp.S @@ -0,0 +1,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!" -- cgit 1.4.1