Difference between revisions of "83Plus:BCALLs:8042"

From WikiTI
Jump to: navigation, search
(Outputs)
(Inputs)
Line 10: Line 10:
  
 
=== Inputs ===
 
=== Inputs ===
* a: operand 1
+
* a = operand 1
* e: operand 2
+
* e = operand 2
 
<!-- We need to figure out how we're doing flags and link that up -->
 
<!-- We need to figure out how we're doing flags and link that up -->
  

Revision as of 19:16, 28 March 2005

Synopsis

Official Name: multAbyE

BCALL Address: 8042

Multiplies register A by register E and stores the result in register HL.

Inputs

  • a = operand 1
  • e = operand 2

Outputs

  • HL = a * e

Destroys

  • a, HL, DE

Comments

Simple enough to implement yourself if speed is important.

Example

 ld     a,4
 ld     e,5
 B_CALL multAbyE  ;should return 14h or 20 decimal