From: cuz Date: Mon, 2 Feb 2004 13:34:12 +0000 (+0000) Subject: Use the assembler version as BASIC line number, so the version of the X-Git-Tag: V2.12.0~940 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=be5adac6930c214cb2334083685428b4fc35a3fb;p=cc65 Use the assembler version as BASIC line number, so the version of the assembler (and probably compiler) can be determined from a compiled executable. Nice idea from Stefan Haubenthal. git-svn-id: svn://svn.cc65.org/cc65/trunk@2880 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/c128/crt0.s b/libsrc/c128/crt0.s index 324e1a5de..ea70a8dc8 100644 --- a/libsrc/c128/crt0.s +++ b/libsrc/c128/crt0.s @@ -32,7 +32,7 @@ IRQInd = $2FD ; JMP $0000 - used as indirect IRQ vector .org $1BFF .word Head ; Load address Head: .word @Next - .word 1000 ; Line number + .word .version ; Line number .byte $9E,"7181" ; SYS 7181 .byte $00 ; End of BASIC line @Next: .word 0 ; BASIC end marker diff --git a/libsrc/c16/crt0.s b/libsrc/c16/crt0.s index 23c531b83..7065be969 100644 --- a/libsrc/c16/crt0.s +++ b/libsrc/c16/crt0.s @@ -25,7 +25,7 @@ .word Head ; Load address Head: .word @Next - .word 1000 ; Line number + .word .version ; Line number .byte $9E,"4109" ; SYS 4109 .byte $00 ; End of BASIC line @Next: .word 0 ; BASIC end marker diff --git a/libsrc/c64/crt0.s b/libsrc/c64/crt0.s index 165d4e690..63d4c864c 100644 --- a/libsrc/c64/crt0.s +++ b/libsrc/c64/crt0.s @@ -24,7 +24,7 @@ .word Head ; Load address Head: .word @Next - .word 1000 ; Line number + .word .version ; Line number .byte $9E,"2061" ; SYS 2061 .byte $00 ; End of BASIC line @Next: .word 0 ; BASIC end marker diff --git a/libsrc/pet/crt0.s b/libsrc/pet/crt0.s index 5fc6f2a11..69ff92eb7 100644 --- a/libsrc/pet/crt0.s +++ b/libsrc/pet/crt0.s @@ -23,7 +23,7 @@ .word Head ; Load address Head: .word @Next - .word 1000 ; Line number + .word .version ; Line number .byte $9E,"1037" ; SYS 1037 .byte $00 ; End of BASIC line @Next: .word 0 ; BASIC end marker diff --git a/libsrc/plus4/crt0.s b/libsrc/plus4/crt0.s index d6039a36b..ea515fe64 100644 --- a/libsrc/plus4/crt0.s +++ b/libsrc/plus4/crt0.s @@ -28,7 +28,7 @@ IRQInd = $500 ; JMP $0000 - used as indirect IRQ vector .word Head ; Load address Head: .word @Next - .word 1000 ; Line number + .word .version ; Line number .byte $9E,"4109" ; SYS 4109 .byte $00 ; End of BASIC line @Next: .word 0 ; BASIC end marker diff --git a/libsrc/vic20/crt0.s b/libsrc/vic20/crt0.s index 622bed4d7..72d5799af 100644 --- a/libsrc/vic20/crt0.s +++ b/libsrc/vic20/crt0.s @@ -24,7 +24,7 @@ .word Head ; Load address Head: .word @Next - .word 1000 ; Line number + .word .version ; Line number .byte $9E ; SYS token .byte <(((@Start / 1000) .mod 10) + $30) .byte <(((@Start / 100) .mod 10) + $30)