]> git.sur5r.net Git - cc65/blob - libsrc/atmos/tapehdr.s
* Changed the way that Atmos programs are started.
[cc65] / libsrc / atmos / tapehdr.s
1 ;
2 ; Based on code by Debrune Jérôme <jede@oric.org>
3 ; 2013-08-15, 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         .import __BASHDR_LOAD__, __ZPSAVE_LOAD__, __AUTORUN__, __PROGFLAG__
11
12
13 ; ------------------------------------------------------------------------
14 ; Oric cassette-tape header
15
16 .segment        "TAPEHDR"
17
18         .byte   $16, $16, $16   ; Sync bytes
19         .byte   $24             ; Beginning-of-header marker
20
21         .byte   $00             ; $2B0
22         .byte   $00             ; $2AF
23         .byte   <__PROGFLAG__   ; $2AE Language flag ($00=BASIC, $80=machine code)
24         .byte   <__AUTORUN__    ; $2AD Auto-run flag ($C7=run, $00=only load)
25         .dbyt   __ZPSAVE_LOAD__ ; $2AB Address of end of file
26         .dbyt   __BASHDR_LOAD__ ; $2A9 Address of start of file
27         .byte   $00             ; $2A8
28
29         ; File name (a maximum of 17 characters), zero-terminated
30         .asciiz .sprintf("%u", .time)