]> git.sur5r.net Git - cc65/blob - libsrc/atari/cashdr.s
8d3d0868a9722226913edb7216732363fe822f9d
[cc65] / libsrc / atari / cashdr.s
1 ;
2 ; Cassette boot file header
3 ;
4 ; Christian Groessler, chris@groessler.org, 2013
5 ;
6
7 .ifndef __ATARIXL__
8
9         .include "atari.inc"
10
11         .import __BSS_RUN__, __STARTADDRESS__, start
12         .export _cas_init
13
14 .segment        "CASHDR"
15
16         .byte   0       ; ignored
17         .byte   <((__BSS_RUN__ - __STARTADDRESS__ + 127 + 6) / 128)
18         .word   __STARTADDRESS__
19         .word   _cas_init
20
21 .segment        "CASINIT"
22
23         lda     #33
24         ldy     #80
25         sta     (SAVMSC),y
26         clc
27         rts
28
29 _cas_init:
30         lda     #34
31         ldy     #81
32         sta     (SAVMSC),y
33
34         lda     #<start
35         sta     DOSVEC
36         lda     #>start
37         sta     DOSVEC+1
38         rts
39
40 .endif  ; .ifdef __ATARIXL__