1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00
cc65/libsrc/atari/carthdr.s

24 lines
672 B
ArmAsm
Raw Normal View History

2014-01-06 19:24:29 +00: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 22:12:35 +00:00
.export __CART_HEADER__: absolute = 1
2014-01-06 19:24:29 +00:00
2014-01-17 20:20:53 +00:00
.import __CARTSIZE__, __CARTFLAGS__, cartinit, cartstart
2014-01-14 22:12:35 +00:00
.include "atari.inc"
2014-01-06 19:24:29 +00:00
2014-01-16 22:45:48 +00:00
.segment "CARTHDR"
2014-01-06 19:24:29 +00:00
2014-01-14 22:12:35 +00:00
.word cartstart ; start routine
.byte 0 ; must be zero
.byte <__CARTFLAGS__
.word cartinit ; init routine
2014-01-06 19:24:29 +00:00
2014-01-17 19:08:41 +00:00
.assert (__CARTSIZE__ = $2000 || __CARTSIZE__ = $4000), error, "Cartridge size must either be $2000 or $4000"
2014-01-14 22:12:35 +00:00
.endif ; .ifndef __ATARIXL__