Browse Source

nasm: pop esp test

Fabian 6 years ago
parent
commit
0c2113d28c
1 changed files with 12 additions and 0 deletions
  1. 12 0
      tests/nasm/pop_esp.asm

+ 12 - 0
tests/nasm/pop_esp.asm

@@ -0,0 +1,12 @@
+global _start
+
+section .data
+	align 16
+
+%include "header.inc"
+
+    mov esp, stack_top-16
+    mov dword [esp], 55aaaa55h
+    pop dword [esp-12]
+
+%include "footer.inc"