Descriptions of several file formats and types

What are .PMA/.BIN/.BAS/.ROM/.COM... files and how to run them?

Some MSX users ask that question quite often and I am really tired of reading the same messages over and over again, so here you should find answers on most common questions about file formats on MSX. Stop filling comp.sys.msx[1] with these questions!

[.BAS]/[.LDR]

What are the [.BAS] files?

The [.BAS] and [.LDR] files are MSX-BASIC files. These are not ASCII files! See below!

How do I run them?

They can be started by writing following (when you are in MSX-BASIC):

(Example file: EXAMPLE.BAS) LOAD"EXAMPLE.BAS" RUN or LOAD"EXAMPLE.BAS",R or RUN"EXAMPLE.BAS" from MSX-DOS it can be also done by typing at the command line: A:>BASIC EXAMPLE.BAS = PUSH Return/Enter key.

To run those files in an emulator, most of the time you have to put them on a disk image. For more info about that, see below at DSK files.

I tried to load a [.BAS] file in my text editor but I got only some garbage!?

That's because normally, a BASIC program is saved in a special format. This is called `tokenized' BASIC. It means every BASIC-command has it's own special byte or byte- combination. These files seem pretty binary if you don't know that it's BASIC. But of course you can also save a BASIC program in ASCII format.

To save a [.BAS] file in ASCII format try:

(Example file: EXAMPLE.BAS)

LOAD"EXAMPLE.BAS"

SAVE"EXAMPLE.ASC",A

Now it is possible to open the file in a text editor. It's possible to write the BASIC program in a text editor too, but who does that? :-)

Note: When a [.BAS] file has been saved with [,A] option it will take longer to load it in MSX-BASIC (especially when the program is on tape!). This is way the described method of tokens is used. It's a way of compressing the BASIC files.

What's the purpose of [.LDR]- files?

Some MSX-BASIC files have a .LDR extension. LDR is short for "loader". This usually means that this particular basic program loads a machine-language-binary (often called .BIN file, see below) program in the computer's memory. It's often seen with games.

[.BIN]

What are the [.BIN] files?

The [.BIN] files are binary files and contain machine language. On disk, the structure is like this: First 7 bytes of file-header: byte 0 : ID byte #FE byte 1+2: start-address byte 3+4: end-address byte 5+6: execution-address Then follows the machine-language. Note that this is only true for BIN files on disk, because cassette-files have a separate header with the address-information in it. The structure is as follows: First a long header with binary 1s, 10 bytes #D0 (which indicates the file type, here binary), 6 bytes for the filename, (a short silence), short header with binary 1s, 2 byte start-address, 2 byte end-address, 2 byte execution-address, then follows the machine-language. The computer recognizes the baud rate by the long header with the binary 1's. So actually, you can save in a lot of speeds, limited by the cassette-quality (about 4600 Baud is really the maximum for good cassettes). How do I run them?

They can be started by typing the following (when you are in MSX-BASIC):

(Example file: EXAMPLE.BIN)

BLOAD"EXAMPLE.BIN",R

