diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-02-10 10:28:28 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-02-10 10:28:28 +0100 |
| commit | 280ab8eb52525c664dba9286949869fadb61f3ed (patch) | |
| tree | cf2eb6315c6b00d32fb0fa6bb1d4e663e9012a7f /example | |
| parent | fd271e8cc52cfa05f45012335dfe180a0c270fcf (diff) | |
| download | miasm-280ab8eb52525c664dba9286949869fadb61f3ed.tar.gz miasm-280ab8eb52525c664dba9286949869fadb61f3ed.zip | |
Tests: add x86_32 pop esp regression test
Diffstat (limited to 'example')
| -rw-r--r-- | example/samples/x86_32_pop_esp.S | 18 |
1 files changed, 18 insertions, 0 deletions
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!" |