Close

Working on a test program

A project log for One Kilobyte Operating System (OKOS)

Tiny computer OS for 1kB challenge. OKOS is just ok because OKOS is just OK.

ben-henckeBen Hencke 12/07/2016 at 05:100 Comments

I've tested the various components, but it would be cool to have something interesting happen with the whole thing together. So I'm writing a little test program that drives the 74hc138 and sct2024 in the SuperCon badge, enough to blink an LED.

With a compile flag, it will push some test files to the chip. One is source code, the other is a program assembled by MPLABX of the same program. Then when you boot up the chip, you can start assembling a program without having to type everything in the functional but minimal editor.

I was able to assemble the source code, get a hex dump of program flash, and verify that the MPLAB compiled code matches the on-chip assembly!

The LED blinking part isn't working, but hey, everyone has seen blinking LEDs before.

Here's a quick demo of the editor

Discussions