Commits

Jose Rodriguez  committed 0a2e92b

Test updated.
Test updated to reflect new fixes.

  • Participants
  • Parent commits 9b1c449

Comments (0)

Files changed (3)

File tests/print.asm

 __FPSTACK_PUSH2: ; Pushes Current A ED CB registers and top of the stack on (SP + 4)
 	                 ; Second argument to push into the stack calculator is popped out of the stack
 	                 ; Since the caller routine also receives the parameters into the top of the stack
-	                 ; For bytes must be removed from SP before pop them out
+	                 ; four bytes must be removed from SP before pop them out
 	
 	    call __FPSTACK_PUSH ; Pushes A ED CB into the FP-STACK
 	    exx

File tests/strsigil.asm

 	
 		push hl
 		call __STRLEN
+		inc bc			; Last character position + 1 (string starts from 0)	
 		or a
 		sbc hl, bc		; Compares length with last char position
-		inc bc			; Last character position + 1 (string starts from 0)	
 		jr nc, __CONT	; If Carry => We must copy to end of string
 		add hl, bc		; Restore back original LEN(a$) in HL
 		ld b, h
 		ld c, (hl)
 		inc hl
 		ld b, (hl)
-		inc hl
 	
 		ld a, b
 		or c
 		jr z, __ASC_END		; No length? return
 	
+		inc hl
 		ld a, (hl)
+	    dec hl
 		
 __ASC_END:
 		dec hl
-		dec hl
 		ex af, af'
 		or a
 		call nz, __MEM_FREE	; Free memory if needed

File tests/valcrash2.asm

 __FPSTACK_PUSH2: ; Pushes Current A ED CB registers and top of the stack on (SP + 4)
 	                 ; Second argument to push into the stack calculator is popped out of the stack
 	                 ; Since the caller routine also receives the parameters into the top of the stack
-	                 ; For bytes must be removed from SP before pop them out
+	                 ; four bytes must be removed from SP before pop them out
 	
 	    call __FPSTACK_PUSH ; Pushes A ED CB into the FP-STACK
 	    exx