Monday, 16 November 2026

An Introduction to 68000 Assembly Language

Assembictetus once said "beware the man, woman or child who knows only ONE assembly language".

For those who want a second assembly language, or a retro-computing assembly option, try the 68K.

R.A. and J.W. Penfold's legendary introduction "An Introduction to 68000 Assembly Language" published by Bernard Babani is a great start. It was first published in 1986.

I am not Just VS Code

I am not just VS Code, I am Visual Studio.

I am not just TypeScript, I am Rust.

I am not just C++ , I am assembly language.

I am not just little endian, I am big endian.

(Taken from Philosophy of the Programming Philosopher King).

Getting C++'d and Assembly'd Up in MSVS

To get some C++ and assembly coding action in Visual Studio (including getting lots of wonderful tools at your disposal at the "Developer Command Prompt for VS" go into Visual Studio and opt to install "Desktop Development with C++". This will offer this non-exhaustive WinJoeWonderList of options:

MSVC Build Tools for x64/x86
C++ Build Insights
C++ profiling tools
C++ CMake tools for Windows
MSVC AddressSanitizer

Let us pay homage first to AddressSanitizer. 

This amazing tool made its debut in Visual Studio 2019.  Also known as ASan, it exposes hard-to-find bugs. I am sure you are much intrigued and compelled to learn more. First know that this tool was first introduced by Google (reference given is to a Usenix conference in Boston, in 2012).

To use ASan start building your executables with /fsanitize=address compiler option. However, it should not be used in production.

C++ Build Insights are tools to help developers optimize their build process. Key parts include vcperf.exe,  a command line tool for collecting build traces. The traces can be used to identify inefficiencies in the build process. This toolset was also introduced in 2019 as this valuable blog post recites.

Assembly Programming

Assembly programming is good for the soul, remember this always.

In the mighty words of the Programming Stoic Assembictetus: "Fortify thyself with Assembly Language, For That is An Impregnable Stronghold".

One Must Know ECDSA

ECDSA is the Elliptic Curve Digital Signature Algorithm. It is a variant of the DSA (Digital Signature Algorithm) that operates over elliptic curves. Elliptic curves are related to elliptic functions that appear in complex analysis.  To understand ECDSA truly, you must know some quantitative facts about the required bit size of the private key (to be revisited).

The Joy of Self-Signed HTTPS Certificates

A self-signed HTTPS certificate is an SSL/TLS certificate that you generate and sign yourself, not issued by a trusted CA. It enables encrypted HTTPS but is not trusted by browsers by default.

It contains the same stuff that you'd expect in a CA-signed certificate (public key - typically RSA or ECDSA), digital signature and algorithm, metadata) but lacks third-party validation.

What pray tell, is the use? Development environments, internal networks and local testing. The openssl command-line tool can be used to generate keys and certificates. 

Crate tokio in Rust

You won't be programming Rust for very long before you get head-to-head with the tokio crate.

This is a runtime for writing reliable network applications without sacrificing speed. Now THAT is a worthwhile endeavour!

tokio supports the creation of asynchronous applications through an event-driven, non-blocking IO platform.  

Facilitating this are tools for facilitating asynchronous tasks.  The tokio::task module enables this. Perhaps the most useful function in this module is task::spawn.  This is the async equivalent to the standard library's thread::spawn.