Your #1 source for Atari Lynx news and information!
Atari GamerAtari GamerAtari Gamer
  1. Home >
  2. LNX ROM Header Generator for CC65
This is an Atari Lynx LNX ROM header generation utility. It can be used to create an ASM file containing the 64 byte LNX header to use with CC65.
lnxhdr.s

.import __BANK0BLOCKSIZE__
.import __BANK1BLOCKSIZE__
.export __EXEHDRUSR__: absolute = 1

.segment "EXEHDRUSR"

.byte    'L','Y','N','X'
.word    __BANK0BLOCKSIZE__
.word    __BANK1BLOCKSIZE__
.word    $X
.asciiz  "X"
.asciiz  "X"
.byte    $X
.byte    $X
.byte    %X
.byte    0, 0, $52
LNX ROM Header Fields - 64 Byte Header

Byte  0 -  3  | Char literal   | "LYNX"                      EEPROM byte-bits encode details of EEPROM used
      4 -  5  | 16-bit uchar   | Bank 0 page size            bit  1   2   3   4   5   6   7   8
      6 -  7  | 16-bit uchar   | Bank 1 page size                 |       |   |       |   |   |
      8 -  9  | 16-bit uchar   | Version number                   +---+---+   +---+---+   |  16/8 BIT
     10 - 41  | String + \0    | Cart name                            |           |     REAL/SD
     42 - 57  | String + \0    | Manufacturer                    EEPROM TYPE    UNUSED 
          58  | uchar          | Rotation (1=left, 2=right)
          59  | uchar          | AUDIN Used (1=yes)          Example: 0x40 (00000010) no-EEPROM, SD card saves
          60  | uchar          | EEPROM detail, see right    EEPROM Type values - 0: no EEPROM, 1: 93C46
     61 - 63  | uchar          | Unused                           2: 93C56, 3: 93C66, 4: 93C76, 5: 93C86
                                                             EEPROM size is 2^(type+9)
                                                                  e.g. 2^(1+9) = 1024 bits for 93C46
                                                             Lynx is little-endian so bit order is reversed.
You can find Atari Gamer on...
Be sure to follow for the latest Atari Lynx news, updates, stories and photos!
[ Don't show again ][ Dismiss ]
Loading...
10
Find out how you can support Atari Gamer so we can keep delivering quality retro gaming content, news and amazing games to you!

If your download doesn't start automatically after 10 seconds, please click here.
Cookie Consent
By continuing to browse or by clicking ‘Accept’, you agree to storing of cookies on your device to enhance your site experience and for analytical purposes. To learn more about how we use cookies, please see our privacy policy.
Accept and Close