83Plus:BCALLs:8045: Difference between revisions

From WikiTI
Jump to navigationJump to search
m Official name.
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name:Math|Mult16By8]]
[[Category:83Plus:BCALLs:By Name:Math:Integer|Mult16By8]] [[Category:83Plus:BCALLs:By Name:Math|Mult16By8]] [[Category:83Plus:BCALLs:By Name|Mult16By8]] [[Category:83Plus:BCALLs:By Address|8045 - Mult16By8]]
[[Category:83Plus:BCALLs:By Name|Mult16By8]]
[[Category:83Plus:BCALLs:By Address|8045 - Mult16By8]]
== Synopsis ==
== Synopsis ==
'''Official Name:''' Mult16By8
'''Official Name:''' Mult16By8

Latest revision as of 04:50, 30 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