fs2port/src
2026-05-14 10:03:23 -05:00
..
asm.cfg Initial commit. 2026-05-13 21:32:05 -05:00
chunk2.s Initial commit. 2026-05-13 21:32:05 -05:00
chunk3.s Initial commit. 2026-05-13 21:32:05 -05:00
chunk4.s Initial commit. 2026-05-13 21:32:05 -05:00
chunk5.s Initial commit. 2026-05-13 21:32:05 -05:00
complete.s Initial commit. 2026-05-13 21:32:05 -05:00
macros.inc Initial commit. 2026-05-13 21:32:05 -05:00
README.md Initial commit. 2026-05-13 21:32:05 -05:00

The loader in @qkumba's version of FS2 loads and decompresses several chunks of data/code into memory before jumping into the FS2 code.

The chunks are:

  • Chunk 1: $4000-$5fff - from ../res/loading_panel.bin
  • Chunk 2: $f600-$fbff - chunk2.s
  • Chunk 3: $d300-$f3ff - chunk3.s
  • Chunk 4: $0200-$25ff - chunk4.s
  • Chunk 5: $6000-$b3df - chunk5.s

Memory Map

       Main
$FFFF +-------------+
      | chunk2      |
      |.............|
$F000 | chunk3      |
      |             |
      |             |
$E000 +-------------+ +-------------+
Bank2 |.............| | Course Plot | Bank1
      | ???         | | Data        |
$D000 +-------------+ +-------------+
    FS2 runs with LC Bank2 active!

$C000 +-------------+
      | ???         |
      |.............|
$B000 | chunk5      |
      |             |
      |             |
$A000 |             |
      |             |
      |             |
$9000 |             |
      |             |
      |             |
$8000 |             |
      |             |
      |             |
$7000 |             |
      |             |
      |             |
$6000 +-------------+
      |.HiRes.Pg.2..|
      |.............|
$5000 |.............|
      |.............|
$4000 +-------------+
      |.HiRes.Pg.1..|
      |.............|
$3000 |.............|
      |.............|
      |.............|
$2000 +-------------+
      | chunk4      |
      |             |
$1000 |             | $400-$7FF - I/O screen holes ($X7X and $XFX)
      |             | $3Fx - interrupt vectors
$0200 +-------------+
      |.Stack.......|
$0100 +-------------+
      | Zero Page   |
$0000 +-------------+