From e1b4d06d288ebc11792ef446ac05af29ca05aa0a Mon Sep 17 00:00:00 2001 From: izydorst Date: Fri, 19 Mar 2004 23:03:21 +0000 Subject: [PATCH] - fixed wrong parameters for <, > git-svn-id: svn://svn.cc65.org/cc65/trunk@2944 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/geos/inc/geosmac.ca65.inc | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/libsrc/geos/inc/geosmac.ca65.inc b/libsrc/geos/inc/geosmac.ca65.inc index 612118783..b932e3cc6 100644 --- a/libsrc/geos/inc/geosmac.ca65.inc +++ b/libsrc/geos/inc/geosmac.ca65.inc @@ -13,8 +13,8 @@ .endmacro .macro LoadW dest, value - LoadB dest+1, >value - LoadB dest+0, (value) + LoadB dest+0, <(value) .endmacro .macro MoveB source, dest @@ -48,21 +48,18 @@ .macro AddVB value, dest lda dest clc - adc #value + adc #(value) sta dest .endmacro .macro AddVW value, dest .local Skip - clc - lda #value)=0 + AddVB <(value), dest+0 + .if (>(value))=0 bcc Skip inc dest+1 .else - lda #>value + lda #>(value) adc dest+1 sta dest+1 .endif @@ -90,10 +87,10 @@ Skip: .macro SubVW value, dest sec lda dest+0 - sbc #value + sbc #>(value) sta dest+1 .endmacro @@ -104,7 +101,7 @@ Skip: .macro CmpBI source, immed lda source - cmp #immed + cmp #(immed) .endmacro .macro CmpW source, dest @@ -117,9 +114,9 @@ Skip: .macro CmpWI source, immed .local Skip - CmpBI source+1, >immed + CmpBI source+1, >(immed) bne Skip - CmpBI source+0,