1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 15:29:46 +00:00
cc65/libsrc/lynx/exehdr.s
polluks2 246814e63b
smarter manufacturer
some kind of promotion
2022-02-18 00:43:49 +01:00

28 lines
1.2 KiB
ArmAsm

;
; Karri Kaksonen, 2011
;
; This header contains data for emulators like Handy and Mednafen
;
.import __BANK0BLOCKSIZE__
.import __BANK1BLOCKSIZE__
.export __EXEHDR__: absolute = 1
; ------------------------------------------------------------------------
; EXE header
.segment "EXEHDR"
.byte 'L','Y','N','X' ; magic
.word __BANK0BLOCKSIZE__ ; bank 0 page size
.word __BANK1BLOCKSIZE__ ; bank 1 page size
.word 1 ; version number
.asciiz "Cart name " ; 32 bytes cart name
.byte "cc65 V" ; 16 bytes manufacturer
.byte ((.VERSION >> 8) & $0F) + '0'
.byte '.'
.byte ((.VERSION >> 4) & $0F) + '0'
.byte (.VERSION & $0F) + '0'
.asciiz " "
.byte 0 ; rotation 1=left
; rotation 2=right
.byte 0,0,0,0,0 ; spare