github.com/usbarmory/tamago@v0.0.0-20240508072735-8612bbe1e454/internal/reg/reg32_arm.s (about) 1 // https://github.com/usbarmory/tamago 2 // 3 // Copyright (c) WithSecure Corporation 4 // https://foundry.withsecure.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