blob: 03f95d12ec3d354bb81145663178344e04083c12 [file] [log] [blame]
Hector Chu6bfe5f52010-01-06 17:58:55 -08001// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Russ Coxcb040d52014-09-04 23:05:18 -04005#include "textflag.h"
Keith Randall0273dc12013-08-07 12:20:05 -07006
7TEXT _rt0_386_windows(SB),NOSPLIT,$12
Russ Coxdfc22e292013-03-07 19:57:10 -08008 MOVL 12(SP), AX
9 LEAL 16(SP), BX
10 MOVL AX, 4(SP)
11 MOVL BX, 8(SP)
12 MOVL $-1, 0(SP) // return PC for main
Shenghou Mab6ed9432015-03-10 03:26:37 -040013 JMP _main(SB)
Russ Coxdfc22e292013-03-07 19:57:10 -080014
Shenghou Mab6ed9432015-03-10 03:26:37 -040015TEXT _main(SB),NOSPLIT,$0
Russ Cox7ba41e92014-09-03 11:11:16 -040016 JMP runtime·rt0_go(SB)
Wei Guangjing1aa2d882011-01-20 10:22:20 -050017
Russ Coxdfc22e292013-03-07 19:57:10 -080018
Wei Guangjing1aa2d882011-01-20 10:22:20 -050019DATA runtime·iswindows(SB)/4, $1
Russ Cox75cca052014-09-24 17:50:44 -040020GLOBL runtime·iswindows(SB), NOPTR, $4