Echelon Neuron Manual de usuario Pagina 175

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 237
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 174
_div8 (Divide, 8 Bit)
This function divides two integers to produce an integer result. The result of
dividing by zero is zero and a software error is logged.
Stack Transformation: (a, b -- a/b)
Location: Near
Registers Affected: R0, R1, R2
Example:
This example divides 9 by 2.
pushs #d’2 ; (d’2)
push #d’8 ; (d’9, d’2)
call _div8 ; (d’4)
_div8s (Divide Signed, 8 Bit)
This function divides two signed integers to produce a signed integer result. The
result of dividing by zero is zero and a software error is logged.
Stack Transformation: (a, b -- a/b)
Location: Near
Registers Affected: R0, R1, R2
Example:
This example divides 8 by 2.
pushs #d’2 ; (d’2)
push #d’8 ; (d’8, d’2)
call _div8s ; (d’4)
_drop_n (Drop N Bytes from Stack)
This function drops N bytes from the stack and returns to the calling function.
Stack Transformation: (N, a(N) -- )
Location: Near
Registers Affected: None
Example:
This example drops 3 bytes from the stack.
pushs #d’3 ; (d’3, a, b, c)
Neuron Assembly Language Reference 165
Vista de pagina 174
1 2 ... 170 171 172 173 174 175 176 177 178 179 180 ... 236 237

Comentarios a estos manuales

Sin comentarios