Re: [cc65] bug in shifts of long-type values

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2000-03-11 22:06:45


Hi!

> There seems to be a bug in the shifting of 'long' type variables:

This is a bug - thanks a lot for the report. To fix it, apply the following
patch in the lib/runtime directory, and recompile the library:

-----------------------------------------------------------------------------
*** lshl.s~	Sat Mar 11 22:04:14 2000
--- lshl.s	Sat Mar 11 22:04:43 2000
***************
*** 52,58 ****
     	sbc  	#8
         	ldx  	ptr2
     	stx  	ptr2+1
!    	ldx  	ptr1+2
     	stx  	ptr2
     	ldx  	ptr1
  	stx	ptr1+1
--- 52,58 ----
     	sbc  	#8
         	ldx  	ptr2
     	stx  	ptr2+1
!    	ldx  	ptr1+1
     	stx  	ptr2
     	ldx  	ptr1
  	stx	ptr1+1
-----------------------------------------------------------------------------

Regards


	Uz


--
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:35 CET