User Tools

Site Tools


blog:pushbx

Alignment calculation in three instructions

Found in a 2025-08-29 changeset of the ecm fork of WarpLink:

    mov bx, [alignment_table + bx]	; bx = alignment mask
	and ax, bx
	neg ax
	and ax, bx

and neg and. That's odd. I assume it works because I would have worked it out at the time but it's not intuitive.

→ Read more...

2026-02-27 16:11:42 +0000 Feb Fri · ecm · 0 Comments

<< Newer entries | Older entries >>

blog/pushbx.txt · Last modified: by ecm