@@ -102,31 +102,10 @@ __MUL16: ; Mutiplies HL with the last value stored into de stack
102102 pop hl ; Return address
103103 ex ( sp ) , hl ; CALLEE caller convention
104104
105- ;;__MUL16_FAST: ; __FASTCALL ENTRY: HL = 1st operand, DE = 2nd Operand
106- ;; ld c, h
107- ;; ld a, l ; C,A => 1st Operand
108- ;;
109- ;; ld hl, 0 ; Accumulator
110- ;; ld b, 16
111- ;;
112- ;;__MUL16LOOP:
113- ;; sra c ; C,A >> 1 (Arithmetic)
114- ;; rra
115- ;;
116- ;; jr nc, __MUL16NOADD
117- ;; add hl, de
118- ;;
119- ;;__MUL16NOADD:
120- ;; sla e
121- ;; rl d
122- ;;
123- ;; djnz __MUL16LOOP
124-
125105__MUL16_FAST:
126106 ld b , 16
127- ld a , d
128- ld c , e
129- ex de , hl
107+ ld a , h
108+ ld c , l
130109 ld hl , 0
131110
132111__MUL16LOOP:
@@ -145,7 +124,7 @@ __MUL16NOADD:
145124
146125#line 20 "array.asm"
147126
148- #line 24 "/src/zxb/trunk /library-asm/array.asm"
127+ #line 24 "/zbasic /library-asm/array.asm"
149128
150129__ARRAY:
151130 PROC
@@ -168,10 +147,10 @@ __ARRAY:
168147 ld hl , 0 ; BC = Offset "accumulator"
169148
170149LOOP :
171- #line 49 "/src/zxb/trunk /library-asm/array.asm"
150+ #line 49 "/zbasic /library-asm/array.asm"
172151 pop bc ; Get next index (Ai) from the stack
173152
174- #line 59 "/src/zxb/trunk /library-asm/array.asm"
153+ #line 59 "/zbasic /library-asm/array.asm"
175154
176155 add hl , bc ; Adds current index
177156
@@ -201,7 +180,7 @@ ARRAY_END:
201180 push de
202181 exx
203182
204- #line 92 "/src/zxb/trunk /library-asm/array.asm"
183+ #line 92 "/zbasic /library-asm/array.asm"
205184 LOCAL ARRAY_SIZE_LOOP
206185
207186 ex de , hl
@@ -232,7 +211,7 @@ ARRAY_SIZE_LOOP:
232211
233212 ;add hl, de
234213 ;__ARRAY_FIN:
235- #line 123 "/src/zxb/trunk /library-asm/array.asm"
214+ #line 123 "/zbasic /library-asm/array.asm"
236215
237216 pop de
238217 add hl , de ; Adds element start
0 commit comments