Hector Chu | 6bfe5f5 | 2010-01-06 17:58:55 -0800 | [diff] [blame] | 1 | // 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 Cox | cb040d5 | 2014-09-04 23:05:18 -0400 | [diff] [blame] | 5 | #include "textflag.h" |
Keith Randall | 0273dc1 | 2013-08-07 12:20:05 -0700 | [diff] [blame] | 6 | |
| 7 | TEXT _rt0_386_windows(SB),NOSPLIT,$12 |
Russ Cox | dfc22e29 | 2013-03-07 19:57:10 -0800 | [diff] [blame] | 8 | 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 Ma | b6ed943 | 2015-03-10 03:26:37 -0400 | [diff] [blame] | 13 | JMP _main(SB) |
Russ Cox | dfc22e29 | 2013-03-07 19:57:10 -0800 | [diff] [blame] | 14 | |
Shenghou Ma | b6ed943 | 2015-03-10 03:26:37 -0400 | [diff] [blame] | 15 | TEXT _main(SB),NOSPLIT,$0 |
Russ Cox | 7ba41e9 | 2014-09-03 11:11:16 -0400 | [diff] [blame] | 16 | JMP runtime·rt0_go(SB) |
Wei Guangjing | 1aa2d88 | 2011-01-20 10:22:20 -0500 | [diff] [blame] | 17 | |
Russ Cox | dfc22e29 | 2013-03-07 19:57:10 -0800 | [diff] [blame] | 18 | |
Wei Guangjing | 1aa2d88 | 2011-01-20 10:22:20 -0500 | [diff] [blame] | 19 | DATA runtime·iswindows(SB)/4, $1 |
Russ Cox | 75cca05 | 2014-09-24 17:50:44 -0400 | [diff] [blame] | 20 | GLOBL runtime·iswindows(SB), NOPTR, $4 |