]> git.sur5r.net Git - cc65/blob - libsrc/atmos/atmos_save.s
Remove trailings spaces from CBM-related asm files
[cc65] / libsrc / atmos / atmos_save.s
1 ; Based on code by Twilighte.
2 ; 2012-05-06, Stefan Haubenthal
3 ; 2013-07-22, Greg King
4 ;
5 ; void __fastcall__ atmos_save(const char* name, const void* start, const void* end);
6
7         .export         _atmos_save
8         .import         popax, store_filename
9
10         .include        "atmos.inc"
11
12
13 .proc   _atmos_save
14
15         sei
16         sta     FILEEND
17         stx     FILEEND+1
18         jsr     popax
19         sta     FILESTART
20         stx     FILESTART+1
21         jsr     popax
22         jsr     store_filename
23         lda     #00
24         sta     AUTORUN
25         jsr     csave_bit
26         cli
27         rts
28 csave_bit:
29         php
30         jmp     $e92c
31
32 .endproc