Ship Tracking On The Commodore 128

Wait 5 sec.

Most of the world found out about AIS, the Automatic Identification System used in maritime operations back in 2021, when ship trackers got a flood of traffic from people caught up in the drama of the MV Ever Given‘s Suez snafu. [Ioannis Anagnostopoulos] a.k.a [Greek Geek] had a more professional introduction to AIS, but also just enjoys tracking ships. He also likes his vintage Commodore 128 8-bit computer, so in a years-long labour of love he’s created AIS4CBM, a full-featured ship tracking application for the vintage machine.Alas, it doesn’t quite run on a full-stock C128 — the AIS protocol streams data at 38,400 bps, which isn’t impossible for a 1980s serial port, but it is for the serial port on the C128. He started by using an Arduino to buffer the data feed and trickle information to the Commodore, but later moved to a SwiftLink/Turbo-232-style cartridge to allow for period-appropriate fast-serial reads. [Ioannis] taught himself 6502 assembly to parse the data stream rapidly enough, but the rest of AIS4CBM is in BASIC — though not standard Commodore Basic. [Ioannis] is instead using BASIC 8, an extension by Walrus Soft that dates to the 1980s and should not be confused with DEC’s earlier BASIC 8 for PDP-8s. BASIC 8 has some fast draw routines for the 128’s video chip that can take advantage of up to 64kB of VDC memory. Getting up to 64kB of video memory was the upgrade that took [Ionnis]’s C128 beyond a stock machine, since it wasn’t a 128D. We’re pretty sure the warranty was void by now anyway.The extra VDC memory is key to let him draw a map with vessel positions on screen — otherwise the 6502 is so busy parsing data AIS4CBM can only show an 80-column text interface with BASIC 8. That still gives position, course, and speed for vessels in the area of interest, sure, but there’s something about a map that makes it much easier.If you’re into ships and no more than 8-bits, you can grab the code for yourself over on GitLab. If you’re near a coastline, you can get AIS data easily enough via Software Defined Radio, as we learned years ago.