1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-19 14:29:40 +00:00

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
This commit is contained in:
cuz 2004-02-02 13:34:12 +00:00
parent f0250724a1
commit be5adac693
6 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)