intel MCS BASIC-52 — Intel MCS BASIC-52 Versions 1 & 1.1 Operating and Reference Manual PDF

int e l 9.5 DUAL OPERAND OPERATORS MCS BASIC-52 can perform the following DUAL OPERAND OPERATIONS: OPBYTE = 9 (09H) EXPONENTIATION -- The [NxTOS] value is raised to the [TOS] power. RESULT = [NxTOS] ** [TOS]. NOTE -- [TOS] MUST BE LESS THAN 256. OPBYTE = 10 (0AH) MULTIPLY RESULT = [NxTOS] * [TOS]. If an ERROR occurs during this operation (i.e. ARITH. OVERFLOW or UNDERFLOW) MCS BASIC-52 will trap the error and print the error message to the console device. OPBYTE = 136 (88H) MULTIPLY RESULT = [NxTOS] * [TOS]. If an error occurs during this operation, the status byte previously discussed will be returned to the user. OPBYTE = 11 (0BH) ADD RESULT = [NxTOS] + [TOS]. BASIC handles errors.

OPBYTE = 130 (82H) ADD RESULT = [NxTOS] + [TOS]. User handles errors. OPBYTE = 12 (0CH) DIVIDE RESULT = [NxTOS] / [TOS]. BASIC handles errors. OPBYTE = 138 (8AH) DIVIDE RESULT = [NxTOS] / [TOS]. User handles errors. OPBYTE = 13 (0DH) SUBTRACT RESULT = [NxTOS] -- [TOS]. BASIC handles errors. - 119 -