]> gitweb.factorcode.org Git - factor.git/blob - basis/cpu/x86/64/winnt/bootstrap.factor
113a13918f1f84bd04c4cfda4e6372624acf8768
[factor.git] / basis / cpu / x86 / 64 / winnt / bootstrap.factor
1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: bootstrap.image.private kernel namespaces system layouts
4 vocabs sequences cpu.x86.assembler parser
5 cpu.x86.assembler.operands ;
6 IN: bootstrap.x86
7
8 : stack-frame-size ( -- n ) 8 bootstrap-cells ;
9 : nv-regs ( -- seq ) { RBX RSI RDI R12 R13 R14 R15 } ;
10 : arg1 ( -- reg ) RCX ;
11 : arg2 ( -- reg ) RDX ;
12 : arg3 ( -- reg ) R8 ;
13 : arg4 ( -- reg ) R9 ;
14
15 << "vocab:cpu/x86/64/bootstrap.factor" parse-file suffix! >>
16 call