Add support to create cartridges.

This commit is contained in:
Christian Groessler
2014-01-06 20:24:29 +01:00
parent b1c8f8e714
commit b237bb9d9a
4 changed files with 143 additions and 0 deletions

20
libsrc/atari/carthdr.s Normal file
View File

@@ -0,0 +1,20 @@
; Cartridge "header"
; (In fact, it's at the end of the cartridge, so more a "trailer".)
;
; Christian Groessler, 06-Jan-2014
.ifndef __ATARIXL__
.import __CARTFLAGS__, cartinit, cartstart
.export __CART_HEADER__: absolute = 1
.include "atari.inc"
.segment "CARTHDR"
.word cartstart ; start routine
.byte 0 ; must be zero
.byte <__CARTFLAGS__
.word cartinit ; init routine
.endif ; .ifndef __ATARIXL__