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 17:11:42 +0100 Feb Fri · ecm · 0 Comments

Older entries >>

blog/pushbx.txt · Last modified: 2022-04-19 14:24:13 +0200 Apr Tue by ecm