2014-01-06 20:24:29 +01:00
|
|
|
; Cartridge "header"
|
|
|
|
; (In fact, it's at the end of the cartridge, so more a "trailer".)
|
|
|
|
;
|
|
|
|
; Christian Groessler, 06-Jan-2014
|
|
|
|
|
|
|
|
.ifndef __ATARIXL__
|
|
|
|
|
2014-01-14 23:12:35 +01:00
|
|
|
.export __CART_HEADER__: absolute = 1
|
2014-01-06 20:24:29 +01:00
|
|
|
|
2014-01-17 21:20:53 +01:00
|
|
|
.import __CARTSIZE__, __CARTFLAGS__, cartinit, cartstart
|
|
|
|
|
2014-01-14 23:12:35 +01:00
|
|
|
.include "atari.inc"
|
2014-01-06 20:24:29 +01:00
|
|
|
|
2014-01-16 23:45:48 +01:00
|
|
|
.segment "CARTHDR"
|
2014-01-06 20:24:29 +01:00
|
|
|
|
2014-01-14 23:12:35 +01:00
|
|
|
.word cartstart ; start routine
|
|
|
|
.byte 0 ; must be zero
|
|
|
|
.byte <__CARTFLAGS__
|
|
|
|
.word cartinit ; init routine
|
2014-01-06 20:24:29 +01:00
|
|
|
|
2014-01-17 20:08:41 +01:00
|
|
|
.assert (__CARTSIZE__ = $2000 || __CARTSIZE__ = $4000), error, "Cartridge size must either be $2000 or $4000"
|
|
|
|
|
2014-01-14 23:12:35 +01:00
|
|
|
.endif ; .ifndef __ATARIXL__
|