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
This commit is contained in:
uz
2011-08-15 15:23:31 +00:00
parent 6e32190cae
commit 7ed3fdc803
2 changed files with 4 additions and 4 deletions

View File

@@ -87,17 +87,17 @@ next: plx ; Restore index
; x offset for the line starting point ; x offset for the line starting point
; - a positive value means relative to the frame left edge ; - a positive value means relative to the frame left edge
; - a negative value menas relative to the frame right 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 ; y offset for the line starting point
; - a positive value means relative to the frame top ; - a positive value means relative to the frame top
; - a negative value menas relative to the frame bottom ; - 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 ; length of the line relative to the frame size
; - a negative value for hlines means shorter than the width ; - a negative value for hlines means shorter than the width
; - a negative value for vlines menas shorter than the height ; - 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 ; character to use for drawing the line
; - hibit set means normal printable character ; - hibit set means normal printable character

View File

@@ -834,7 +834,7 @@ OUTTEXT:
lda Y1+1 lda Y1+1
sta text_y+1 sta text_y+1
ldy #-1 ; Calculate string length ldy #<-1 ; Calculate string length
@L2: @L2:
iny iny
lda (STRPTR),y lda (STRPTR),y