Subj : DOS mutex
To   : ALL
From : Jcurtis
Date : Wed Jun 04 2025 05:36 pm

 Re: DOS mutex
 By: Jcurtis to ALL on Wed Jun 04 2025 10:58 am

> If anyone has a better trick

Looks like something was lost along the way:

int w = data;

should be

int *w = data;

The pointer indirection is what makes the [bx] two-instruction sequence necessary. If "w" was a regular variable, one asm instruction is enough.

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net