main.asm
Loading editor…
Output appears here when the programme runs.
Ready · press Step or RunLn 1, Col 18086 Assembly · Studio

8086 Assembly

8086 Assembly online compiler

Write 8086 assembly, step through it, and watch the registers, flags and memory change.

About this 8086 Assembly compiler

This is an 8086 assembler and emulator that runs in your browser. It assembles your source into real 8086 machine code and runs those bytes one instruction at a time, forwards and backwards. Each step is explained in plain words: which registers and flags changed, what was pushed on the stack, and what a jump decided. It accepts the MASM and emu8086 style used in most microprocessor courses, with .MODEL, .DATA and .CODE or a one-segment ORG 100h programme, and the common INT 21h services for printing and reading keys.

Questions and answers

Do I need emu8086, MASM or DOSBox?
No. The assembler and the 8086 emulator both run in your browser, so there is nothing to install and it works on a phone.
Which syntax and interrupts are supported?
MASM and emu8086 style source with .MODEL, .STACK, .DATA and .CODE, or a .COM programme with ORG 100h. INT 21h services for printing a character or a string, reading a key or a line, and ending the programme are built in, along with INT 20h and HLT.
Can I see the machine code?
Yes. The Listing panel shows the address and the bytes each line assembled to, and the line that runs next is highlighted there and in the editor.
Does my code get sent to a server?
No. Unlike the compiled languages on this site, 8086 programmes are assembled and run entirely on your device.