Tape load and save functions for the Oric Atmos. By Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5660 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
28
libsrc/atmos/atmos_save.s
Normal file
28
libsrc/atmos/atmos_save.s
Normal file
@@ -0,0 +1,28 @@
|
||||
; Stefan Haubenthal, 2012-05-06
|
||||
; based on code by Twilighte
|
||||
; void __fastcall__ atmos_save(const char* name, const void* start, const void* end);
|
||||
|
||||
.export _atmos_save
|
||||
.import popax, store_filename
|
||||
|
||||
|
||||
.proc _atmos_save
|
||||
|
||||
sei
|
||||
sta $02ab ; file end lo
|
||||
stx $02ac ; file end hi
|
||||
jsr popax
|
||||
sta $02a9 ; file start lo
|
||||
stx $02aa ; file start hi
|
||||
jsr popax
|
||||
jsr store_filename
|
||||
lda #00
|
||||
sta $02ad
|
||||
jsr csave_bit
|
||||
cli
|
||||
rts
|
||||
csave_bit:
|
||||
php
|
||||
jmp $e92c
|
||||
|
||||
.endproc
|
||||
Reference in New Issue
Block a user