From 263b7863a36c463145a3226e96573c1eb2bbce0a Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 25 Feb 2008 07:47:04 +0000 Subject: [PATCH] Oliver Schmidt fixed errors in the LINE and SETPIXELCLIP routines. git-svn-id: svn://svn.cc65.org/cc65/trunk@3812 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/c128/c128-640-200-2.s | 39 ++++++++++++++++++++---------------- libsrc/c128/c128-640-480-2.s | 39 ++++++++++++++++++++---------------- 2 files changed, 44 insertions(+), 34 deletions(-) diff --git a/libsrc/c128/c128-640-200-2.s b/libsrc/c128/c128-640-200-2.s index e195a4a86..3dfed639f 100644 --- a/libsrc/c128/c128-640-200-2.s +++ b/libsrc/c128/c128-640-200-2.s @@ -141,6 +141,7 @@ NY: .res 2 Y3: DX: .res 1 DY: .res 1 +AX: .res 1 AY: .res 1 ; Text output stuff @@ -508,25 +509,25 @@ SETPIXELCLIP: bmi @finito ; y<0 lda X1+1 bmi @finito ; x<0 - lda xres - ldx xres+1 + lda X1 + ldx X1+1 sta ADDR stx ADDR+1 ldx #ADDR - lda X1 - ldy X1+1 - jsr icmp ; if (xres