Elektrine lite

← Feed

@gloriouscow@oldbytes.space

2026-08-05 22:18 UTC

demo coders who compete in size coding categories know a lot of clever tricks that take advantage of how DOS intializes a program's PSP. les bx,[bx] at the start of a DOS program gives you a usable pointer to VGA video memory. no really. how does this work? it ends up accessing a value in the PSP. DOS puts the value 0x9FFF there. used as a segment, that's only 16 bytes from the start of VGA memory. you can work around that. this is not related to emojissembly but i think its cool

Replies (1)