41c271da (kx 2025-01-05 15:42:39 +0300 1) .TH icpy 3 "December 27, 2024" "libmpu" "LibMPU Programmer's Manual"
41c271da (kx 2025-01-05 15:42:39 +0300 2) .SH NAME
41c271da (kx 2025-01-05 15:42:39 +0300 3) \fBicpy\fP \- copying the value of an integer variable
41c271da (kx 2025-01-05 15:42:39 +0300 4) .SH SYNOPSIS
41c271da (kx 2025-01-05 15:42:39 +0300 5) .nf
41c271da (kx 2025-01-05 15:42:39 +0300 6) .B #include <libmpu.h>
41c271da (kx 2025-01-05 15:42:39 +0300 7) .PP
41c271da (kx 2025-01-05 15:42:39 +0300 8) .BI "void icpy( mpu_int *" c ", mpu_int *" a ", int " nb_c ", int " nb_a " );
41c271da (kx 2025-01-05 15:42:39 +0300 9) .fi
41c271da (kx 2025-01-05 15:42:39 +0300 10) .SH DESCRIPTION
41c271da (kx 2025-01-05 15:42:39 +0300 11) The \fBicpy()\fP function performs the operation of copying the value of the \fBa\fP operand
41c271da (kx 2025-01-05 15:42:39 +0300 12) to the variable, located at the address \fBc\fP. The contents of the memory at address \fBa\fP
41c271da (kx 2025-01-05 15:42:39 +0300 13) are not changed, and the previous memory at address \fBc\fP is lost. The \fBnb_c\fP parameter
41c271da (kx 2025-01-05 15:42:39 +0300 14) determines the size of the operand (in bytes) located at address \fBc\fP, and the \fBnb_a\fP
41c271da (kx 2025-01-05 15:42:39 +0300 15) parameter determines the size of the operand (in bytes) located at the address \fBa\fP.
41c271da (kx 2025-01-05 15:42:39 +0300 16) .PP
41c271da (kx 2025-01-05 15:42:39 +0300 17) The function affects the flags \fBO\fP, \fBP\fP, \fBS\fP, \fBZ\fP.
41c271da (kx 2025-01-05 15:42:39 +0300 18) .PP
41c271da (kx 2025-01-05 15:42:39 +0300 19) The flags \fBA\fP, \fBC\fP do not change (the previous value is retained).
41c271da (kx 2025-01-05 15:42:39 +0300 20) The \fBP\fP flag is set only when the size of the \fBc\fP operand is one
41c271da (kx 2025-01-05 15:42:39 +0300 21) or two bytes (\fBnb\fP == 1 || \fBnb\fP == 2).
41c271da (kx 2025-01-05 15:42:39 +0300 22) .sp
41c271da (kx 2025-01-05 15:42:39 +0300 23) .SH SEE ALSO
41c271da (kx 2025-01-05 15:42:39 +0300 24) .BR iadd(3),
41c271da (kx 2025-01-05 15:42:39 +0300 25) .BR isub(3),
41c271da (kx 2025-01-05 15:42:39 +0300 26) .BR iadc(3),
41c271da (kx 2025-01-05 15:42:39 +0300 27) .BR isbb(3),
41c271da (kx 2025-01-05 15:42:39 +0300 28) .BR ishl(3),
41c271da (kx 2025-01-05 15:42:39 +0300 29) .BR ishr(3),
41c271da (kx 2025-01-05 15:42:39 +0300 30) .BR isal(3),
41c271da (kx 2025-01-05 15:42:39 +0300 31) .BR isar(3),
41c271da (kx 2025-01-05 15:42:39 +0300 32) .BR irol(3),
41c271da (kx 2025-01-05 15:42:39 +0300 33) .BR iror(3),
41c271da (kx 2025-01-05 15:42:39 +0300 34) .BR ircl(3),
41c271da (kx 2025-01-05 15:42:39 +0300 35) .BR ircr(3),
41c271da (kx 2025-01-05 15:42:39 +0300 36) .BR ishln(3),
41c271da (kx 2025-01-05 15:42:39 +0300 37) .BR ishrn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 38) .BR isaln(3),
41c271da (kx 2025-01-05 15:42:39 +0300 39) .BR isarn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 40) .BR iroln(3),
41c271da (kx 2025-01-05 15:42:39 +0300 41) .BR irorn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 42) .BR ircln(3),
41c271da (kx 2025-01-05 15:42:39 +0300 43) .BR ircrn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 44) .BR ineg(3),
41c271da (kx 2025-01-05 15:42:39 +0300 45) .BR inot(3),
41c271da (kx 2025-01-05 15:42:39 +0300 46) .BR iand(3),
41c271da (kx 2025-01-05 15:42:39 +0300 47) .BR itest(3),
41c271da (kx 2025-01-05 15:42:39 +0300 48) .BR icmp(3),
41c271da (kx 2025-01-05 15:42:39 +0300 49) .BR ior(3),
41c271da (kx 2025-01-05 15:42:39 +0300 50) .BR ixor(3),
41c271da (kx 2025-01-05 15:42:39 +0300 51) .BR iinc(3),
41c271da (kx 2025-01-05 15:42:39 +0300 52) .BR idec(3),
41c271da (kx 2025-01-05 15:42:39 +0300 53) .BR ixchg(3),
41c271da (kx 2025-01-05 15:42:39 +0300 54) .BR icvt(3),
41c271da (kx 2025-01-05 15:42:39 +0300 55) .BR imul(3),
41c271da (kx 2025-01-05 15:42:39 +0300 56) .BR ismul(3),
41c271da (kx 2025-01-05 15:42:39 +0300 57) .BR idiv(3),
41c271da (kx 2025-01-05 15:42:39 +0300 58) .BR isdiv(3),
41c271da (kx 2025-01-05 15:42:39 +0300 59) .BR iatoi(3),
41c271da (kx 2025-01-05 15:42:39 +0300 60) .BR iatoui(3),
41c271da (kx 2025-01-05 15:42:39 +0300 61) .BR iitoa(3),
41c271da (kx 2025-01-05 15:42:39 +0300 62) .BR iuitoa(3).