1

I've downloaded the source code of MSDOS 1.1 and 2.0, and want to compile MSDOS 1.1. I don't want to do it with an emulator (like DOSbox). How do I compile MSDOS 1.1 on Lubuntu 15.04?

Luís de Sousa
  • 13,018
  • 25
  • 77
  • 128
wb9688
  • 1,417
  • 1
  • 17
  • 29
  • With NASM. http://www.nasm.us/pub/nasm/releasebuilds/2.11.08/linux/ – kyodake Jul 19 '15 at 16:40
  • 2
    That are only .rpm's which can't be installed on *ubuntu – wb9688 Jul 19 '15 at 17:37
  • I've converted the rpm to deb using alien, but how do I compile it? – wb9688 Jul 19 '15 at 18:15
  • To extend on the other comment, there are [nasm packages](http://packages.ubuntu.com/trusty/nasm) in the Ubuntu repositories. Possibly related question: http://stackoverflow.com/q/647872/2010467 – LiveWireBT Jul 20 '15 at 13:21
  • This is actually an interesting question, especially for Ubuntu users that did not study computer science. However it is on the brink of being closed; you could perhaps explain what you exactly intend to achieve. – Luís de Sousa Aug 07 '15 at 19:21

1 Answers1

3

You can not compile it because it is assembler code, i.e. code that is to be executed directly by the CPU. MS DOS 1.1 was just a re-brand of QDOS, an operating system developed for the Intel 8086 architecture. This means that MS DOS 1.1 can not be executed on different architectures.

You might be able to execute it with an assembler code interpreter able to emulate the Intel 8086, such as PCEmu or NASM (available from the Software Centre).

Luís de Sousa
  • 13,018
  • 25
  • 77
  • 128
  • How do I run it with NASM? – wb9688 Aug 08 '15 at 17:27
  • 1
    You might have a relevant learning curve ahead of you if you never coded assembler before. You can start with [a NASM tutorial](http://docs.cs.up.ac.za/programming/asm/derick_tut/) and see if you can take it from there. – Luís de Sousa Aug 08 '15 at 18:18