If the file will not start then there may be several reasons: 1. There's not enough free memory. Free more RAM by holding [CTRL] key down during the boot until a BEEP is heard (this makes the MSX reserve memory for only one disk-drive instead of two, so you have some kilobytes more free in BASIC). 2. This file is either buggy or is a part of a whole program. Try to find the loader (*.BAS/*.LDR file) and try with RUN"EXAMPLE.BAS" or RUN"EXAMPLE.LDR" (please also check the section on BAS files, above!) 3. The file hasn't got a run address. Find the loader (*.LDR/*.BAS) if possible. [.001], [.002], ... , [.00n]

What are the these files and what to do with them?

These files are actually binary files, like the [.BIN] files. But they're just called different. They're called this way, because apparently the machine-language program consists of more than one binary file. Try to find the [.BAS] or [.LDR] (loader, in BASIC) file and run it.

[.COM]

What are the [.COM] files?

The [.COM] files are MSX-DOS V1.x/V2.x executable. To execute them you must boot MSX-DOS V1.x/V2.x, and type EXAMPLE after the prompt, to run the program EXAMPLE.COM, just like MS-DOS.

How can I make an MSX-DOS V1.x disk? Format a 720kB or 1.44MB (with tape over the right hole) disk on an MSX: start your MSX with disk drive. put empty disk in drive A in MSX-BASIC write: CALL FORMAT choose drive A (A). choose Double Sided format (720kB) (2). copy MSXDOS.SYS and COMMAND.COM to the formatted disk copy the game/utility files to the disk reboot the MSX

When the MSX-DOS prompt pops up, write the name of program which you want to execute and press return. Be aware of that some software may not work because it can be especially written to run under MSX-DOS2[2].

Can MSX run CP/M V2.20 software under MSX-DOS V1.x?

Yes. With MSX-DOS V1.x you should be able to run most of CP/M V2.20 software. Where can I find the list of MSX-DOS V1.x commands?

The commands of MSX-DOS V1.x are equal to MS-DOS's (except CD/MD/RD/MOVE - directory manipulation). Just read an MS-DOS manual/guide!

Here are the three basic ones:

COPY [A:] [wild cards (*?)] Example: COPY A:*.* B: [Copy all files from drive A: to drive B:] DIR [A:] [WILD CARDS (*?)] Example: DIR *.BAS (Show all files with BAS extension on current drive). DEL [A:] [WILD CARDS(*?)] or Example: DEL A:*.* [DELETE ALL FILES on drive A:].

[ ] = optional

I can't boot the MSX-DOS, my MSX (emulator) locks up!?

If you try to boot the MSX-DOS V1.x from a disk formatted in MS-DOS on a PC, then the MSX will lock up, because the boot sector is different. A disk formatted on PC will contain PC code in the boot sector, just as a disk formatted on a MSX will contain MSX code. So it is important that the boot sector is MSX's and not PC's!

Where can I get the MSX-DOS V1.x or MSX-DOS V2.x files?

[MSXDOS.SYS+COMMAND.COM]: [msxdos1.lzh[3]] MSX-DOS V1.x system files.

[ksave105.lzh[4] ] MSX-DOS(2) kernel saver V1.05 by K.Tsujikawa.

Use it to extract the ROM from your DOS2 cartridge on real MSX2. Then it (can) - (I assume that your emulator can emulate DOS2) be used with the MSX emulator. Consult the manual of your MSX emulator if in doubt. Some emulator sites provide the MSX DOS 2 ROM file too.

[.PMA/.LZH/(.LHA)]

What is a [.PMA] file? The [.PMA] file is a compressed archive created by PMARC2.COM. PMARC2.COM was the most used archiving tool on the MSX platform. To extract [.PMA] files use PMEXT.COM. An [.PMA] extractor/packer for PC is available too, and it is recommended to use it if you have a PC compatible machine.

Where can I get a [.PMA] file extractor for MS-DOS, (L)UNIX or my MSX (emulator)?

[pmext4pc.arj[5]] and PMEXT-PC.ZIP[6]]: PMEXT.COM for MS-DOS.

[pmarc-pc.arj[7]]: PMARC.COM for MS-DOS.

[pmarc.pma[8]]: PMARC.COM for MSX-DOS(2)/CP/M V2.20.

[pmext.com[9]]: PMEXT.COM for MSX-DOS(2)/CP/M V2.20.

[lha-pma-2.tar.bz[10]]- LHA/LZH extractor adapted to make it also work with PMA files, by Maarten ter Huurne. Source compilable for (L)UNIX systems (updated in 2011 by Ricardo Jurczyk Pinheiro). For Win32 users there is also a binary[11] available.

The [.PMA] extractor for MS-DOS is the same as on MSX, but it runs under 22NICE - CP/M V2.20 emulator [22nice.lzh[12]]. When you have once executed 22NICE then you can run PMARC/PMEXT as many times as you want. It is not recommended to extract archives by using MSX-emulator due to the low speed. Use the 22NICE and PMEXT in MS-DOS instead.

How to extract [.PMA] files on a MacIntosh computer? (Taken over from the (personal) site of The Red Devil[13].)

There is no simple way to do it, so no special program to extract [.PMA] is available on Mac computers. So, to extract those archives you will need a CP/M emulator for Mac and the program (extractor): PMEXT.COM. There are two different versions of PMEXT.COM. First one is CP/M native and the 2nd one is patched so it is compatible with MSX- DOS1/2. The patched version will break down the emulator since it uses some MSX-DOS calls. The unpatched version is fully CP/M native so it works fine. So you need the following:

PMEXT.COM V2.22 for 34K CP/M V2.2[14] CP/M emulator V1.01 for MacIntosh (68K)[15] Two folders on e.g. the desktop named "Drive A" and "Drive B". Create them yourself.

Extracting goes as follows: 1. Drop "PMEXT.COM" to folder named "Drive A". 2. Drop the [.PMA] files to folder named "Drive A". 3. Double click on the CP/M emulator icon. 4. Choose folder "Drive A" as your A: drive. 5. Type after A>: PMEXT FILE.PMA B: 6. The CP/M emulator will ask you to choose drive B: 7. Choose folder named "Drive B" as drive B: 8. The files will be unpacked to folder named "Drive B" 9. To check which PMA files are in the folder named "Drive A", type behind the CP/M prompt (A>): DIR *.PMA

Can I decompress [.LZH] and Amiga [.LHA] files on MSX (emulator)?

The PMEXT.COM should also be able to decompress [.LZH] and Amiga [.LHA] files. But there's also a program called LHEXT.COM, see below.

Are there any [.LZH] (un)packers for MSX (emulator)?

The [.LZH] files can be extracted by using above mentioned utility (PMEXT.COM), in MSX- DOS. There are more though:

[LHPACK.COM[16]]: [.LZH] packer for MSX-DOS2 (LHPACK V1.03 by KYOJU '95) [lhext133.com[17]]: [.LZH] unpacker for MSX-DOS2 (LHEXT V1.33 by KYOJU '95) [LHARC102.lzh[18]]: LHARC V1.02 by Y. Tagawa 1989-1990 (adapted from UNIX for MSX-DOS2 by Uwe Schroeder). This one is able to extract/pack with path names (slow but OK).

[.AR]

What's an [.AR] file? It is a compressed archive (as ZIP, LZH etc.). The file is created by an MSX-DOS or MSX- DOS2 utility PR.COM by Egor Voznessenski (SOLID soft). This compressing format is especially made on/for MSX. It is the fastest compressor on MSX, but the compression is less good than PMA / LZH. Extractor is only available for MSX-DOS(2).

Where can I get the extractor/packer for my MSX?

[pr170.lzh[19]]: [.AR] archive packer/unpacker V1.70 for MSX-DOS. By SOLiD soft.

[pr200.lzh[20]]: [.AR] archive packer/unpacker V2.00 for MSX-DOS2(1). By SOLiD soft 1997.

[.XSA]

What is an [.XSA] file?

[.XSA] is a special disk image format developed by Xelasoft (Alex Wulms[21]). An [.XSA] file contains usually a compressed MSX . It is useful if you want to put one or more disk images on a disk. (An uncompressed disk image file does of course not fit on a disk of the same size, since the disk needs some space for the FAT and directory information.)

How can I restore/make an [.XSA] file on my PC or MSX?

[d2ff2d.lzh[22]]: [.XSA] disk compress/decompress for MS-DOS & MSX-DOS(2) by XelaSoft.

How can I convert an [.XSA] file to [.DSK] file or [.DSK] file to [.XSA] file on my MSX, PC or Unix station?

[xscxsdmx.pma[23]]: [.DSK] to [.XSA] and [.XSA] to [.DSK] converter for MSX-DOS by Xelasoft.

[xscxsdpc.arj[24]]: [.DSK] to [.XSA] and [.XSA] to [.DSK] converter for MS-DOS by Xelasoft.

[xsc_xsd.sun.tar.gz[25]]: disk compress/decompress for SunOS V4.x by Xelasoft. [xsc_xsd.hp.tar.gz[26]]: disk compress/decompress for HP-UX V9.x by Xelasoft.

[xsc_xsd.linux.tar.gz[27]]: disk compress/decompress for LINUX V1.2.x by Xelasoft.

More general info about this can be found on The XelaSoft XSA Format page[28].

The program imgtool (included with MESS[29]) can also decompress [.XSA] files.

[.MIF]

What is a [.MIF] file?

MIF is a new MSX image standard (similar to PC�s GIF). It supports MSX2/2+/GFX9000 screen modes and uses compression to obtain smaller files.

To kill any doubts, MIF Tools package is not a Public Domain product (except MIF2BMP.EXE for PC and the viewers (and source code of the viewers) for MSX). The converter program offers keyboard/joystick or mouse controlled GUI with a lot of options which make it easy to operate on graphic files. This program runs in MSX-DOS.

The file types recognized by MIF converter are: [.SC?] BLOADable files from BASIC, palette included -- the drawback is that this kind of files are very large [.SR?] BLOADable file without the palette included [.PL?] Palette file for [.SR?] images [.MIF ] The new MSX pictures standard [.RAW ] Other files

The benefits: Supports GFX9000. As you might know GFX9000 images are very big (in uncompressed format). Sources of the decoding program are available, so you can implement them in your own software (BASIC/DOS). Viewer included for DOS and BASIC Supports interlacing. No more problems with 2 separate files per displayed image and the disk space consuming size (128kB/64kB per image) One file format for all supported screen modes (2/2+/GFX9000) No more problems with a bunch of different file format (and special viewers). Imagine having a bunch of graphic files on your hard disk. They are in different formats: Graph Saurus excludes the palette, DD-Graph saves with palette, MSX Paint IV uses separate palette of its own format etc. They occupy a lot of space and require different viewers Includes palette data High compression (Saves space on floppies/hard disk) Centering of the image possible (if the image does not fill whole screen) Border colour is adjustable Screen 12 to 8 conversion

You will get also a PC program which is able to import BMP files directly as MIF files. It has built in auto dithering, scaling etc. which makes it possible to achieve really high quality images on your MSX2. This BMPtoMIF converter is for PC (MS-DOS). As said, it is not PD, order it at:

Laurent Halter 4, Eigenthal 57 870 WALSCHEID FRANCE

[.DSK]

What is a [.DSK] file?

The most important and most widely used uncompressed disk-image file.

Which utility creates a [.DSK] floppy-disk image on my PC?

[dcopy.zip[30]]: DCOPY.EXE converts MSX floppy disk to [.DSK] image and back. For MS-DOS. Examples: To create a [.DSK] image of an MSX 720kB (DS/DD; Double Sided, Double Density) floppy-disk: C:\FMSX\DSKIMAGE\DCOPY A: C:GAME720K.DSK /T:80 /S:9 /H:2 The image should have the size of 1024 × 720 = 737280 bytes (1440 sectors a 512 bytes) To create a [.DSK] image of an MSX 360kB (SS/DD; Single Sided) floppy-disk: C:\FMSX\DSKIMAGE\DCOPY A: C:GAME360K.DSK /T:80 /S:9 /H:1 The image should have the size of 1024 × 360 = 368640 bytes (720 sectors a 512 bytes) To put a double-sided disk-image back to a 720 kB DD/DS floppy-disk: C:\FMSX\DSKIMAGE\DCOPY C:GAME720K.DSK A:

Disk Manager 0.14[31] by Rudolf Lechleitner[32]. For Windows. Can be used for making/restoring disk images and for file transfer between disk and disk image.

Can I also convert [.DSK] files to/from a real disk on a Unix/Linux computer?

Sure, it's very easy! Just make sure you have a correctly formatted floppy-disk in the disk-drive. Then type: cat example.dsk > /dev/fd0, if your disk-drive has the device-name fd0. That's it! To make a disk image of your real disk, use the same procedure, but then the other way round: cat /dev/fd0 > example.dsk . (This is why I love Unix!)

For single sided disks, you may have to create a special device node first (you can do that in your home directory, e.g.): mknod ~/fd0u360 b 2 12 and then transfer the disk like this: cat example.dsk > ~/fd0u360.

How can I put a MSX [.DSK] image back to a floppy disk on a MacIntosh computer?

OK, this is a rather complicated one. I'll describe it here, it is taken over from the (personal) site of The Red Devil[33].

This procedure only works for 720kB floppies. At first you need the following software (System 7.0.1 at least):

[34] ShrinkWrap™ V2.1 (Download from TRD's page, in BinHex 4.0 format, use StuffitExpander to expand). PC disk-exchange control panel installed in your control panel folder. This one is automatically delivered with System 7.5 (or 7.1 too?) or above. You can "borrow" this control panel from system 7.5 and it will work fine on a Mac with System 7.0.1. Note that the earliest version has a bug, it cannot display the file sizes/free space on a PC correctly. Version DK-1-2.0.3 definitely works and is bug-free Ok, now the steps: 1. Doubleclick on the ShrinkWrap icon 2. Choose the preferences (under edit) and make the following configuration: 1. Destination: Use: (Choose desktop folder)

2. Automatically decode and expand files: all off

3. Automatically compress image files: all off

4. Save disk images as: 1. Floppy: (Choose - MS-DOS Image file) 2. Set on "Mount images unlocked by default" 3. Make sure the rest is in this column is off

3. Open the PC-exchange panel in your control panels folder 4. Click on "add.. " button 5. Type in the "Dos-type" filed: "DSK" 6. Now find in the directory window the "ShrinkWrap" program 7. Then choose in the "Macintosh-type" window: icon "hdrv" 8. Click OK 9. Exit the control panel 10. Now, there is still a problem, since ShrinkWrap will not recognize the DSK file as a valid PC-disk image. It has a non-matching creator string. The string must be "hdrv". Since TRD and I do not know how to change this string, the following trick must be used: 1. Format a 1.44MB disk as a PC disk and put it in the drive of the Mac 2. Drag the disk icon onto the ShrinkWrap(TM) icon, so that a disk image of 1.44 MB will be created on the desktop 3. Mount it, by doubleclicking on the disk image 4. Rename it to e.g. "EmptyPCdisk" 5. Now drag and drop the disk-image you want to use to "EmptyPCdisk". It is then copied to "EmptyPCdisk" and will automatically get the creator type "hdrv", so it will now be usable for ShrinkWrap!

11. Now double click on ShrinkWrap and choose "Write image back to disk" (Image menu) 12. Choose your disk image from "EmptyPCdisk" and it will be read 13. Now put a 720kB floppy in the drive and you will have a real MSX floppy disk which works on your real MSX computer

OK, that was the procedure... Final remarks/hints: Put the 1.44MB image into the startup folder and next time you boot your Mac the "EmptyPCdisk" will be automounted Now every time you need to make a .DSK image visible for the ShrinkWrap(TM) copy this file to "EmptyPCdisk" and remember the disk image must have the .DSK suffix! Please contact us if you have a simpler (and better?) way to do this :-)

I have a multiple [.DSK] file. Can I split it into [720kB] [.DSK] files on my PC?

[splitdsk.zip[35]]: Splits multiple [.DSK] images into several 720kB [.DSK] files. For MS- DOS. By Meuse Soft.

[multidsk.c[36]]: C source of a program that can add and extract [.DSK] disk images to/from multiple [.DSK] files. it yourself on your favourite platform. Written by Sean Young. For Win32 users there is a binary[37] available.

I have 720kB [.DSK] files. How can I make a multi disk image of it (to use with fMSX-DOS or with FDD emulator)?

This is quite clearly explained in the manual of fMSX. But to make this FAQ more complete, I'll repeat the explanation here.

Multi disk images are supported from fMSX-DOS version 1.6b1. To create one, simply copy several disks to 1 image like this: COPY /B DISK1.DSK+DISK2.DSK MULTI.DSK, start the emulator with the resulting disk image as disk A, and press RIGHT CTRL+1..0 when the game asks you to insert a new diskette. Please note that this only works for double sided disk images (720kB ones). An alternative:

[multidsk.c[38]]: C source of a program that can add and extract [.DSK] disk images to/from multiple [.DSK] files. Compile it yourself on your favourite platform. Written by Sean Young. For Win32 users there is a binary[39] available. If you like to do this job on MSX (on a harddisk), tye the following in MSX-DOS 2: concat /b disk1.dsk+disk2.dsk multi.dsk. This is useful if you want to run a multiple disk game with a so-called floppy disk emulator on MSX, which enables you to play floppy disk software from hard disk with disk images.

Can I move files to/from the [.DSK] images on my PC/Unix system?

[rdwrdspc.zip[40]]: rddsk.exe/wrdsk.exe: utilities used to move files out of/into [.DSK] images. For MS-DOS, by Arnold Metselaar Note: the sources of wrdsk/rddsk can be found in the fMSX package by Marat Fayzullin. Use them to compile your own Unix version.

Can I move files to/from the [.DSK] images on my MSX?

[rddsk.com[41]]/[wrdsk.com[42]] Utilities used to move files out of/into [.DSK] images. For MSX-DOS, by Arnold Metselaar.

For clarity: these utilities enable you to put BAS, BIN or other files on a disk image, so some , like fMSX, can work with these BAS or BIN files, or whatever. So to run these files, just put them on a disk image and start fMSX with the disk image (see manual). After booting the (virtual) MSX, you can see with the MSX-disk-BASIC command FILES if the files are really present on the disk image. If they are, just run them. See the corresponding suffix-section for details.

Can I create/restore [.DSK] files on my real MSX?

[fdload11.lzh[43]]: File to Sector convert tool V1.10 by K. Tsujikawa. Use this utility to write [.DSK] images to a floppy disk on real MSX. For MSX-DOS(2).

[fdsave11.lzh[44]]: Sector to File convert tool V1.10 by K. Tsujikawa. Use this utility to convert a floppy disk to [.DSK] image on real MSX. For MSX-DOS(2).

Can I run diskimages on my real MSX (from harddisk)?

Of course you can. There are a number of programs that can emulate the diskdrive and run the diskimage from your harddisk. I will list them here: [getdisk.pma[45]]: This PMA archive (see elsewhere in this section for the PMA format) contains utilities to copy a disk to a diskimage (GETDISK.COM) and vice versa (PUTDISK.COM) on a real MSX. It also contains the program START.COM. This program can run a lot of disk-software from harddisk (here[46] is an incomplete list, made by Marcel Delorme). However, only softare that is `on sector' will work. Not software that contains files on the disk. This means e.g. that all MicroCabin games will not work. A game like SD-Snatcher will, however. This program supports multiple diskimages similar to fMSX-DOS. See also above. When you start a multiple diskimage with START.COM, push the number (key) of the diskimage together with the button you should push after inserting the asked disk. So if the program asks "Insert disk 2 and press RET", push the "2"-key and press return simultaneously. Unfortunately GETDISK.COM and PUTDISK.COM are in Dutch, but they are very simple to use. There is also a program called ADAPT.COM, which can patch certain disk images to make them work with START.COM. You need to do this for the Bit² games, e.g. [fddemu05.lzh[47]] by NYYRIKKI. Free beta version of FDDEMU, a diskdrive emulator only for Novaxis SCSI interface users. Needs 256kB RAM. (Note: offline until his home page returns...) [hdemu101.lzh[48]], English docs: [hdem101e.lzh[49]]: This is a similar program, but for MSX turbo R only. Supports programs consisting of more than one disk not by multiple disk images but by seperate disk image files. For further info, see the docs. [fde.com[50]]: Should also do the job, but for MSX turbo R only. Supports multiple diskimages like START.COM, you can change diskimages by pressing the HAI-key and the number (key) of the diskimage simultaneously. Syntax is just FDE [Runit v2.0.2[51]] by NEARDARK. It contains the program RUNIT.COM, READIT.COM and EMUDSK.ROM. This program can run all games which START.COM can run and more. In addition to that you can also run MicroCabin games from your mass storage device. Successfully tested on IDE/IDE-CF/Novaxis/MegaSCSI and SD/MMC drive. The capslock led is used as fdd led. Use GETDISK.COM or READIT.COM to read the images to your HDD. READIT.COM takes longer to read the disks, however it will patch on the fly and has accurate bad sector detection. To switch disks keep the numberkey pressed down while pressing the key to change the disk you can release the numberkey when the capslock led is flashing. For gamedisks keys 1 to 9 are used. It is also possible to have an optional userdisk which is always key 0. For example: XAK1.DSK with all gamedisks and one disk in XAK1.USR. On the download page there are also some IPS patches which you need to play certain games. The MEGA-SCSI has some utilities to do this also. If you have a MEGA SCSI, check out the docs.

[.MSX]

What is a [.MSX] file?

This is a disk image created by a Korean programme called "updownc".

I have a [.MSX] disk-image file. Can I convert it to [.DSK] - MSX emulator compatible disk-image?

[msx2dsk.zip[52]]: MSX2DSK.EXE converts [.MSX] disk images to [.DSK] images. For MS- DOS.

[UPV25.LZH]: Converts [.MSX] disk image to a floppy disk.

[msx2dsk.c[53]]: C-source code of a [.MSX] to [.DSK] converter, download and compile it yourself on your favourite platform (thanks to Sean Young). For Win32 users there is also a binary[54] available.

The program imgtool (included with MESS[55]) can also convert [.MSX] files.

Can I write it to a real 3.5" disk?

Yes, therefore you need the program "updownc" [updownc.lzh[56]] for MS-DOS.

[.DDI]

What is a [.DDI] file?

It's a disk-image file created by the programme Diskdupe [diskdupe.lzh[57]], I guess. It seems to be a [.DSK] file with a 4608 byte header. The programme is for MS-DOS.

Can I convert it to [.DSK] - MSX emulator compatible disk-image? [dditodisk.zip[58] ] Converts [.DDI] disk images to [.DSK] for MS-DOS.

[ddi2dsk.c[59]] C-source code of a [.DDI] to [.DSK] converter, download and compile it yourself on your favourite platform (thanks to Sean Young). For Win32 users there is also a binary[60] available.

The program imgtool (included with MESS[61]) can also convert [.DDI] files.

[.TD0]

What is a [.TD0] file?

This is a disk image file created by a Brazilian program called Teledisk [td0todsk.lzh[62]]. This program has to be used to write it to a real disk and is for MS-DOS.

[.CP2]

What is a [.CP2] file?

These files are disk images created by the program Snatchit/Copy2PC [cp2todsk.lzh[63]]... This/these programmes are needed to convert the files to a real disk and work under MS- DOS.

[.IMG]

What is a [.IMG] file?

This is also a disk image-file. It's the same as a .DSK file, except for the first byte, which is a header-byte. If you delete it, it's exactly a .DSK file. On Unix this is easy, e.g. use VI or VIM in binary mode and press [DEL] once and save it. You can also use img2dsk[64] by Patrick Lina. The file contains a compiled version for DOS and a very short manual.

[img2dsk.c[65]] A C-source code of a [.IMG] to [.DSK] converter, download and compile it yourself on your favourite platform (this one is by Sean Young). For Win32 users there is also a binary[66] available.

The program imgtool (included with MESS[67]) can also convert [.IMG] files.

[.CAS]

What is a [.CAS] file?

CAS files are tape recordings made on fMSX. fMSX catches the BIOS calls, and then writes/reads the actual bytes from a regular file (the .CAS file). Headers are stored as the 8 byte sequences: 0x1F,0xA6,0xDE,0xBA,0xCC,0x13,0x7D,0x74.

How can I read a [.CAS] file on a real MSX?

In order to read .CAS files on a real MSX, you first need to convert it to the original sound. imgtool (included with MESS[68]) can do that. Type on the commandline: imgtool getall fmsx_cas cassette.cas. Now you have a .wav file. Next connect the white (load) cable of your MSX to the sound output connector of your PC. Give the approriate command on the MSX (eg. "BLOAD "CAS:",R"), and play the .wav file. An alternative is to use the castools package, which can be found on Vincent van Dam's web site[69].

[.TAP]

What is a [.TAP] file?

.TAP files are created by Virtual MSX[70]. No other emulator supports them. A .tap file can contain multiple .CAS files. The format is rather complex; but you can extract the .CAS files from a .TAP file using imgtool, which is included with MESS[71]. It is a commandline tool, type imgtool getall vmsx_tap vmsx.tap to extract all .CAS files.

[.ROM]

What are the [.ROM] files and can I use them with my MSX-emulator or real MSX?

The [.ROM] files are images of ROM cartridges available for real MSX machines. Those files were meant to be used with MSX emulators but since we have loadrom.com v1.0[72] by TRUNKS they can be used on real MSX machines too! There is also the possibility to run ROM files on a real MSX if you have a Brazillian MegaRAM cartridge (with the program ExecROM) or an ESE SCC cartridge. ROM files have size of 16kB, 32kB, 128kB, 256kB, 384kB or even 512kB (or bigger, there exist 8 Megabit ROMs, i.e. 1MB!). [.ROM] files which are available in FTP archives are ready to run, no conversion is needed. When using CJS MSX2 emulator then the files must be chopped in smaller blocks (16kB). Read the manual of CJS' MSX2 emulator. I've read somewhere that there is a bug in the ROM splitter from CJS so please don't use it unless there is another one.

The usage of ROM files with an emulator is emulator dependent. Of course it will be explained in the emulator's manual. Read that manual!

Note that a real cartridge with a ROM file also contains circuitry (a memory mapper mechanism) so that the right parts of the code are on the right positions in the address space of the Z80 CPU. This circuitry is not in the ROM files, which means that emulators have to know (or possibly detect) the mechanism themselves and thus have to emulate those.

Where can I get the [.ROM] file loaders for real MSX2 machines?

To load [.ROM] files on real MSX, use the LOADROM.COM V1.0 by TRUNKS (see previous question)! But if you have a MegaRAM cartridge (that's a cartridge with a whole lot of RAM in it, similar to the structure of the ROM in a cartridge) you can also use ExecROM. There are also some other options. A list:

[execrom.com[73]]: download or go to Adriano Camago Rodrigues da Cunha's Page[74] (the author), for more info and other nice softwares. [LOADR10.LZH[75]]: LoadROM 1.0 download This utility is able to load files up to 256kB and has full support for SCC[76]/R800 and MSX-DOS2[77] [carga.lzh[78]]: CARGA.COM, MSX-DOS utility to execute small 16kB/32kB ROM files. By Victor Raposo. [rrom101.lzh[79]]: RROM.COM, ROM file loader V1.01. Another MSX-DOS utility to run 16kB/32kB ROM files (support for R800). By NOB 1997. [rima130.lzh[80]]: RIMA.COM, ROM image maker V1.30. MSX-DOS utility to extract and run 8kB/16kB/32kB ROM files (support for R800). By NOB 1996-1998. Several ulitilities from this page: http://niga.tripod.co.jp/msx/syogun.html[81] (thanks to K. Ikeda): NSTOOL.LZH[82]: ROM Image installer in MSX2/2+/turboR. You can install 16Kbytes ROM and 32Kbytes ROM. MEGAMU5.LZH[83]: MEGA ROM Emulator for MSXturboR. You can install 8Kbytes Bank MEGA ROM. But only emulate, not install. This means that often the ROM Image doesn't run perfectly. If your MSXturboR has extended internal mapper memory, you can enjoy big capacity MEGA ROM images like 2M, 3M 4M etc... The program doesn't work correctly with external mapper memory, so standard ST(256Kbytes): you can use upto 1Mbit ROMs, standard GT(512Kbytes): you can use upto 3Mbit ROMs. MEGA16_8.LZH[84]: You can install a 16K bank ROM image in MSX2/2+/turboR. But you need a lot of RAM:256Kbytes for an 1Mbit ROM image and 512Kbytes for a 3Mbit ROM image NGLOAD.LZH[85]: MEGA ROM installer program for ESE RAM DISK or ESE SCC RAM DISK. It's similar to Tsujikawa's MGLOAD, but it has some advantages: it can automatically convert to the right bank type, a patch program to use non- Japanese ROMs is included, it can autodetect the mapper type, it can install MEGA ROMs in ESE RAM DISK as well as non-Konami SCC ROM images in ESE SCC RAM DISK, it can protect the kernel, etc.

Where can I find the [.ROM] files?

Check out the MSX FTP sites. Links can be found in the links database of The MSX Resource Center[86] (and here[87]).

Back to the FAQ's index!

Links 1. news:comp.sys.msx 2. http://www.faq.msxnet.org/dos2.html 3. http://www.msxarchive.nl/pub/msx/utils/misc/msxdos1.lzh 4. http://www.msxarchive.nl/pub/msx/utils/dos2/ksave105.lzh 5. http://www.msxarchive.nl/pub/msx/utils/othersys/pmext4pc.arj 6. http://www.faq.msxnet.org/soft/pmext-pc.zip 7. http://www.msxarchive.nl/pub/msx/utils/othersys/pmarc-pc.arj 8. http://www.msxarchive.nl/pub/msx/utils/archive/pmarc.pma 9. http://www.msxarchive.nl/pub/msx/utils/archive/pmext.com 10. http://www.msxarchive.nl/pub/msx/utils/othersys/lha-pma-2.tar.bz 11. http://www.msxarchive.nl/pub/msx/utils/othersys/lha-pma.exe 12. http://www.msxarchive.nl/pub/msx/utils/othersys/22nice.lzh 13. http://www.geocities.com/SiliconValley/Vista/2653/misctips.html

14. http://www.geocities.com/SiliconValley/Vista/2653/pmext.hqx 15. http://www.geocities.com/SiliconValley/Vista/2653/cpmmacem.hqx 16. http://www.msxarchive.nl/pub/msx/utils/archive/LHPACK.COM 17. http://www.msxarchive.nl/pub/msx/utils/archive/lhext133.com 18. http://www.msxarchive.nl/pub/msx/utils/archive/lharc102.lzh 19. http://www.msxarchive.nl/pub/msx/utils/archive/pr170.lzh 20. http://www.msxarchive.nl/pub/msx/utils/archive/pr200.lzh 21. http://www.msx-plaza.eu/ 22. http://www.msxarchive.nl/pub/msx/utils/archive/d2ff2d.lzh 23. http://www.msxarchive.nl/pub/msx/utils/archive/xscxsdmx.pma 24. http://www.msxarchive.nl/pub/msx/utils/othersys/xscxsdpc.arj 25. http://www.msxarchive.nl/pub/msx/utils/othersys/xsc_xsd.sun.tar.gz 26. http://www.msxarchive.nl/pub/msx/utils/othersys/xsc_xsd.hp.tar.gz 27. http://www.msxarchive.nl/pub/msx/utils/othersys/xsc_xsd.linux.tar.gz 28. http://www.msx-plaza.eu/home.php?page=misc/xsaformat 29. http://mess.emuverse.com/ 30. http://www.msxarchive.nl/pub/msx/utils/othersys/dcopy.zip 31. http://www.lexlechz.at/download/DISKMGR.zip 32. http://www.lexlechz.at/ 33. http://www.geocities.com/SiliconValley/Vista/2653/misctips.html 34. http://www.geocities.com/SiliconValley/Vista/2653/shrinkwr.hqx 35. http://www.msxarchive.nl/pub/msx/utils/othersys/splitdsk.zip 36. http://www.msxarchive.nl/pub/msx/utils/othersys/multidsk.c 37. http://www.msxarchive.nl/pub/msx/utils/othersys/multidsk.exe 38. http://www.msxarchive.nl/pub/msx/utils/othersys/multidsk.c 39. http://www.msxarchive.nl/pub/msx/utils/othersys/multidsk.exe 40. http://www.msxarchive.nl/pub/msx/utils/othersys/rdwrdspc.zip 41. http://www.msxarchive.nl/pub/msx/utils/harddisk/rddsk.com 42. http://www.msxarchive.nl/pub/msx/utils/harddisk/wrdsk.com 43. http://www.msxarchive.nl/pub/msx/utils/harddisk/fdload11.lzh 44. http://www.msxarchive.nl/pub/msx/utils/harddisk/fdsave11.lzh 45. http://www.msxarchive.nl/pub/msx/utils/harddisk/getdisk.pma 46. http://www.faq.msxnet.org/soft/Games_that_work_with_start.txt 47. http://msx.fi/nyyrikki/files/fddemu05.lzh 48. http://www.msxarchive.nl/pub/msx/utils/dos2/hdemu101.lzh 49. http://www.msxarchive.nl/pub/msx/utils/dos2/hdem101e.lzh 50. http://www.msxarchive.nl/pub/msx/utils/harddisk/fde.com 51. http://www.neardark.nl/ 52. http://www.msxarchive.nl/pub/msx/utils/othersys/msx2dsk.zip 53. http://www.msxarchive.nl/pub/msx/utils/othersys/msx2dsk.c 54. http://www.msxarchive.nl/pub/msx/utils/othersys/msx2dsk.exe 55. http://mess.emuverse.com/ 56. http://www.msxarchive.nl/pub/msx/utils/othersys/updownc.lzh 57. http://www.msxarchive.nl/pub/msx/utils/othersys/diskdupe.lzh 58. http://www.msxarchive.nl/pub/msx/utils/othersys/dditodsk.zip 59. http://www.msxarchive.nl/pub/msx/utils/othersys/ddi2dsk.c 60. http://www.msxarchive.nl/pub/msx/utils/othersys/ddi2dsk.exe 61. http://mess.emuverse.com/ 62. http://www.msxarchive.nl/pub/msx/utils/othersys/td0todsk.lzh 63. http://www.msxarchive.nl/pub/msx/utils/othersys/cp2todsk.lzh 64. http://www.msxarchive.nl/pub/msx/utils/othersys/img2dsk.zip 65. http://www.msxarchive.nl/pub/msx/utils/othersys/img2dsk.c 66. http://www.msxarchive.nl/pub/msx/utils/othersys/img2dsk.exe 67. http://mess.emuverse.com/

68. http://mess.emuverse.com/ 69. http://home.kabelfoon.nl/~vincentd/

70. http://www.msxnet.org/vmsx/ 71. http://mess.emuverse.com/

72. http://www.msxarchive.nl/pub/msx/utils/trunks/loadr10.lzh 73. http://adrpage.cjb.net/execrom.com

74. http://www.alsoftware.com.br/adrianpage/ 75. http://www.msxarchive.nl/pub/msx/utils/trunks/loadr10.lzh

76. http://www.faq.msxnet.org/scc.html 77. http://www.faq.msxnet.org/dos2.html

78. http://www.msxarchive.nl/pub/msx/utils/misc/carga.lzh 79. http://www.msxarchive.nl/pub/msx/utils/misc/rrom101.lzh

80. http://www.msxarchive.nl/pub/msx/utils/misc/rima130.lzh 81. http://niga.tripod.co.jp/msx/syogun.html

82. http://niga.tripod.co.jp/msx/SOFT/nstool.lzh 83. http://niga.tripod.co.jp/msx/SOFT/megamu5.lzh

84. http://www.interq.or.jp/white/white/fswold/tool/MEGA16_8.LZH 85. http://niga.tripod.co.jp/msx/SOFT/ngload.lzh

86. http://www.msx.org/ 87. http://manuel.msxnet.org/bookmarks/ Get a free Evernote account to save this article and view it later on any device.

Create account