Bare86
8086 Emulator & Debugger

See what every instruction did.

Bare86 is an 8086 emulator, assembler and debugger for the Mac, with iPhone and iPad coming later. Write assembly, step through it, step back, and read in plain English why each register and flag changed.

Coming soon to the Mac App Store Free and Pro
  • macOS 14+
  • Works offline
sum.asmPaused after step 9 · loop pass 4 CS:IP 0100:0107
        org  100h
start:  mov  cx, 10        ; how many to add
        xor  ax, ax        ; total = 0
next:   add  ax, cx
        loop next
        mov  [total], ax
        mov  ah, 4Ch
        int  21h         ; back to DOS
total   dw   0

Registers

AX
0022
BX
0000
CX
0007
DX
0000
SP
FFFE
BP
0000
SI
0000
IP
0107

Flags

O0D0I1 T0S0Z0 A1P1C0
add ax, cxAX = 001Bh + 0007h = 0022h  (27 + 7 = 34)

Why AF = 1: the low hex digits carried, Bh + 7h = 12h. ZF = 0 because the result isn't zero. Encoded as 01 C8.

6 · loop next7 · add ax, cx8 · loop next9 · add ax, cxStep Back ⇧F6
What it does

A whole 8086 PC you can stop, inspect and rewind.

Bare86 emulates the 8086, 8088 and 80186 with a DOS and BIOS, so the programs from your course run as written.

Write

Editor and assembler

  • Syntax colouring, completion and hover docs for every instruction, directive and interrupt.
  • MASM-style assembler with listings and clear error messages.
  • .COM programs, plus .EXE, boot-sector and floppy programs in Pro.
Debug

Run, step and step back

  • Run, Step Into F7, Step Over F6, Step Out F8 and breakpoints.
  • Step Back ⇧F6 undoes the last step, so a missed jump is one key away.
  • Registers, flags, memory, the stack, watches and the text screen, all live.
Understand

Explanations in plain English

  • Each line explained: what it reads, what it writes, what it means.
  • Live explanations with the actual values and the calculation.
  • Why each flag changed, and how the instruction is encoded in bytes.
Learn

Lessons, exercises and projects

  • 16 guided lessons, from segments and registers to interrupts and DMA.
  • Exercises that check your program and give hints when it's wrong.
  • 19 complete projects to read, run and change.
Connect

The device workbench

  • Wire your program to LEDs, traffic lights, an LCD, a keypad, motors and a scope.
  • The lab chips: 8255 PPI, 8253 timer, 8259 PIC, 8279, ADC0808, DAC0800, 8251 and 8237.
Ask

AI assistants, if you want them

  • On the Mac, connect an AI assistant such as Claude through MCP. It can read your program and its state, and explain them.
  • Off until you turn it on. Teachers can limit or disable it for exams.
Devices

out 4, ax changes the traffic lights.

Port I/O stops being abstract when something on screen reacts. Attach a device, write to its port, and watch it change while you step. The free version includes the text screen, traffic lights, LED display and printer.

Outlined in green: included with Pro.

  • Text screen
  • Traffic lights
  • LED display
  • Printer
  • Seven-segment (Pro)
  • Dot matrix (Pro)
  • LCD (Pro)
  • Matrix keypad (Pro)
  • Stepper motor (Pro)
  • DC motor (Pro)
  • Servo (Pro)
  • Thermometer (Pro)
  • Elevator (Pro)
  • Water tank (Pro)
  • Washing machine (Pro)
  • Robot (Pro)
  • 8255 PPI (Pro)
  • 8253 timer (Pro)
  • 8259 PIC (Pro)
  • 8279 (Pro)
  • ADC0808 (Pro)
  • DAC0800 (Pro)
  • 8251 USART (Pro)
  • 8237 DMA (Pro)
  • Oscilloscope (Pro)
  • Signal generator (Pro)
  • Logic analyser (Pro)
  • Real-time clock (Pro)
Free and Pro

Start free. Unlock everything once.

The free version is a complete assembler and debugger. Pro adds the full course, the deeper explanations and the whole workbench.

FeatureFreePro
Write and debug
Editor with syntax colouring and completionYesYes
MASM-style assembler with listings.COM.COM, .EXE, boot sector, floppy
Run, step and breakpointsYesPlus conditional and interrupt breakpoints
Registers, flags, memory and the stackYesPlus the register bit view
Step BackLast 100 stepsThe whole run, with narrated history
WatchesUp to 3Unlimited
Text screen and keyboardYesYes
Understand
Instruction and DOS/BIOS reference, with hover docsYesYes
Plain-English explanation of each lineYesYes
Live explanation with the actual valuesNoYes
Why each flag changedNoYes
Machine-code encoding breakdownNoYes
Learn and build
LessonsThe first 2All 16
Built-in exercises with automatic checkingThe first 2 labsAll, including the 8086 Lab Manual
Open and check exercises from your teacher.COM programs with the free devicesAll
Teacher tools: write exercises, grade a classNoYes
ExamplesBasics and screenAll, plus 19 projects
DevicesText screen, traffic lights, LED, printerThe full workbench
AI assistants (MCP, on the Mac)NoYes
$14.99one time
  • Try all of Pro free for 14 days. No subscription, nothing renews.
  • One purchase, yours to keep. Restore it on any of your Macs, and on iPhone and iPad when they arrive.
  • Prices vary by country in the App Store.
Coming soon
For teachers

Set homework. Grade a folder.

Write an exercise from your own solution, send it to the class, and grade every submission into a spreadsheet. Students open and check your exercises in the free version when they're .COM programs with the free devices.

Bare86 in the classroom →

Privacy

Your programs stay on your device.

Bare86 collects no data. No accounts, analytics, ads or tracking, and the app makes no network connections. Purchases go through Apple.

Privacy policy