github.com/f-secure-foundry/tamago@v0.0.0-20220307101044-d73fcdd7f11b/internal/reg/reg32.s (about) 1 // https://github.com/f-secure-foundry/tamago 2 // 3 // Copyright (c) F-Secure Corporation 4 // https://foundry.f-secure.com 5 // 6 // Use of this source code is governed by the license 7 // that can be found in the LICENSE file. 8 9 // func Move(dst uint32, src uint32) 10 TEXT ·Move(SB),$0-8 11 MOVW dst+0(FP), R0 12 MOVW src+4(FP), R1 13 14 // copy src to dst 15 MOVW (R1), R3 16 MOVW R3, (R0) 17 18 // zero out src 19 MOVW $0, R3 20 MOVW R3, (R1) 21 22 RET