83Plus:BCALLs:8042: Difference between revisions

From WikiTI
Jump to navigationJump to search
Woozle (talk | contribs)
Woozle (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name:Math|multAbyE]]
[[Category:83Plus:BCALLs:By Name:Math|MultAbyE]]
[[Category:83Plus:BCALLs:By Name|multAbyE]]
[[Category:83Plus:BCALLs:By Name|MultAbyE]]
[[Category:83Plus:BCALLs:By Address|8042 - multAbyE]]
[[Category:83Plus:BCALLs:By Address|8042 - MultAbyE]]
== Synopsis ==
== Synopsis ==
'''Official Name:''' multAbyE
'''Official Name:''' MultAbyE


'''BCALL Address:''' 8042
'''BCALL Address:''' 8042
Line 26: Line 26:
   ld    a,4
   ld    a,4
   ld    e,5
   ld    e,5
   B_CALL multAbyE ;should return 14h or 20 decimal
   B_CALL MultAbyE ;should return 14h or 20 decimal

Revision as of 03:18, 29 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