Six Forks Assembler Revived with 8-Character Labels, XE Memory and 65816 Support

In March 2019 the AtariAge programmer Alfred posted a new disk of upgraded Six Forks Assembler and Linker programs, together with a retyped and corrected copy of the original manual. Six Forks Software of Raleigh, North Carolina, sold the package in the mid-1980s as a $39, 48K disk product (it appeared in Antic's new-products column in January 1986). It is unusual among native Atari assemblers because it uses a linker: source modules assemble to relocatable object files that are then joined into one executable, the way larger development systems work.

What changed

Alfred's work splits Six Forks into several lines, each built from the same reworked source:

  • New directives: .CBYTE and .SBYTE (working as they do in MAC/65), and .ASTR, which produces an Action!-style string with a length byte in front.
  • SFAXE8 / SFLXE8, an XE line with 8-character labels instead of 6. Alfred needed it to rebuild a large disassembled game (Bruce Lee) whose MADS labels were too long to shorten. That project used 748 external references and produced a 41,528-byte binary.
  • Banked memory in the linker: SFLXE8 uses up to seven XE banks when they are available (a 256K XL or 320K XE), giving a buffer of about 125K, enough to build a full 64K binary for an EPROM. The external-reference limit rose to 1,024. The assembler itself stays at four banks to keep it fast.
  • Command-line options, such as turning the screen off during assembly, so a future MAKE-style tool can drive the assembler.
  • 65816 support in the SFAX816 assembler and its linker. All 65816 opcodes and addressing modes are supported, along with directives for register width (.ACCB/.ACCW, .INDB/.INDW) and an .AUTOSW option that inserts the needed SEP/REP automatically. BRK and COP are treated as two-byte instructions with an optional signature byte. Code placed above the 64K boundary gets a non-standard binary header, $FCFC. SFAX816 does not need a 65816 to run, only XE-style banked RAM.

The BRK debate

The 65816 work started a long thread discussion. Almost every 6502 assembler, MAC/65 and the Atari Assembler Editor included, treats BRK as a one-byte instruction, although the CPU skips the following byte when it returns from the interrupt. WDC's own assemblers emit two bytes. Other developers pointed out that a two-byte BRK would make disassemblers misread the many runs of $00 that sit in front of real code. Alfred kept the WDC behaviour for his 65816 assembler.

Where it stands

Alfred was frank that Six Forks is mainly a tool for his own projects, including a 65816 DOS. In a later post he uploaded what he called the final versions of all variants, as CURRENTSIXF.ATR with an updated NewSixf.pdf manual. Object files are not compatible between variants, so pick one line and stay with it. The disk and manual are attached to the "Six Forks Assembler Upgrades" thread in AtariAge's 8-bit programming forum. Anyone who wants to assemble large projects on a real Atari, not a PC, will find a native toolchain with a linker that can handle a 40K game.

Credits