ld d,a
ld b,a
- jp .mulu16
-
-__mulsint_rrx_s::
-__muluint_rrx_s::
+ jp .mul16
+
+__mulint_rrx_s::
ld hl,#2
add hl,sp
-
+
ld e,(hl)
inc hl
ld d,(hl)
ld l,a
;; Fall through
-
+
__muluchar_rrx_hds::
-__mulsint_rrx_hds::
-__muluint_rrx_hds::
+__mulint_rrx_hds::
;; Parameters:
;; HL, DE (left, right irrelivent)
ld b,h
ld c,l
-
+
;; 16-bit multiplication
- ;;
+ ;;
;; Entry conditions
;; BC = multiplicand
;; DE = multiplier
- ;;
+ ;;
;; Exit conditions
;; DE = less significant word of product
;;
;; Register used: AF,BC,DE,HL
.mul16:
-.mulu16:
ld hl,#0
ld a,b
; ld c,c
;; less. This is often the case with support address calls.
or a
jp nz,1$
-
+
ld b,#8
ld a,c
1$:
;; Return in DE
ld e,l
ld d,h
-
+
ret