pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

$UDIVREM32(32767, 256, quot, rem);
IF $OVERFLOW THEN ... ! Report warning
If the compiler reports an error because overflow occurs for constant dividend and constant divisor,
it does not report a warning if you test $OVERFLOW in the following IF statement:
$UDIVREM32(65536 * 1024, 256, quot, rem); ! Report error
IF $OVERFLOW THEN.... ! No warning or error
Example 312 $UDIVREM32 Routine
INT(32) dividend;
INT divisor;
INT(32) quotient;
INT remainder;
$UDIVREM32(dividend, divisor, quotient, remainder);
$UFIX
NOTE: 64-bit addressing functionality added to the EpTAL compiler starting with SPR
T0561H01^AAP. For more information, see Appendix E, “64-bit Addressing Functionality”
(page 531).
$UFIX returns the FIXED-type zero-extended value of the specified INT(32)–typed expression.
NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
NoSets $CARRY
NoSets $OVERFLOW
expression
is INT(32) expression.
$UNLOCKPAGE
NOTE: The EpTAL compiler does not support this procedure.
$UNLOCKPAGE unlocks one page of memory.
YespTAL privileged procedure
YesCan be executed only by privileged procedures
YesSets condition code
Nonatomic Operations 349