2 ; Based on code by Debrune Jérôme <jede@oric.org>
3 ; 2015-01-08, Greg King
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
10 ; These symbols, also, come from the configuration file.
11 .import __BASHDR_LOAD__, __ZPSAVE1_LOAD__, __AUTORUN__, __PROGFLAG__
14 ; ------------------------------------------------------------------------
15 ; Oric cassette-tape header
19 .byte $16, $16, $16 ; Sync bytes
20 .byte $24 ; Beginning-of-header marker
24 .byte <__PROGFLAG__ ; $2AE Language flag ($00=BASIC, $80=machine code)
25 .byte <__AUTORUN__ ; $2AD Auto-run flag ($C7=run, $00=only load)
26 .dbyt __ZPSAVE1_LOAD__ ;$2AB Address of end of file
27 .dbyt __BASHDR_LOAD__ ; $2A9 Address of start of file
30 ; File name (a maximum of 17 characters), zero-terminated
31 .asciiz .sprintf("%u", .time)