Difference between revisions of "83Plus:BCALLs:8042"
From WikiTI
(→Outputs) |
m |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:83Plus:BCALLs:By Name:Math| | + | [[Category:83Plus:BCALLs:By Name:Math:Integer|Mult8By8]] [[Category:83Plus:BCALLs:By Name:Math|Mult8By8]] [[Category:83Plus:BCALLs:By Name|Mult8By8]] [[Category:83Plus:BCALLs:By Address|8042 - Mult8By8]] |
− | [[Category:83Plus:BCALLs:By Name| | + | |
− | [[Category:83Plus:BCALLs:By Address|8042 - | + | |
== Synopsis == | == Synopsis == | ||
− | '''Official Name:''' | + | '''Official Name:''' Mult8By8 |
+ | |||
+ | '''Other Name:''' MultAbyE | ||
'''BCALL Address:''' 8042 | '''BCALL Address:''' 8042 | ||
Line 10: | Line 10: | ||
=== Inputs === | === Inputs === | ||
− | * a | + | * a = operand 1 |
− | * e | + | * e = operand 2 |
− | + | ||
=== Outputs === | === Outputs === | ||
Line 18: | Line 17: | ||
=== Destroys === | === Destroys === | ||
− | * | + | * A, HL, DE |
== Comments == | == Comments == | ||
Line 26: | Line 25: | ||
ld a,4 | ld a,4 | ||
ld e,5 | ld e,5 | ||
− | B_CALL | + | B_CALL MultAbyE ;should return 14h or 20 decimal |
Latest revision as of 20:50, 29 March 2005
Synopsis
Official Name: Mult8By8
Other 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