github.com/usbarmory/tamago@v0.0.0-20240508072735-8612bbe1e454/internal/reg/reg32_riscv64.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 MOV dst+0(FP), T0 12 MOV src+4(FP), T1 13 14 // copy src to dst 15 MOV (T1), T3 16 MOV T3, (T0) 17 18 // zero out src 19 MOV $0, T3 20 MOV T3, (T1) 21 22 RET