Home Home

How-To: Play DOS Games On Your Nokia N97 [DOSBox]

Run some of the greatest DOS games on your Nokia N97!

Run some of the greatest DOS games on your Nokia N97!

Before there was Windows, there was DOS. A command-line interface with nothing but text, text, and more text. During the ’80s and ’90s, DOS was the OS of choice for gaming. And there were lots of great games.

Flash-forward to today. Thanks to an open-source emulator called DOSBox, you can now run those oldies-but-goodies on your Nokia N97 (or 5800XM, or any other S60 3rd or 5th Edition phone, for that matter). This how-to will get you started installing and running games with DOSBox.

Let’s begin!

The Setup

You’ll need the following:

- DOSBox. Latest version as of this writing: 2009-06-23.
- Custom dosbox.conf and premapper.txt files. Dosbox.conf is a config file, and premapper is a key map file. I’ve zipped them both up for your enjoyment. More on this later.
- DOSBox Binary Dependencies. Required to run the program. Click the “Binary Dependencies” box to show the link.


1. Copy the following files to your N97, in any folder of your choosing. Do not install yet.

- glib.SIS (from Binary Dependencies zip file)
- pips_nokia_1_3_SS.sis (Binary Dependencies)
- SDL-1.2.13-s60-2.3.4_armv5.sisx (Binary Dependencies)
- ssl.SIS (Binary Dependencies)
- stdcpp.SIS (Binary Dependencies)
- stdioserver_s60_1_3_SS.SIS: this may refuse to install. If it doesn’t install, skip this file. (from Binary Dependencies zip file)

- full3/dosbox.sisx: note that this is the full version dosbox, not the slim one. The slim one is for crappier phones. It should be located in the full3 folder in the dosbox zip file.

2. On your E: (Mass Memory) drive, check to see that you have a Data folder. If not, create it. Also, create a Games folder. You can choose to copy games to this folder now or later.

3. Copy the following files to the Data folder in Step 2.

- dosbox.conf
- premapper.txt

4. Install all binary dependencies files first (i.e. the first six files in Step 1). These should install without any prompts.

5. Install dosbox.sisx. I installed it on my Mass Memory drive, but I doubt having it on the phone memory would make any difference.

6. Run DOSBox. If you’ve done everything correctly, you should see something that looks like this (my directory already has games in it, so it’ll probably be different):

DOSBox: Your screen should look similar to this.

Congratulations, you’re done with the first (major) part. You can safely type “exit” to quit.

Key Mapping

Before you go digging around DOSBox, you might want to read a little bit about key mapping, and which buttons do what:

I’ve included my default key map file (premapper.txt). Basically all of the letter keys should function properly, both lowercase and uppercase. The Function key (blue diagonal arrow) does nothing. However, the Sym key is extremely important – it toggles between the normal/letter mode and number/special character mode:

Press Sym to toggle number/special mode, and press it again to return to letter mode. In number mode, the following keys are different:

- The top row of keys will default to their correct number (ie Q will be 1, W will be 2, and P will be 0).
- The Backspace key is now an ESC/escape key. You might need this in certain games to quit.
- The S key is a / or forward slash key.
- The D key is a – or dash key.
- The arrow keys move the mouse cursor, instead of acting as arrow keys.
- The 5-way directional key (the key inside the arrow keys) functions as a left click.
- The Space Bar functions as a right click.
- The H, J, and K buttons are Home, Up, and Page Up, respectively.
- The B, N, and M buttons are Left, Down, and Right, respectively.

I’m still messing around with key mappings, so check back for updated versions. Next thing I’d like to add is a left click on touch in number mode.

Adding Games, Running DOSBox, and Navigating DOS

Next, you’ll need to find some old DOS games. There’s a lot of sites that host this stuff – simply Google “Abandonware” or “dos games” and you should come up with quite a few. Once you’ve gotten hold of some games, copy them to your E:\Games directory. It’s best to create directories for each game, since each game could have tons of little files, and you don’t want to drop everything into one directory.

Now load up DOSBox again. You should see some commands that were automatically entered (see Configuration and Key Mapping section for more), and a listing of the current directory. For now, here’s the basic commands necessary to navigate through DOS: (be sure to enter the command and then hit the enter key afterwards)

cd – switches to the directory you specify in . Without the < and > of course.
cd.. – go back to the previous directory
dir – displays a list of files in the current directory
dir .exe or dir .bat – displays a list of files with the exe or bat extension. Works with any other extension also.
– run a file. Only works on executable files such as .exe, .bat, and .com.
exit – quit DOSBox.

Let’s go through an example. I’ve copied a game called “dune” to my Games folder.

C:/> cd dune

This switches to the “dune” directory.

C:\DUNE> dir .exe

This displays all of the executable files in the dune directory. Running the command on my N97, I see that there’s a DUNE2.EXE file. This should be the main executable file.

C:\DUNE> dune2

This runs the executable and loads the game. You don’t need to add the extension.

Not too bad, right? And if you need some game suggestions, here’s a couple that I’ve tried:

- Dune 2 (one of the first RTS games made, a little slow but very playable and still a lot of fun)
- Commander Keen (excellent classic side-scroller game)
- Dark Sun (oldschool RPG, slow but playable)
- Civilization (the original that started it all)


DOSBox includes a dosbox.conf configuration file that you can use to change the options. I’ve made the following changes to the dosbox.conf:

