Sub-Etha Software
Blogs

Function names and “Clean Code”

August 14, 2019 Sub-Etha Software

At a previous job, I was introduced to the concept of “clean code.” As an embedded programmer, where we are often trying to squeeze extra bytes out of already optimized code, many of the principals of clean code do not apply.

But, in general, I like what I have read

Sub-Etha Software
Blogs

C and the dangers of memcpy()

August 9, 2019 Sub-Etha Software

In the C programming language, memcpy (memory copy) is a function used to copy a range of bytes from one location in memory to another. I have used it often. Today, my boss mentioned something about not liking memcpy() because of all the dangers of using it. I understand that

Sub-Etha Software
Blogs

Braces! Foiled again!

July 30, 2019 Sub-Etha Software

Just a quick rant, based on how example code from a new compiler I am using is presented.

In C (and similar languages), it is very common to see simple logic presented in one line, such as:

if (AlertLevel == RED) TurnOnSiren();

That is simple to understand, and only

Sub-Etha Software
Blogs

Yo ho, yo ho, a (video) pirate’s life for me…

June 14, 2019 Sub-Etha Software

The following is a reprint of an article I originally wrote around November 11, 2002 at 4:17:20 a.m. CST. Apparently.

From: Allen Huffman

Date: November 11, 2002 4:17:20 AM CST

Subject: Yo ho, yo ho, a (video) pirate’s life for me…

The 1990s.  You remember them, don’t you?  It

Sub-Etha Software
Blogs

Modern monitors that work with the CoCo 3!?!

May 30, 2019 Sub-Etha Software

In the 1980s and 1990s, there were many computers made that used a 15Khz analog RGB signal. These included the CoCo 3, Commodore Amiga, Atari ST, etc. There were a number of monitors to choose from to use on the CoCo 3, with one of the most popular being the

Blogs

OS-9 Lives!

May 28, 2019 Sub-Etha Software

Lately, I have been “playing” with the current version of Microware’s OS-9 realtime operating system. It is still very familiar to what I last knew when I left RadiSys/Microware in 2007, but with many interesting updates.

It took me a bit to remember how to use Ultra-C (Microware’s strict-ANSI compiler)