]> git.sur5r.net Git - cc65/commitdiff
Removed '.c65' from include file name.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 9 Feb 2012 09:13:34 +0000 (09:13 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 9 Feb 2012 09:13:34 +0000 (09:13 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5509 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos-common/dlgbox/dlgboxfileselect.s
libsrc/geos-common/geosmac.ca65.inc [deleted file]
libsrc/geos-common/geosmac.inc [new file with mode: 0644]
libsrc/geos-common/graph/drawline.s
testcode/grc/vlir0.s
testcode/grc/vlir1.s
testcode/grc/vlir2.s

index 7acb6b9edeef4b8ba6a3cd89c1d5a03e9543fbb2..b9a073c0cb7a9a87acc561d5243970d4cb437e86 100644 (file)
@@ -11,8 +11,8 @@
 
                .include "jumptab.inc"
                .include "geossym.inc"
+               .include "geosmac.inc"
                .include "const.inc"
-               .include "geosmac.ca65.inc"
 
 .code
 
diff --git a/libsrc/geos-common/geosmac.ca65.inc b/libsrc/geos-common/geosmac.ca65.inc
deleted file mode 100644 (file)
index 00ac677..0000000
+++ /dev/null
@@ -1,320 +0,0 @@
-;
-;GEOS macros
-;reassembled for 6502TASM/MMS by Maciej 'YTM/Elysium' Witkowiak
-;4-2-99
-
-;28-6-99 - ca65 port
-;macro 'sub' renamed to 'ssub' due to 65816 mnemonics
-
-;-------------------------------------------------------------------------
-
-.macro         LoadB dest, value
-       lda #value
-       sta dest
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro LoadW dest, value
-       LoadB dest+1, >(value)
-       LoadB dest+0, <(value)
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro MoveB source, dest
-       lda source
-       sta dest
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro MoveW source, dest
-       MoveB source+1, dest+1
-       MoveB source+0, dest+0
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro add source
-       clc
-       adc source
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro AddB source, dest
-       lda source
-       add dest
-       sta dest
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro AddW source, dest
-       AddB source+0, dest+0
-       lda source+1
-       adc dest+1
-       sta dest+1
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro AddVB value, dest
-       lda dest
-       clc
-       adc #(value)
-       sta dest
-       .endmacro
-
-;-------------------------------------------------------------------------
-
-.macro AddVW value, dest
-.local Skip
-       AddVB <(value), dest+0
-       .if (>(value))=0
-           bcc Skip
-           inc dest+1
-       .else
-           lda #>(value)
-           adc dest+1
-           sta dest+1
-       .endif
-Skip:
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro ssub source
-       sec
-       sbc source
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro SubB source, dest
-       lda dest
-       ssub source
-       sta dest
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro SubW source, dest
-       SubB source+0, dest+0
-       lda dest+1
-       sbc source+1
-       sta dest+1
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro SubVW value, dest
-       sec
-       lda dest+0
-       sbc #<(value)
-       sta dest+0
-       lda dest+1
-       sbc #>(value)
-       sta dest+1
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro CmpB source, dest
-       lda source
-       cmp dest
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro CmpBI source, immed
-       lda source
-       cmp #(immed)
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro CmpW source, dest
-.local Skip    
-       CmpB source+1, dest+1
-       bne Skip
-       CmpB source+0, dest+0
-Skip:
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro CmpWI source, immed
-.local Skip
-       CmpBI source+1, >(immed)
-       bne Skip
-       CmpBI source+0, <(immed)
-Skip:
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro PushB source
-       lda source
-       pha
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro PushW source
-       PushB source+1
-       PushB source+0
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro PopB dest
-       pla
-       sta dest
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro PopW dest
-       PopB dest+0
-       PopB dest+1
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro smb bitNumber, dest
-       pha
-       lda #(1 << bitNumber)
-       ora dest
-       sta dest
-       pla
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro smbf bitNumber, dest
-       lda #(1 << bitNumber)
-       ora dest
-       sta dest
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro rmb bitNumber, dest
-       pha
-       lda #(1 << bitNumber) ^ $ff 
-       and dest
-       sta dest
-       pla
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro rmbf bitNumber, dest
-       lda #(1 << bitNumber) ^ $ff
-       and dest
-       sta dest
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro bbs bitNumber, source, addr
-.local Skip
-       php
-       pha
-       lda source
-       and #(1 << bitNumber)
-       beq Skip
-       pla
-       plp
-       bra addr
-Skip:  pla
-       plp
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro bbsf bitNumber, source, addr
-       .if     bitNumber=7
-               bit source
-               bmi addr
-       .else
-               .if bitNumber=6
-                   bit source
-                   bvs addr
-               .else
-                   lda source
-                   and #(1 << bitNumber)
-                   bne addr
-               .endif
-       .endif
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro bbr bitNumber, source, addr
-.local Skip
-       php
-       pha
-       lda source
-       and #(1 << bitNumber)
-       bne Skip
-       pla
-       plp
-       bra addr
-Skip:  pla
-       plp
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro bbrf bitNumber, source, addr
-       .if bitNumber=7
-           bit source
-           bpl addr
-       .else
-               .if bitNumber=6
-                   bit source
-                   bvc addr
-               .else
-                   lda source
-                   and #(1 << bitNumber)
-                   beq addr
-               .endif
-       .endif
-.endmacro
-
-;-------------------------------------------------------------------------
-
-;03.03.99 by Maciej Witkowiak
-
-;-------------------------------------------------------------------------
-
-.macro addv value
-       clc
-       adc #(value)
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro subv value
-       sec
-       sbc #(value)
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro bnex addr
-       txa
-       bne addr
-.endmacro
-
-;-------------------------------------------------------------------------
-
-.macro beqx addr
-       txa
-       beq addr
-.endmacro
-
-;-------------------------------------------------------------------------
diff --git a/libsrc/geos-common/geosmac.inc b/libsrc/geos-common/geosmac.inc
new file mode 100644 (file)
index 0000000..00ac677
--- /dev/null
@@ -0,0 +1,320 @@
+;
+;GEOS macros
+;reassembled for 6502TASM/MMS by Maciej 'YTM/Elysium' Witkowiak
+;4-2-99
+
+;28-6-99 - ca65 port
+;macro 'sub' renamed to 'ssub' due to 65816 mnemonics
+
+;-------------------------------------------------------------------------
+
+.macro         LoadB dest, value
+       lda #value
+       sta dest
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro LoadW dest, value
+       LoadB dest+1, >(value)
+       LoadB dest+0, <(value)
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro MoveB source, dest
+       lda source
+       sta dest
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro MoveW source, dest
+       MoveB source+1, dest+1
+       MoveB source+0, dest+0
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro add source
+       clc
+       adc source
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro AddB source, dest
+       lda source
+       add dest
+       sta dest
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro AddW source, dest
+       AddB source+0, dest+0
+       lda source+1
+       adc dest+1
+       sta dest+1
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro AddVB value, dest
+       lda dest
+       clc
+       adc #(value)
+       sta dest
+       .endmacro
+
+;-------------------------------------------------------------------------
+
+.macro AddVW value, dest
+.local Skip
+       AddVB <(value), dest+0
+       .if (>(value))=0
+           bcc Skip
+           inc dest+1
+       .else
+           lda #>(value)
+           adc dest+1
+           sta dest+1
+       .endif
+Skip:
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro ssub source
+       sec
+       sbc source
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro SubB source, dest
+       lda dest
+       ssub source
+       sta dest
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro SubW source, dest
+       SubB source+0, dest+0
+       lda dest+1
+       sbc source+1
+       sta dest+1
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro SubVW value, dest
+       sec
+       lda dest+0
+       sbc #<(value)
+       sta dest+0
+       lda dest+1
+       sbc #>(value)
+       sta dest+1
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro CmpB source, dest
+       lda source
+       cmp dest
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro CmpBI source, immed
+       lda source
+       cmp #(immed)
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro CmpW source, dest
+.local Skip    
+       CmpB source+1, dest+1
+       bne Skip
+       CmpB source+0, dest+0
+Skip:
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro CmpWI source, immed
+.local Skip
+       CmpBI source+1, >(immed)
+       bne Skip
+       CmpBI source+0, <(immed)
+Skip:
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro PushB source
+       lda source
+       pha
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro PushW source
+       PushB source+1
+       PushB source+0
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro PopB dest
+       pla
+       sta dest
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro PopW dest
+       PopB dest+0
+       PopB dest+1
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro smb bitNumber, dest
+       pha
+       lda #(1 << bitNumber)
+       ora dest
+       sta dest
+       pla
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro smbf bitNumber, dest
+       lda #(1 << bitNumber)
+       ora dest
+       sta dest
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro rmb bitNumber, dest
+       pha
+       lda #(1 << bitNumber) ^ $ff 
+       and dest
+       sta dest
+       pla
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro rmbf bitNumber, dest
+       lda #(1 << bitNumber) ^ $ff
+       and dest
+       sta dest
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro bbs bitNumber, source, addr
+.local Skip
+       php
+       pha
+       lda source
+       and #(1 << bitNumber)
+       beq Skip
+       pla
+       plp
+       bra addr
+Skip:  pla
+       plp
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro bbsf bitNumber, source, addr
+       .if     bitNumber=7
+               bit source
+               bmi addr
+       .else
+               .if bitNumber=6
+                   bit source
+                   bvs addr
+               .else
+                   lda source
+                   and #(1 << bitNumber)
+                   bne addr
+               .endif
+       .endif
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro bbr bitNumber, source, addr
+.local Skip
+       php
+       pha
+       lda source
+       and #(1 << bitNumber)
+       bne Skip
+       pla
+       plp
+       bra addr
+Skip:  pla
+       plp
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro bbrf bitNumber, source, addr
+       .if bitNumber=7
+           bit source
+           bpl addr
+       .else
+               .if bitNumber=6
+                   bit source
+                   bvc addr
+               .else
+                   lda source
+                   and #(1 << bitNumber)
+                   beq addr
+               .endif
+       .endif
+.endmacro
+
+;-------------------------------------------------------------------------
+
+;03.03.99 by Maciej Witkowiak
+
+;-------------------------------------------------------------------------
+
+.macro addv value
+       clc
+       adc #(value)
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro subv value
+       sec
+       sbc #(value)
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro bnex addr
+       txa
+       bne addr
+.endmacro
+
+;-------------------------------------------------------------------------
+
+.macro beqx addr
+       txa
+       beq addr
+.endmacro
+
+;-------------------------------------------------------------------------
index ebbdc645d607eaa1c839ef713546bd717ca49281..74cb67b74f8c6d562921e6815c898c0859305af7 100644 (file)
@@ -12,7 +12,7 @@
 
            .include "jumptab.inc"
            .include "geossym.inc"
-           .include "geosmac.ca65.inc"
+           .include "geosmac.inc"
 
 _DrawLine:
        tay
index 302f4396b10ab9f5d8d63e7efb3ab5b878f50009..bdb38b51b98be5c83e7efc754429649ab1f1ce27 100644 (file)
@@ -8,7 +8,7 @@
            .include "../../libsrc/geos/inc/const.inc"
            .include "../../libsrc/geos/inc/jumptab.inc"
            .include "../../libsrc/geos/inc/geossym.inc"
-           .include "../../libsrc/geos/inc/geosmac.ca65.inc"
+           .include "../../libsrc/geos/inc/geosmac.inc"
 
     ; import load addresses for all VLIR chains
     ; these labels are defined upon linking with ld65
index 530de4ec46a25ffa9c80db5c31918ad7f40f2a61..bebb028b327bc6abcd4bad6e40ffd45ba8526862 100644 (file)
@@ -8,7 +8,7 @@
            .include "../../libsrc/geos/inc/const.inc"
            .include "../../libsrc/geos/inc/jumptab.inc"
            .include "../../libsrc/geos/inc/geossym.inc"
-           .include "../../libsrc/geos/inc/geosmac.ca65.inc"
+           .include "../../libsrc/geos/inc/geosmac.inc"
 
     ; export names of functions that will be used in the main program
 
index d3fb28264e15f5b56f5ee2e0514f76632fe9347e..d376eee1ba153139145bc6267f18d5a9c44a46d5 100644 (file)
@@ -8,7 +8,7 @@
            .include "../../libsrc/geos/inc/const.inc"
            .include "../../libsrc/geos/inc/jumptab.inc"
            .include "../../libsrc/geos/inc/geossym.inc"
-           .include "../../libsrc/geos/inc/geosmac.ca65.inc"
+           .include "../../libsrc/geos/inc/geosmac.inc"
 
            .export OVERLAY2_Function1
            .export OVERLAY2_Function2