]> git.sur5r.net Git - cc65/commitdiff
- fixed wrong parameters for <, >
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 19 Mar 2004 23:03:21 +0000 (23:03 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 19 Mar 2004 23:03:21 +0000 (23:03 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2944 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos/inc/geosmac.ca65.inc

index 6121187835aacce03b29cb65600bab74ccb0601f..b932e3cc6df93addfabf51a463cc08c0af703a3d 100644 (file)
@@ -13,8 +13,8 @@
        .endmacro
 
        .macro          LoadW dest, value
-       LoadB dest+1, >value
-       LoadB dest+0, <value
+       LoadB dest+1, >(value)
+       LoadB dest+0, <(value)
        .endmacro
 
        .macro          MoveB source, dest
        .macro          AddVB value, dest
        lda dest
        clc
-       adc #value
+       adc #(value)
        sta dest
        .endmacro
 
        .macro          AddVW value, dest
 .local Skip
-       clc
-       lda #<value
-       adc dest+0
-       sta dest+0
-       .if (>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+0
        lda dest+1
-       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, <immed
+       CmpBI source+0, <(immed)
 Skip:
        .endmacro
 
@@ -240,12 +237,12 @@ Skip:     pla
 
        .macro          addv value
        clc
-       adc #value
+       adc #(value)
        .endmacro
 
        .macro          subv value
        sec
-       sbc #value
+       sbc #(value)
        .endmacro
 
        .macro          bnex addr