FDS file format: Difference between revisions
From NESdev Wiki
Jump to navigationJump to search
No edit summary |
(category, tidy up) |
||
Line 1: | Line 1: | ||
'''fwNES''' was an [[NES emulator]] developed by Fan Wan Yang. Its most lasting contribution to the NES scene was its disk image file format, an image of the Quick Disk media. | '''fwNES''' was an [[NES emulator]] developed by Fan Wan Yang. Its most lasting contribution to the NES scene was its disk image file format, an image of the Quick Disk media. | ||
The | The FDS format (filename suffix <code>.fds</code>) is a way to store [[Family Computer Disk System|Famicom Disk System]] disk data. It consists of the following sections, in order: | ||
# Header (16 bytes) | # Header (16 bytes) | ||
# Disk data (65500 * ''x'' bytes) | # Disk data (65500 * ''x'' bytes) | ||
Line 13: | Line 13: | ||
Note: Most games are an even number of sides. Ports from NROM were one side. No commercial FDS game had an odd number of sides greater than 1. | Note: Most games are an even number of sides. Ports from NROM were one side. No commercial FDS game had an odd number of sides greater than 1. | ||
Disk sides comes in the following order : | Disk sides comes in the following order: | ||
* | * Disk 1 Side A | ||
* | * Disk 1 Side B | ||
* | * Disk 2 Side A | ||
* | * Disk 2 Side B | ||
* etc... | * etc... | ||
After the last file block, fill a side with all 0 so that exactly 65500 bytes is reached. | After the last file block, fill a side with all 0 so that exactly 65500 bytes is reached. | ||
[[Category:File formats]] |
Revision as of 22:57, 28 January 2023
fwNES was an NES emulator developed by Fan Wan Yang. Its most lasting contribution to the NES scene was its disk image file format, an image of the Quick Disk media.
The FDS format (filename suffix .fds
) is a way to store Famicom Disk System disk data. It consists of the following sections, in order:
- Header (16 bytes)
- Disk data (65500 * x bytes)
The format of the header is as follows:
- 0-3: Constant $46 $44 $53 $1A ("FDS" followed by MS-DOS end-of-file)
- 4: Number of disk sides
- 5-15: Zero filled
The disk data follows the FDS disk format, but gaps and CRCs are not included in the .FDS image.
Note: Most games are an even number of sides. Ports from NROM were one side. No commercial FDS game had an odd number of sides greater than 1. Disk sides comes in the following order:
- Disk 1 Side A
- Disk 1 Side B
- Disk 2 Side A
- Disk 2 Side B
- etc...
After the last file block, fill a side with all 0 so that exactly 65500 bytes is reached.