Better HN
topnewbestaskshowjobs
Log inSign up

GarrettBodley

1 karma · joined Apr 14, 2024 (2y ago) · 3 submissions

Submissions

comment 2y ago · link · parent

I would recommend checking out Avo (https://github.com/mmcloughlin/avo) if you're interesting in writing Go assembly programs. It provides type safety and does some checks to ensure you output valid assembly. It can dynamically allocate registers for you and calculate things like stack and frame size so you don't have to do that by hand. It also can handle calling convention details for you, very easy to load an argument into whatever register/location you'd like.

I recently ported all of the amd64 assembly in Go's crypto libraries over to Avo. Very useful library for this sort of work!

comment 2y ago · link · parent

Incredible resource. The graphics modes of the ][ are so wacky and require real creativity and ingenuity to work around. I have tremendous respect for anyone who can program a working graphical interface under those constraints.

comment 2y ago · link · parent

This post is really making me want to order one of Ben Eater's 8 bit computer kits