1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00
cc65/libsrc/atari/carthdr.s
2014-01-17 21:20:53 +01:00

24 lines
672 B
ArmAsm

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