github.com/primecitizens/pcz/std@v0.2.1/rt0/rt0_wasm_noos.s (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2018 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  // When building with the "noos" tag, the GOOS is actually "js".
     9  //
    10  //go:build noos && wasm
    11  
    12  #include "textflag.h"
    13  
    14  TEXT rt0(SB),NOSPLIT|NOFRAME|TOPFRAME,$0
    15  	// See comments inside wasm_export_resume
    16  	MOVD $(4096+8192-(8/* argc */+8 /* argv */ + 8 /* LR */)), SP
    17  
    18  	I32Const $0
    19  	Call ·rt0(SB)
    20  	Drop
    21  	Return