- devicescreenwidth and devicescreenheight is set to match the N97 (640×360)
- mouse sensitivity is 500
- cycles = 3000 (default is 800)
- all sound (pc speaker and sound blaster sound effects) have been turned off to increase frame rate
- upon loading, DOSBox will automatically mount the E:\games drive, read the premapper.txt file in E:\data, go to the E:\games directory, and display all files in that directory

Feel free to change any or all of the above settings to whatever you’d like.

Things to Remember

- E:\games is the default games directory. You can change this in the dosbox.conf file.
- E:\data is the default data directory. Make sure you put the dosbox.conf and premapper.txt files here.
- The config file is set to automatically open up the E:\games folder and display the contents.
- Sound will kill your FPS.
- Changing your s60scale variable will too.

Other Stuff

- You can also apply the same steps to the Nokia 5800 XpressMusic. However, since the 5800XM has no physical keyboard, you’ll have to use a virtual keyboard – read the help files included with DOSBox for more info on this. I don’t have a 5800XM any more, so I can’t test this.
- If you’d like to install DOSBox for other platforms (like Windows or OS X), check out the official DOSBox page.


Well, for the most part the above was figured out by me. Credits, however, do go out to a user named Lorenzo over at the Sourceforge page, who provided a custom key map that I used as a base for my own mapping. And major props to kljc for porting DOSBox to the S60 Fifth Edition platform – if you like what he’s doing, consider donating to the DOSBox project.



, , , ,

4:55 am

When I launch DosBox, it only shows up a quarter of the screen?
I’m using this on my N97 and set the resolution to 640×360.

7:42 pm

I’m Running DOSBox on a Nokia E71 but every time i try to run Doom it takes way to long to open and when it finally does open it runs at nearly 0.5 frames per second, i’ve tried everything, but it just won’t go fast. does this have to do with the CPU Cycle and what value should i give it without overclocking my CPU or something like that…

7:01 am

Try downloading C2doom, its a touch version so it can be a little tricky to get used to. touch screan at top to go forward ect pluss the enter button is up in top left corner

Lord Dextro
5:06 pm

You will need the new SDL file here is the link:

Lord Dextro
5:06 pm

Just to let people know that the SDL file is not going to install due to a certificate error. You will need the updated SDL file:

here is the link:

2:40 pm

hi i have a problem with installing
it says expired certificate
and also the file “dosbox.sisx”
it says “certification error contact the application supplier”
i use Nokia E90 Communicator

4:55 pm

Try changing the date on your phone to sometime in 2009, 2008, and 2007. That usually fixes this problem.

1:28 am

I had this problem too, so I find SDL-1.2.13, version 2.3.6. Try to browse internet.

Now it works :-)

1:25 pm

How can you put your phone back to another date ??

11:55 pm

I have a problem installing the “SDL-1.2.13-s60-2.3.4_armv5.sisx (Binary Dependencies)” file. It says “Expired Certificate”. I have already set my “Software Installation” to “All”; and “Online Certif” to “Off”. Also, I tried change my date back to 2006/2007 as some forums suggest.

4:22 am

Hi Thank you for your posting
But I have one problem with dosbox
The screen is so small. Maybe it is the quarter of the full screen. I use your config file. How can I make it fullscreen?

5:41 pm

Make sure that your dosbox.conf has the resolution options set to 640×360 (if you’re using the N97) and it should take up the entire screen. For other phones, you might have to modify the numbers to match your phone resolution.

Sabina from Billige mobiler
10:04 am

Finally I can play Snakes and Maniac Mansion on my cell :)

The Nokia Phone Blog » Blog Archive » Revisiting the Nokia N97, Four Months Later: A Review
11:16 pm

[...] that could do pretty much anything. I haven’t seen much of that. Sure, I now have DosBox running on my phone, an excellent eBook reader, and some simple games, but I don’t feel like [...]

8:17 am

awesome right up. I have followed all the steps on my n97 and i can’t open dosbox. Nothing happens. Can someone help me please ?

5:11 pm

Thank you very much for supplying all the information. I can load dosbox but when I try to cd to a directory or to start a game, dosbox always says “unable to change” or “incorrect command”. Can you please help me out over here? I have a N97 and I have done everything as described…

12:58 am

Do other commands work? Such as “dir”? If you successfully installed Dosbox, there technically shouldn’t be any problems with the commands since these are all built-in to the application.

Reply to Danny

nokia phone blog: version 5

Subscribe!The Nokia Phone Blog is about mobile phones, MeeGo, S60, the wireless industry, and now Windows Phone.
Subscribe here.  RSS, Atom
Email me at cary (at) nokiaphoneblog.com.

The Blog




Mobile Phone Software


Nokia Phone Accessories


Nokia Phone Deals


Nokia Phone News


Nokia Phone Previews


Nokia Phone Reviews


Nokia Phone Tips and Tricks


Nokia Randomness


Other Mobile Phones


Wireless Industry News

Current Phone Prices, Courtesy of PhoneMatchUp!

PhoneMatchup Sony Xperia TX: $516.77
Samsung Galaxy Note II N7100: $639.00
HTC J: $598.88
Sony Xperia SL: $388.85
Nokia Lumia 900: $419.98

More Sites By Me



My personal blog.


An eBay cell phone comparison shopping/price monitoring project. Buy your next cell phone through PhoneMatchup and save!


Let randomlygifted find you the perfect (random) gift ideas.


The greatest deal aggregator that has ever existed. Okay, I'm a little biased here.