]> git.sur5r.net Git - cc65/blob - libsrc/atmos/tapehdr.s
Merge remote-tracking branch 'upstream/master' into creativision
[cc65] / libsrc / atmos / tapehdr.s
1 ;
2 ; Based on code by Debrune Jérôme <jede@oric.org>
3 ; 2016-03-17, Greg King
4 ;
5
6         ; The following symbol is used by the linker config. file
7         ; to force this module to be included into the output file.
8         .export __TAPEHDR__:abs = 1
9
10         ; These symbols, also, come from the configuration file.
11         .import __AUTORUN__, __PROGFLAG__
12         .import __BASHEAD_START__, __MAIN_LAST__
13
14
15 ; ------------------------------------------------------------------------
16 ; Oric cassette-tape header
17
18 .segment        "TAPEHDR"
19
20         .byte   $16, $16, $16           ; Sync bytes
21         .byte   $24                     ; Beginning-of-header marker
22
23         .byte   $00                     ; $2B0
24         .byte   $00                     ; $2AF
25         .byte   <__PROGFLAG__           ; $2AE Language flag ($00=BASIC, $80=machine code)
26         .byte   <__AUTORUN__            ; $2AD Auto-run flag ($C7=run, $00=only load)
27         .dbyt   __MAIN_LAST__ - 1       ; $2AB Address of end of file
28         .dbyt   __BASHEAD_START__       ; $2A9 Address of start of file
29         .byte   $00                     ; $2A8
30
31         ; File name (a maximum of 17 characters), zero-terminated
32         .asciiz .sprintf("%u", .time)