-- Leo's gemini proxy

-- Connecting to thrig.me:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

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

-- Response ended

-- Page fetched on Tue May 21 16:14:33 2024