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.
- macOS 14+
- Works offline
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
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.
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.
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.
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.
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.
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.
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.
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.
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)
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.
| Feature | Free | Pro |
|---|---|---|
| Write and debug | ||
| Editor with syntax colouring and completion | Yes | Yes |
| MASM-style assembler with listings | .COM | .COM, .EXE, boot sector, floppy |
| Run, step and breakpoints | Yes | Plus conditional and interrupt breakpoints |
| Registers, flags, memory and the stack | Yes | Plus the register bit view |
| Step Back | Last 100 steps | The whole run, with narrated history |
| Watches | Up to 3 | Unlimited |
| Text screen and keyboard | Yes | Yes |
| Understand | ||
| Instruction and DOS/BIOS reference, with hover docs | Yes | Yes |
| Plain-English explanation of each line | Yes | Yes |
| Live explanation with the actual values | No | Yes |
| Why each flag changed | No | Yes |
| Machine-code encoding breakdown | No | Yes |
| Learn and build | ||
| Lessons | The first 2 | All 16 |
| Built-in exercises with automatic checking | The first 2 labs | All, including the 8086 Lab Manual |
| Open and check exercises from your teacher | .COM programs with the free devices | All |
| Teacher tools: write exercises, grade a class | No | Yes |
| Examples | Basics and screen | All, plus 19 projects |
| Devices | Text screen, traffic lights, LED, printer | The full workbench |
| AI assistants (MCP, on the Mac) | No | Yes |
- 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.
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.
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.