demon@ibmpcug.co.uk (Cliff Stanford) (02/15/90)
In article <778@geovision.UUCP> pt@geovision.UUCP (Paul Tomblin) writes: > I also found that the following code: > > asm int 0x33; > *p_x = _CX; > *p_y = _DX; > *button = _BX; > > yielded the wrong results because bx was being used as a holder variable > before the assignment using _BX, even in small model. In TurboC you *must* get values in and out of the pseudos (_AX etc) from local, simple, unsigned ints. This works, in my experience, in all cases even in the Huge model (which seems to be the worst case). I define unsigned ax, bx, cx, dx and use them at the last moment as, _AX = ax etc. Regards Cliff. -- Automatic Disclaimer: The views expressed above are those of the author alone and may not represent the views of the IBM PC User Group. -- Cliff Stanford demon@ibmpcug.co.UK Demon Systems Limited demon@cix.UUCP 42 Hendon Lane cliffs@bix London N3 1TT - England