6502: Make crt0 put the right address in the header not a hardcode
authorAlan Cox <alan@linux.intel.com>
Thu, 5 Oct 2017 23:07:20 +0000 (00:07 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 5 Oct 2017 23:07:20 +0000 (00:07 +0100)
Library/libs/crt0_6502.s
Library/libs/crt0nostdio_6502.s

index 9da5fff..a5f4e35 100644 (file)
 
 .segment "STARTUP"
 
+head:
        jmp     start
 
        .byte   'F'
        .byte   'Z'
        .byte   'X'
        .byte   '1'
-       .byte   $20
+       .byte   >head
        .word   0
        .word   __CODE_SIZE__ + __RODATA_SIZE__
        .word   __DATA_SIZE__
index 0162852..9806f80 100644 (file)
 
 .segment "STARTUP"
 
+head:
        jmp     start
 
        .byte   'F'
        .byte   'Z'
        .byte   'X'
        .byte   '1'
-       .byte   $20
+       .byte   >head
        .word   0
        .word   __CODE_SIZE__ + __RODATA_SIZE__
        .word   __DATA_SIZE__