translate: fixes for pop scan
[ia32rtools.git] / tests / reg_save2.asm
diff --git a/tests/reg_save2.asm b/tests/reg_save2.asm
new file mode 100644 (file)
index 0000000..b141cbd
--- /dev/null
@@ -0,0 +1,22 @@
+
+_text           segment para public 'CODE' use32
+
+sub_test        proc near
+                push    ebp
+                cmp     ecx, 0
+                je      loc1
+                push    ebx
+                xor     eax, eax
+                jmp     end
+loc1:
+                push    ebx
+                mov     eax, 1
+end:
+                pop     ebx
+                pop     ebp
+                retn
+sub_test        endp
+
+_text           ends
+
+; vim:expandtab