Your #1 source for Atari Lynx news and information!
Atari GamerAtari GamerAtari Gamer

We are moving all Atari Lynx related content over to Atari Lynx Vault and all our shop content over to K-Retro Gaming. Please update your bookmarks!

As a result of this change, the following will no longer be available: Online Lynx Emulator, Collection Tracker, Game Ratings, News. If you are interested in contributing content to Atari Lynx Vault, we are seeking editors and maintainers.

Why is this happening? First - the Atari Gamer branding is changing to K-Retro Gaming to allow us to expand to providing games, replacement parts, and mod services to other game consoles. And second - The content management system running Atari Gamer is out of date and Google AppEngine (where the website runs) will no longer allow it to run after the 30th January 2024, so in order to preserve all content we switched to a new and modern content management system and chose a website domain that better suits the subject matter. Since we are operating this website in our spare time, on top of full time family and job committments, some features had to be dropped.

  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
We have an online shop that has lots of Atari Lynx related goodies - including LCD mod kits, flash carts, display stands and other fun things for your Lynx! Check it out here.

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