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

From WikiTI
Jump to: navigation, search
m (Official name.)
(categorized)
Line 1: Line 1:
 
[[Category:83Plus:BCALLs:By Name:Math|Mult16By8]]
 
[[Category:83Plus:BCALLs:By Name:Math|Mult16By8]]
 +
[[Category:83Plus:BCALLs:By Name:Math:Integer|Mult16By8]]
 
[[Category:83Plus:BCALLs:By Name|Mult16By8]]
 
[[Category:83Plus:BCALLs:By Name|Mult16By8]]
 
[[Category:83Plus:BCALLs:By Address|8045 - Mult16By8]]
 
[[Category:83Plus:BCALLs:By Address|8045 - Mult16By8]]

Revision as of 19:44, 29 March 2005

Synopsis

Official Name: Mult16By8

Other Name: MultAbyDE

BCALL Address: 8045

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

Inputs

  • A = operand 1
  • DE = operand 2

Outputs

  • HL = A * DE

Destroys

  • A, HL, DE

Comments

Simple enough to implement yourself if speed is important.

Example

 ld     a,4
 ld     de,105h
 B_CALL MultAbyDE  ;should return 414h or 1044 decimal