💾 Archived View for thrig.me › blog › 2023 › 11 › 12 › move-at-around-screen.gmi captured on 2024-07-09 at 01:13:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

-=-=-=-=-=-=-

Move @ Around the Screen

A basic roguelike task is to get an @ moving around a screen. Here it is done in 16-bit assembly for the i386. Probably you will want QEMU unless you have an i386 lying around (and one that is compatible with this code. Various documentation indicates that there be bugs in PC BIOS land). nasm is required to assemble the binary. And cat.

build.sh

bootloader.asm

kernel.asm

The kernel is where most of the action happens. It started as forth practice code, but I wondered if I could get an action lookup table going instead of a dictionary search.

http://tumbleforth.hardcoded.net/

On a totally unrelated note, "Wizard's Bane" by Rick Cook (1989) is mostly a fantasy novel, but does touch on forth and other such computer-y things.

tags #asm #roguelike