@@ -91,7 +91,7 @@ _a.__DATA__:
9191 ; ((aN-1 * bN-2) + aN-2) * bN-3 + ...
9292#line 1 "/zxbasic/src/lib/arch/zxnext/runtime/arith/mul16.asm"
9393 push namespace core
94- __MUL16: ; Mutiplies HL with the last value stored into de stack
94+ __MUL16: ; Multiplies HL with the last value stored into de stack
9595 ; Works for both signed and unsigned
9696 PROC
9797 ex de , hl
@@ -244,7 +244,7 @@ __FNMUL2:
244244 ; This function will resize (REALLOC) the space pointed by HL
245245 ; before copying the content of b$ into a$
246246#line 1 "/zxbasic/src/lib/arch/zxnext/runtime/strcpy.asm"
247- #line 1 "/zxbasic/src/lib/arch/zxnext/runtime/realloc.asm"
247+ #line 1 "/zxbasic/src/lib/arch/zxnext/runtime/mem/ realloc.asm"
248248; vim: ts=4:et:sw=4:
249249 ; Copyleft (K) by Jose M. Rodriguez de la Rosa
250250 ; (a.k.a. Boriel)
@@ -338,8 +338,19 @@ __STOP:
338338 ld (ERR_NR) , a
339339 ret
340340 pop namespace
341- #line 70 "/zxbasic/src/lib/arch/zxnext/runtime/realloc.asm"
342- #line 1 "/zxbasic/src/lib/arch/zxnext/runtime/alloc.asm"
341+ #line 70 "/zxbasic/src/lib/arch/zxnext/runtime/mem/realloc.asm"
342+ #line 1 "/zxbasic/src/lib/arch/zxnext/runtime/mem/alloc.asm"
343+ ; vim: ts=4:et:sw=4:
344+ ; Copyleft (K) by Jose M. Rodriguez de la Rosa
345+ ; (a.k.a. Boriel)
346+ ; http://www.boriel.com
347+ ;
348+ ; This ASM library is licensed under the MIT license
349+ ; you can use it for any purpose (even for commercial
350+ ; closed source programs).
351+ ;
352+ ; Please read the MIT license on the internet
353+ #line 1 "/zxbasic/src/lib/arch/zx48k/runtime/mem/alloc.asm"
343354; vim: ts=4:et:sw=4:
344355 ; Copyleft (K) by Jose M. Rodriguez de la Rosa
345356 ; (a.k.a. Boriel)
@@ -399,7 +410,7 @@ __STOP:
399410 ; HL = BLOCK Start & DE = Length.
400411 ; An init directive is useful for initialization routines.
401412 ; They will be added automatically if needed.
402- #line 1 "/zxbasic/src/lib/arch/zxnext/runtime/heapinit.asm"
413+ #line 1 "/zxbasic/src/lib/arch/zxnext/runtime/mem/ heapinit.asm"
403414; vim: ts=4:et:sw=4:
404415 ; Copyleft (K) by Jose M. Rodriguez de la Rosa
405416 ; (a.k.a. Boriel)
@@ -506,7 +517,7 @@ __MEM_INIT2:
506517 ret
507518 ENDP
508519 pop namespace
509- #line 70 "/zxbasic/src/lib/arch/zxnext /runtime/alloc.asm"
520+ #line 70 "/zxbasic/src/lib/arch/zx48k /runtime/mem /alloc.asm"
510521 ; ---------------------------------------------------------------------
511522 ; MEM_ALLOC
512523 ; Allocates a block of memory in the heap.
@@ -537,9 +548,9 @@ __MEM_START:
537548__MEM_LOOP: ; Loads lengh at (HL, HL+). If Lenght >= BC, jump to __MEM_DONE
538549 ld a , h ; HL = NULL (No memory available?)
539550 or l
540- #line 113 "/zxbasic/src/lib/arch/zxnext /runtime/alloc.asm"
551+ #line 113 "/zxbasic/src/lib/arch/zx48k /runtime/mem /alloc.asm"
541552 ret z ; NULL
542- #line 115 "/zxbasic/src/lib/arch/zxnext /runtime/alloc.asm"
553+ #line 115 "/zxbasic/src/lib/arch/zx48k /runtime/mem /alloc.asm"
543554 ; HL = Pointer to Free block
544555 ld e , (hl)
545556 inc hl
@@ -604,8 +615,9 @@ __MEM_SUBTRACT:
604615 ret
605616 ENDP
606617 pop namespace
607- #line 71 "/zxbasic/src/lib/arch/zxnext/runtime/realloc.asm"
608- #line 1 "/zxbasic/src/lib/arch/zxnext/runtime/free.asm"
618+ #line 13 "/zxbasic/src/lib/arch/zxnext/runtime/mem/alloc.asm"
619+ #line 71 "/zxbasic/src/lib/arch/zxnext/runtime/mem/realloc.asm"
620+ #line 1 "/zxbasic/src/lib/arch/zxnext/runtime/mem/free.asm"
609621; vim: ts=4:et:sw=4:
610622 ; Copyleft (K) by Jose M. Rodriguez de la Rosa
611623 ; (a.k.a. Boriel)
@@ -763,7 +775,7 @@ __MEM_BLOCK_JOIN: ; Joins current block (pointed by HL) with next one (pointed
763775 ret
764776 ENDP
765777 pop namespace
766- #line 72 "/zxbasic/src/lib/arch/zxnext/runtime/realloc.asm"
778+ #line 72 "/zxbasic/src/lib/arch/zxnext/runtime/mem/ realloc.asm"
767779 ; ---------------------------------------------------------------------
768780 ; MEM_REALLOC
769781 ; Reallocates a block of memory in the heap.
0 commit comments