Bare86
Bare86 in the classroom

Homework that checks itself.

Turn your own solution into an exercise, hand it to the class, and grade every submission into one spreadsheet. Students open and check your exercises in the free version when they're .COM programs with the free devices, so nobody has to buy anything to do that homework.

The free devices are the text screen, traffic lights, LED display and printer. An exercise that builds an .EXE or boot-sector program, or uses another device, needs Pro to open.

  1. Teacher · Pro

    Make an exercise

    Open your solution and choose Make Exercise from This Program. Bare86 runs it once and proposes checks from the result: the exit code, what it printed, the variables it changed (list holds 01 02 03…), the registers, a balanced stack. Tick the ones that matter.

  2. Teacher

    Hand out a student copy

    Export the exercise for students. The student copy leaves out your solution, unless you choose to reveal it after the last hint.

  3. Student · Free for .COM

    Solve and check

    Students open the file, write their program and press Check. Each failed test says what went wrong, with your hints one at a time.

  4. Student · Free

    Export a submission

    Export Submission saves the program, the check result and a SHA-256 fingerprint of the source in one file to hand in.

The checker

Check the result, not just the output.

An exercise runs the student's program against your test cases and checks what you choose: registers, variables, memory bytes, flags, printed text, port writes, the exit code, and device state such as an LCD line or a motor's position.

It can also check the source: must use LOOP, must not use MUL, at most 40 bytes, stack balanced at exit, an interrupt vector restored.

For a wrong value you expected, attach a hint: "BX is 10 too high: the loop ran once more than it should."

Example result
An example check result
ex-sum-array · 3 test cases
✓ 5 numbers       total = 150
✓ empty array     total = 0
✗ 255 + 1         total = 0100h, got 0000h
  Hint: the sum doesn't fit in a byte. Add into AX, not AL.
✓ uses LOOP
✓ stack balanced at exit
About secrecyChecks run on the student's device, so a determined student can read the expected values in the exercise file. The student copy hides your solution, not the answers. For marks that count, grade the submissions yourself as below.
The gradebook

Grade a whole folder at once.

Put every submission in one folder and grade it in the app with Grade a Class (part of Pro's teacher tools). Each program is assembled and checked again, so a result edited by hand doesn't count.

The gradebook is a CSV file for any spreadsheet: one row per student with the score, the checks passed, the submission time, whether the fingerprint still matches the source, and which programs are the same apart from comments, case and spacing.

Plain .asm files work too, when students hand in source only.

An example class result in Grade a Class
Lab 4: Sort an array — 4 submissions · 3 passed · average 90 %

PASS  100 %  anh — All checks passed (5 test cases).  [same program as dung]
PASS  100 %  binh — All checks passed (5 test cases).
FAIL   60 %  chau — 3 of 5 test cases passed.
PASS  100 %  dung — All checks passed (5 test cases).  [same program as anh]

Save Gradebook (CSV)… → lab04.csv
Exercise pack

The 8086 Lab Manual, ready to assign.

Microprocessor courses tend to share one list of lab programs. Bare86 includes them as exercises with tests and hints. Labs 1 and 2 are free, so every student can start on the day they install it; the other six are part of Pro.

  • Lab 1Add two 16-bit numbers (free)
  • Lab 2Add two 32-bit numbers with carry (free)
  • Lab 3Find the largest number in an array
  • Lab 4Sort an array
  • Lab 5Reverse a string
  • Lab 6Convert BCD to binary
  • Lab 7Factorial of a number
  • Lab 8Count the 1 bits in a word
Exams and lectures

Lock it for exams. Enlarge it for the projector.

Classroom lock

Hide hints, explanations, examples, the solution and the AI assistants for the length of an exam. Wherever something is hidden, Bare86 says the classroom lock is on, so nobody mistakes it for a fault.

Lock it with a PIN on each device, or set it for the school's devices through your device management system's managed app configuration, where students can't switch it off.

Presenter mode

One switch puts the code in large type for a projector. Step through a program in front of the class and Step Back when someone asks "wait, what happened to CX?"

AI assistants, on your terms

On the Mac, students can connect an AI assistant through MCP. For exams you can limit it to the instruction reference or turn it off entirely, and it never reveals a hidden solution.

For teachers

Request free Pro

Teaching 8086 assembly? Teachers get Bare86 Pro free, with the teacher tools, to prepare and grade with. We check that you teach first, then send an App Store offer code.

  1. Write from your school email address with a link to your course page (a course catalogue entry, syllabus or class site that shows the course and you).
  2. We check it, usually within a few school days.
  3. We email you an offer code. Redeem it in the App Store with your Apple Account; Pro then unlocks on your Mac (and on iPhone and iPad when they arrive).

We also send the classroom kit: the lab manual pack, sample exercises and a grading walkthrough. We use your message only to check and answer your request (see the privacy policy).

teachers@bare86.com

Request free Pro