8.6.1 TON .................................................................................................. 8-40
8.6.2 TOF ................................................................................................... 8-42
8.6.3 TP ..................................................................................................... 8-44
8.7 Counter Instructions ................................................................................ 8-46
8.7.1 CTU ................................................................................................... 8-46
8.7.2 CTD ................................................................................................... 8-48
8.7.3 CTUD ................................................................................................. 8-50
8.8 Math Instructions ..................................................................................... 8-53
8.8.1 ADD .................................................................................................. 8-53
8.8.2 SUB .................................................................................................. 8-56
8.8.3 MUL .................................................................................................. 8-59
8.8.4 DIV ................................................................................................... 8-62
8.8.5 MOD .................................................................................................. 8-65
8.8.6 MODREAL ........................................................................................... 8-67
8.8.7 MODTURNS ........................................................................................ 8-69
8.8.8 MODABS ............................................................................................ 8-71
8.8.9 ABS ................................................................................................... 8-73
8.8.10 DegToRad .......................................................................................... 8-75
8.8.11 RadToDeg .......................................................................................... 8-77
8.8.12 SIN ................................................................................................... 8-79
8.8.13 COS .................................................................................................. 8-81
8.8.14 TAN ................................................................................................... 8-83
8.8.15 ASIN ................................................................................................. 8-85
8.8.16 ACOS ................................................................................................ 8-88
8.8.17 ATAN ................................................................................................. 8-90
8.8.18 LN ..................................................................................................... 8-92
8.8.19 LOG .................................................................................................. 8-94
8.8.20 SQRT ................................................................................................. 8-96
8.8.21 EXP ................................................................................................... 8-98
8.8.22 EXPT ................................................................................................ 8-100
8.8.23 RAND ............................................................................................... 8-102
8.8.24 TRUNC .............................................................................................. 8-104
8.8.25 FLOOR .............................................................................................. 8-106
8.8.26 FRACTION ......................................................................................... 8-108
8.9 Bit String Instructions ........................................................................... 8-110
8.9.1 AND ................................................................................................. 8-110
8.9.2 OR ................................................................................................... 8-113
8.9.3 NOT ................................................................................................. 8-116
8.9.4 XOR ................................................................................................. 8-118
8.9.5 XORN ............................................................................................... 8-121
8.10 Shift Instructions ................................................................................... 8-124
8.10.1 SHL .................................................................................................. 8-124
8.10.2 SHR ................................................................................................. 8-126
8.10.3 ROL .................................................................................................. 8-128
8.10.4 ROR ................................................................................................. 8-130
8.11 Selection Instructions ............................................................................ 8-132
8.11.1 MAX ................................................................................................. 8-132
8.11.2 MIN .................................................................................................. 8-134
iv