From: uz Date: Mon, 15 Aug 2011 15:23:31 +0000 (+0000) Subject: Fixed range errors when negative numbers where used as bytes. This wasn't X-Git-Tag: V2.13.3~296 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ed3fdc803508cbf8f54309356c0dd5e2ba76751;p=cc65 Fixed range errors when negative numbers where used as bytes. This wasn't flagged by older ca65 versions because of errors in the range checks. git-svn-id: svn://svn.cc65.org/cc65/trunk@5166 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/apple2/textframe.s b/libsrc/apple2/textframe.s index c62cbb75d..b88063431 100644 --- a/libsrc/apple2/textframe.s +++ b/libsrc/apple2/textframe.s @@ -87,17 +87,17 @@ next: plx ; Restore index ; x offset for the line starting point ; - a positive value means relative to the frame left edge ; - a negative value menas relative to the frame right edge -XOFFS: .byte 0, 0, 0, -2, 1, 0, 1, -2 +XOFFS: .byte 0, 0, 0, <-2, 1, 0, 1, <-2 ; y offset for the line starting point ; - a positive value means relative to the frame top ; - a negative value menas relative to the frame bottom -YOFFS: .byte 0, 1, -2, 1, 0, 0, -2, 0 +YOFFS: .byte 0, 1, <-2, 1, 0, 0, <-2, 0 ; length of the line relative to the frame size ; - a negative value for hlines means shorter than the width ; - a negative value for vlines menas shorter than the height -LENGTH: .byte 0, -2, 0, -2, -2, 0, -2, 0 +LENGTH: .byte 0, <-2, 0, <-2, <-2, 0, <-2, 0 ; character to use for drawing the line ; - hibit set means normal printable character diff --git a/libsrc/lynx/lynx-160-102-16.s b/libsrc/lynx/lynx-160-102-16.s index 5857a4f35..cef47ddbd 100644 --- a/libsrc/lynx/lynx-160-102-16.s +++ b/libsrc/lynx/lynx-160-102-16.s @@ -834,7 +834,7 @@ OUTTEXT: lda Y1+1 sta text_y+1 - ldy #-1 ; Calculate string length + ldy #<-1 ; Calculate string length @L2: iny lda (STRPTR),y