github.com/tcnksm/go@v0.0.0-20141208075154-439b32936367/src/runtime/rt0_windows_386.s (about)

     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  
     5  #include "textflag.h"
     6  
     7  TEXT _rt0_386_windows(SB),NOSPLIT,$12
     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
    13  	JMP	main(SB)
    14  
    15  TEXT main(SB),NOSPLIT,$0
    16  	JMP	runtime·rt0_go(SB)
    17  
    18  
    19  DATA  runtime·iswindows(SB)/4, $1
    20  GLOBL runtime·iswindows(SB), NOPTR, $4