Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

16 Commits   0 Branches   2 Tags
41c271da (kx 2025-01-05 15:42:39 +0300  1) .TH ior 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) \fBior\fP \- bitwise logical OR
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 ior( mpu_int *" c ", mpu_int *" a ", mpu_int *" b ", int " nb " );
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 \fBior()\fP function performs a bitwise logical \fBOR\fP of the \fBa\fP and \fBb\fP
41c271da (kx 2025-01-05 15:42:39 +0300 12) operands. The result is placed at address \fBc\fP. The contents of memory at \fBa\fP and
41c271da (kx 2025-01-05 15:42:39 +0300 13) \fBb\fP are not changed, the previous memory content at \fBc\fP is lost. The parameter
41c271da (kx 2025-01-05 15:42:39 +0300 14) \fBnb\fP defines the size of the operands (in bytes) located at addresses \fBc\fP,
41c271da (kx 2025-01-05 15:42:39 +0300 15) \fBa\fP, \fBb\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 \fBC\fP, \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 \fBA\fP flag is undefined. The \fBP\fP flag is set only when the size of the \fBa\fP,
41c271da (kx 2025-01-05 15:42:39 +0300 20) \fBb\fP operands is equal to one or two bytes (\fBnb\fP == 1 || \fBnb\fP == 2).
41c271da (kx 2025-01-05 15:42:39 +0300 21) .sp
41c271da (kx 2025-01-05 15:42:39 +0300 22) .SH SEE ALSO
41c271da (kx 2025-01-05 15:42:39 +0300 23) .BR iadd(3),
41c271da (kx 2025-01-05 15:42:39 +0300 24) .BR isub(3),
41c271da (kx 2025-01-05 15:42:39 +0300 25) .BR iadc(3),
41c271da (kx 2025-01-05 15:42:39 +0300 26) .BR isbb(3),
41c271da (kx 2025-01-05 15:42:39 +0300 27) .BR ishl(3),
41c271da (kx 2025-01-05 15:42:39 +0300 28) .BR ishr(3),
41c271da (kx 2025-01-05 15:42:39 +0300 29) .BR isal(3),
41c271da (kx 2025-01-05 15:42:39 +0300 30) .BR isar(3),
41c271da (kx 2025-01-05 15:42:39 +0300 31) .BR irol(3),
41c271da (kx 2025-01-05 15:42:39 +0300 32) .BR iror(3),
41c271da (kx 2025-01-05 15:42:39 +0300 33) .BR ircl(3),
41c271da (kx 2025-01-05 15:42:39 +0300 34) .BR ircr(3),
41c271da (kx 2025-01-05 15:42:39 +0300 35) .BR ishln(3),
41c271da (kx 2025-01-05 15:42:39 +0300 36) .BR ishrn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 37) .BR isaln(3),
41c271da (kx 2025-01-05 15:42:39 +0300 38) .BR isarn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 39) .BR iroln(3),
41c271da (kx 2025-01-05 15:42:39 +0300 40) .BR irorn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 41) .BR ircln(3),
41c271da (kx 2025-01-05 15:42:39 +0300 42) .BR ircrn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 43) .BR ineg(3),
41c271da (kx 2025-01-05 15:42:39 +0300 44) .BR inot(3),
41c271da (kx 2025-01-05 15:42:39 +0300 45) .BR iand(3),
41c271da (kx 2025-01-05 15:42:39 +0300 46) .BR itest(3),
41c271da (kx 2025-01-05 15:42:39 +0300 47) .BR icmp(3),
41c271da (kx 2025-01-05 15:42:39 +0300 48) .BR ixor(3),
41c271da (kx 2025-01-05 15:42:39 +0300 49) .BR iinc(3),
41c271da (kx 2025-01-05 15:42:39 +0300 50) .BR idec(3),
41c271da (kx 2025-01-05 15:42:39 +0300 51) .BR ixchg(3),
41c271da (kx 2025-01-05 15:42:39 +0300 52) .BR icpy(3),
41c271da (kx 2025-01-05 15:42:39 +0300 53) .BR icvt(3),
41c271da (kx 2025-01-05 15:42:39 +0300 54) .BR imul(3),
41c271da (kx 2025-01-05 15:42:39 +0300 55) .BR ismul(3),
41c271da (kx 2025-01-05 15:42:39 +0300 56) .BR idiv(3),
41c271da (kx 2025-01-05 15:42:39 +0300 57) .BR isdiv(3),
41c271da (kx 2025-01-05 15:42:39 +0300 58) .BR iatoi(3),
41c271da (kx 2025-01-05 15:42:39 +0300 59) .BR iatoui(3),
41c271da (kx 2025-01-05 15:42:39 +0300 60) .BR iitoa(3),
41c271da (kx 2025-01-05 15:42:39 +0300 61) .BR iuitoa(3).