Musings of an aging computer nerd hitting 0x32
Beebasm Mac Catalina
Got a new Mac with Catalina pre-installed, so had to compile my own version of Beebasm for the 64 bit OS.
10 PRINT6502
BBC Micro machine code take on C64 10 Print one line random pattern generator.
Code at Github 10print.asm

\ 10 PRINT
\ Using BeebASM assembler
\ (c) Alastair Montgomery
INCLUDE "../lib/constants.asm"
seed = &70
ORG &2000
.start
LDA #23
STA seed
LDA #63
STA seed+1
LDX #0
.char
LDA chartable, X
JSR oswrch
INX
CPX #23
BNE char
.loop
JSR random
BMI two
.one
LDA #224
JMP print
.two
LDA #225
.print
JSR oswrch
JMP loop
.finish
RTS
.random
INCLUDE "../lib/random.asm"
.chartable
EQUB 22,0
EQUB 23,224,8,8,12,7,224,48,16,16
EQUB 23,225,16,16,48,224,7,12,8,8
.end
SAVE "MyCode", start, end
CA Thumbprint from Python
Recently had a need to get the CA Thumbprint from the Root certificate of a domain. This was for creating OIDC provider for an AWS EKS cluster.
This is the solution I came up with.
6502 Assembly Language
Been trying to relearn 6502 assembly language for fun, its a lot faster and easier than the first time on actual hardware when I was a teenager.
Been using a book I picked up from eBay Discovering BBC Micro Machine Code by A.P. Stephenson
Using BeebAsm assembler on my Mac with a BBC Micro emulator, rather than build in BBC BASIC one.
You can find my code at Github https://github.com/alastairhm/beebasm
This example draws a line of zeros to Mode 7, see screenshot below.
Flickr album Short Code
Short code for embedding Flickr albums easily. Here demonstrated with my Inkotober 2020 album.

Short code defined like this
<a data-flickr-embed="true" data-header="true" data-footer="true"
href="{{ index .Params 1 }}"
title="{{ index .Params 0 }}">
<img src="{{ index .Params 2 }}"
width="800" height="600"
alt="{{ index .Params 0 }}">
</a><script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
First parameter is the album title. Second parameter is the album URL. Third parameter is a URL to an image to use for the album.
FreeBSD
One thing that I’ve never got around to seriously try in my years messing around with different operating systems is BSD, other than the flavor of it your get with MacOs.
Having watch a lot of videos around it recently on YouTube by RoboNuggie on FreeBSD it encouraged me to have to give it a go.
It went surprisingly well the and have tried both XFCE and Mate desktop installs. Something that I’ll look at using more of in the future as a backup daily driver.
Puppy linux 9.5

One of my favorite low foot print Linux installs is Puppy Linux been using it on and off for years.
It has saved my bacon on a few times used to boot and restore or save data from a dead OS install.
New version looks good so far.