Skip to content

Commit 1d48a4e

Browse files
committed
Optimize mul16
Saves 4-t states and 1 byte
1 parent 42434de commit 1d48a4e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

library-asm/mul16.asm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ __MUL16: ; Mutiplies HL with the last value stored into de stack
3232

3333
__MUL16_FAST:
3434
ld b, 16
35-
ld a, d
36-
ld c, e
37-
ex de, hl
35+
ld a, h
36+
ld c, l
3837
ld hl, 0
3938

4039
__MUL16LOOP:

0 commit comments

Comments
 (0)