Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  DOS emulator?
« previous next »
  • Print
Pages: [1]

Author Topic: DOS emulator?  (Read 3630 times)

Offline lolsack

  • Member
  • *
  • Posts: 53
DOS emulator?
« on: September 27, 2009, 01:57:50 PM »
i know the performance wouldn't be great at all but it may be possible on some players :) so could it happen?
« Last Edit: September 27, 2009, 03:42:35 PM by lolsack »
Logged

Offline froggyman

  • Member
  • *
  • Posts: 214
Re: DOS emulator?
« Reply #1 on: September 27, 2009, 03:13:04 PM »
I am sure it would be possible for this to happen, but someone who wants this would have to put the time into porting a DOS OS, like FreeDOS, as it is under the GNU GPL (same as rockbox I believe. And FreeDOS is also all open source and written in C, so that helps a little as well.

Even with that being said there would be tons of work like coding and debugging that would need to be done. For example, FreeDOS is for standard computers and mostly likely takes advantages of things like malloc() (which rockbox has minimal support for). Another disadvantage would be that with command line OS's you need to type everything, which could be done with the "virtual keyboard" in rockbox, but take more time than normal.

AFAIK FreeDOS doesnt require alot of system resources (like memory or processing power), so it wouldnt run incredibly slow, so it might be usable.

But still someone has to be interested in this enough to want it done, believe it or not rockbox just doesn't have code monkeys laying around ready to be used to implement new features that users want. :)
Logged
iPod Video 5.5G 30GB - Now Dead :(
Sansa Fuzev2 4GB

"To prevent this day from getting worse, I'll just read ERROR as GOOD THING"

Offline lolsack

  • Member
  • *
  • Posts: 53
Re: DOS emulator?
« Reply #2 on: September 27, 2009, 03:44:26 PM »
Quote from: froggyman on September 27, 2009, 03:13:04 PM
Another disadvantage would be that with command line OS's you need to type everything, which could be done with the "virtual keyboard" in rockbox, but take more time than normal.

What about making a gui?
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: DOS emulator?
« Reply #3 on: September 27, 2009, 03:53:44 PM »
Quote from: froggyman on September 27, 2009, 03:13:04 PM
I am sure it would be possible for this to happen, but someone who wants this would have to put the time into porting a DOS OS, like FreeDOS, as it is under the GNU GPL (same as rockbox I believe. And FreeDOS is also all open source and written in C, so that helps a little as well.

Even with that being said there would be tons of work like coding and debugging that would need to be done. For example, FreeDOS is for standard computers and mostly likely takes advantages of things like malloc() (which rockbox has minimal support for). Another disadvantage would be that with command line OS's you need to type everything, which could be done with the "virtual keyboard" in rockbox, but take more time than normal.

AFAIK FreeDOS doesnt require alot of system resources (like memory or processing power), so it wouldnt run incredibly slow, so it might be usable.

But still someone has to be interested in this enough to want it done, believe it or not rockbox just doesn't have code monkeys laying around ready to be used to implement new features that users want. :)

I suspect the goal would be more to have a DOS-era PC emulator (which includes DOS) than the ability to run a DOS port. As such, probably dosbox would be a better start than freedos, but unfortunately it's C++.

Anyway, if the main goal is to support games, I don't think the lack of a decent keyboard is a big problem (at least not more so than for the spectrum emulator)

CPU power is going to be a big problem though.
Logged

Offline lolsack

  • Member
  • *
  • Posts: 53
Re: DOS emulator?
« Reply #4 on: September 27, 2009, 04:19:25 PM »
Quote from: gevaerts on September 27, 2009, 03:53:44 PM
CPU power is going to be a big problem though.

im going to have to agree with you and when i have spare time i will look for some emulators written in C :)

EDIT: ive search and the only thing ive found is freeDOS but there may be other things i do not know about.
« Last Edit: September 27, 2009, 09:31:59 PM by lolsack »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: DOS emulator?
« Reply #5 on: September 28, 2009, 04:56:41 PM »
Wouldn't you want something more like DOSbox?
Logged

Offline lolsack

  • Member
  • *
  • Posts: 53
Re: DOS emulator?
« Reply #6 on: September 28, 2009, 09:46:10 PM »
erm dosbox is written in C++, and im pretty sure rockbox is in C soo..... that just won't work, you would have to rewrite the code and i can't do it because i have no clue how to script in C
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: DOS emulator?
« Reply #7 on: September 28, 2009, 10:54:28 PM »
No, my point is there wouldn't be much point at all in running DOS or a DOS-like OS without an x86 emulator beneath it so you could run DOS software.
Logged

Offline lolsack

  • Member
  • *
  • Posts: 53
Re: DOS emulator?
« Reply #8 on: September 28, 2009, 11:28:16 PM »
uhh you made my brain hurt D: please make simpler
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: DOS emulator?
« Reply #9 on: September 29, 2009, 05:55:38 AM »
DOS runs on x86 hardware - i.e. the type of chip architecture that is in your desktop PC.  The targets rockbox runs on are a variety of chip architectures (arm, coldfire, mips and sh) none of which are x86.  Therefore Llorean is suggesting that in order to be able to do anything useful at all with your "DOS environment" once you have it, you also need it to be a x86 emulator, i.e. something that can pretend to be a different type of hardware so that your programs run.  An operating system designed to run on x86 is not very useful.

Note that emulating hardware needs host hardware that is many times faster than that which it is trying to emulate.

Quote from: lolsack on September 28, 2009, 09:46:10 PM
erm dosbox is written in C++, and im pretty sure rockbox is in C soo..... that just won't work, you would have to rewrite the code and i can't do it because i have no clue how to script in C

If you find something in C, it will have to be heavily modified if not rewritten (in this case) to be able to run on Rockbox - just finding something in C doesn't mean it will in any way whatsoever work.
« Last Edit: September 29, 2009, 06:20:56 AM by AlexP »
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline lolsack

  • Member
  • *
  • Posts: 53
Re: DOS emulator?
« Reply #10 on: October 02, 2009, 05:52:33 PM »
oh... ok :P
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  DOS emulator?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.097 seconds with 14 queries.