Atari: initial support to create cassette bootable programs -- unfinished
This commit is contained in:
40
libsrc/atari/cashdr.s
Normal file
40
libsrc/atari/cashdr.s
Normal file
@@ -0,0 +1,40 @@
|
||||
;
|
||||
; Cassette boot file header
|
||||
;
|
||||
; Christian Groessler, chris@groessler.org, 2013
|
||||
;
|
||||
|
||||
.ifndef __ATARIXL__
|
||||
|
||||
.include "atari.inc"
|
||||
|
||||
.import __BSS_RUN__, __STARTADDRESS__, start
|
||||
.export _cas_init
|
||||
|
||||
.segment "CASHDR"
|
||||
|
||||
.byte 0 ; ignored
|
||||
.byte <((__BSS_RUN__ - __STARTADDRESS__ + 127 + 6) / 128)
|
||||
.word __STARTADDRESS__
|
||||
.word _cas_init
|
||||
|
||||
.segment "CASINIT"
|
||||
|
||||
lda #33
|
||||
ldy #80
|
||||
sta (SAVMSC),y
|
||||
clc
|
||||
rts
|
||||
|
||||
_cas_init:
|
||||
lda #34
|
||||
ldy #81
|
||||
sta (SAVMSC),y
|
||||
|
||||
lda #<start
|
||||
sta DOSVEC
|
||||
lda #>start
|
||||
sta DOSVEC+1
|
||||
rts
|
||||
|
||||
.endif ; .ifdef __ATARIXL__
|
||||
Reference in New Issue
Block a user