We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b271cae commit 5643016Copy full SHA for 5643016
1 file changed
src/crt/lmulhu.src
@@ -14,20 +14,22 @@ __lmulhu:
14
ld iyl, a
15
push iy
16
push bc
17
- ld iyl, iyh ; ld iy, 0
18
- lea bc, iy + 0
19
- inc de
20
- dec.s de
21
- ld d, b
+ ld c, e
+ lea de, iy + 0 ; UDE = 0, D = 0
+ ld e, c
+ ld c, d
+ ld b, d
22
call __llmulu
23
; E = B
24
; UHL = C
25
; H = UDE
26
; L = D
27
- add iy, sp
+ scf
28
+ sbc hl, hl
29
+ add hl, sp
30
push de
- ld e, (iy - 1) ; H = UDE
- ld (iy - 1), c ; UHL = C
31
+ ld e, (hl) ; H = UDE
32
+ ld (hl), c ; UHL = C
33
pop hl ; UHL = C
34
ld h, e ; H = UDE
35
ld l, d ; L = D
0 commit comments