Skip to content

Commit 486abd2

Browse files
committed
refact: use MUL16 for array always in zxnext
1 parent ec441c3 commit 486abd2

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

src/arch/zxnext/library-asm/array.asm

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ LOOP:
8888
exx
8989
pop de ; DE = Max bound Number (i-th dimension)
9090

91-
call __FNMUL
91+
call __MUL16_FAST
9292
jp LOOP
9393

9494
ARRAY_END:
@@ -98,7 +98,7 @@ ARRAY_END:
9898
#ifdef __BIG_ARRAY__
9999
ld d, 0
100100
ld e, a
101-
call __FNMUL
101+
call __MUL16_FAST
102102
#else
103103
LOCAL ARRAY_SIZE_LOOP
104104

@@ -123,25 +123,6 @@ RET_ADDRESS:
123123
jp 0
124124

125125
;; Performs a faster multiply for little 16bit numbs
126-
LOCAL __FNMUL, __FNMUL2
127-
128-
__FNMUL:
129-
xor a
130-
or h
131-
jp nz, __MUL16_FAST
132-
or l
133-
ret z
134-
135-
cp 33
136-
jp nc, __MUL16_FAST
137-
138-
ld b, l
139-
ld l, h ; HL = 0
140-
141-
__FNMUL2:
142-
add hl, de
143-
djnz __FNMUL2
144-
ret
145126

146127
TMP_ARR_PTR:
147128
DW 0 ; temporary storage for pointer to tables

0 commit comments

Comments
 (0)