Skip to content

Commit 25e9b61

Browse files
committed
Change adc.s de, de to rl e \ rl d
1 parent 95d9b15 commit 25e9b61

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/crt/llmulhu.src

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ __llmulhu:
3030
ld h, b
3131
ld.s sp, hl
3232

33+
exx
34+
3335
lea hl, iy + 21
3436
ld b, 8
3537
.L.push_loop:
@@ -39,18 +41,17 @@ __llmulhu:
3941
or a, a ; cf=0
4042
djnz .L.push_loop
4143

42-
sbc hl, hl
43-
ld e, l
44-
ld d, h
45-
46-
exx
44+
ld c, b
4745
sbc hl, hl
4846
ex de, hl
4947
sbc hl, hl
50-
ld c, l
51-
ld b, l
48+
5249
exx
5350

51+
sbc hl, hl
52+
ld e, l
53+
ld d, h
54+
5455
.L.byte_loop:
5556
scf
5657
adc a, a
@@ -60,9 +61,8 @@ __llmulhu:
6061

6162
add ix, ix
6263
adc hl, hl
63-
ex de, hl
64-
adc.s hl, hl
65-
ex de, hl
64+
rl e
65+
rl d
6666

6767
exx
6868
adc hl, hl

0 commit comments

Comments
 (0)