summaryrefslogtreecommitdiff
path: root/pasmgen-win.asm
blob: c65c47b55b603bb6d57c402f97dae18a7870c5fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
format PE64 console

include 'win64a.inc'


section '.text' code readable executable

entry main
main:
	mov r8, qword 3
	mov r9, qword 2
	mov r10, qword 3

	jmp generate

ok:
	invoke GetStdHandle, STD_OUTPUT_HANDLE
	invoke WriteConsole, rax, out_buf, rsi, 0, 0
	invoke ExitProcess, 0

include 'pasmgen.inc'


;; win32 imports
section '.idata' import data readable

library kernel32,'kernel32.dll'
include 'api/kernel32.inc'


section '.data' data readable writeable

include 'constants.inc'

out_buf rb 64