6f4567e1d176 — Laurens Holst 7 years ago
Class: Load ix directly in stead of with push/pop.
1 files changed, 4 insertions(+), 4 deletions(-)

M src/Class.asm
M src/Class.asm +4 -4
@@ 7,11 7,11 @@ Cont:
 	ld c,(iy - 2)
 	ld b,(iy - 1)
 	call Heap_Allocate
-	push de
+	ld ixl,e
+	ld ixh,d
 	push iy
 	pop hl
 	ldir
-	pop ix
 	ret
 	ENDP
 

          
@@ 44,9 44,9 @@ Class_Destroy:
 Class_Copy:
 	ld c,(iy - 2)
 	ld b,(iy - 1)
-	push de
+	ld ixl,e
+	ld ixh,d
 	push iy
 	pop hl
 	ldir
-	pop ix
 	ret