I need to emulate assembly for 8086 program in Ubuntu.

I searched repository and I found 8085 emulator which is not similar to 8086.

Is there any 8086/88 assembly emulator for ubuntu?

share|improve this question
    
What exactly do you want to do? What kind of platform would your program run on? What format is the binary in? – sehe Dec 18 '11 at 21:56
    
@sehe I wanna to emulate assembly for 8086 – Moein Hosseini Dec 18 '11 at 22:18
up vote 7 down vote accepted

I suggest looking at

Edit Found:

  • bcc

    This is a C-compiler for 8086 cpus which is important for the development of boot loaders or BIOS related 8086 code.

    It is possible to run 8086 code under i386 Linux using an emulator, `elksemu', also included in this package.

  • dosbox (runs old-style .com files just fine)

    DOSBox is a x86 emulator with Tandy/Hercules/CGA/EGA/VGA/SVGA graphics, sound and DOS. It's been designed to run old DOS games under platforms that don't support it. (Win2k/XP/FreeBSD/Linux/MAC OS X)

  • dosemu

    DOSEMU is a PC Emulator application that allows Linux to run a DOS operating system in a virtual x86 machine. This allows you to run many DOS applications.

    • Color text and full keyboard emulation (via hotkeys) via terminal.
    • Built-in X support, includes IBM character set font.
    • Graphics capability at the console with most compatible video cards.
    • DPMI support so you can run DOOM.
    • CDROM support.
    • Builtin IPX and pktdrvr support.
  • bochs

    Bochs is a highly portable free IA-32 (x86) PC emulator written in C++, that runs on most popular platforms. It includes emulation of the Intel x86 CPU, common I/O devices, and a custom BIOS.

  • qemu/kvm

    Using KVM, one can run multiple virtual PCs, each running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc.

    KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux hosts on x86 (32 and 64-bit) hardware.

share|improve this answer
    
found bcc which looks to be your best match, allthough I haven't used it before – sehe Dec 18 '11 at 22:05
    
bcc is a c compiler that produces 8086 asm, not an emulator... – chris-l Dec 2 '13 at 18:41
    
@chris-l and I quote: "It is possible to run 8086 code under i386 Linux using an emulator, `elksemu', also included in this package." Also, bcc came with TASM.exe if memory serves. This was a full-featured speedy assembler. I loved it more than MASM. But! That was then :) – sehe Dec 2 '13 at 20:00
    
oooh! I heard about elks, read about it like 8 years ago. And I didn't knew they were part of the same thing. I stand corrected then :) – chris-l Dec 2 '13 at 20:17

To add to @sehe's wonderful answer.

  • VirtualBox is also available for Ubuntu. Complete VM environment.
share|improve this answer

You need to be more clear about what you intend to run. There is x86 assembly and then there are all the system calls int 10h int 21h, etc which are not related to assembly but to an operating system. If you are interested in the instruction set I have stripped down pcemu to avoid the confusion of an underlying operating system or bios, leaving just the assembly (for educational purposes).

https://github.com/dwelch67/pcemu_samples

the real pcemu is a good enough 8086/88 assembler to run dos and other things on top of it. There are a number of derivatives to choose from.

I included a copy of the original that I stripped down.

You can easily try bochs or dosbox on ubuntu, just apt-get one or the other or both if you just want to run some old x86 dos programs that wont run in qemu or virtualbox/vmware (because they dont emulate dos).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.