summaryrefslogtreecommitdiff
path: root/dummy/dummy_simple.asm
blob: f49d9ad14ee969923e8e6376c9d94f34e1b30428 (plain)
1
2
3
4
5
6
7
8
9
10
11
; dummy: just exit with error code 2, call [__imp__ExitProcess@4] instead of ExitProcess@4
; nasm -f win32 -o dummy.obj dummy_simple.asm
; i686-w64-mingw32-ld -o dummy.exe dummy.obj -lkernel32

global _start

extern __imp__ExitProcess@4

_start:
	push 2
	call [__imp__ExitProcess@4]