🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #42417

Re: Help this poor, brain-damaged TSR!

#42417
From: Cliff Stanford
Date: Thu, 15 Feb 1990 01:05
28 lines
1362 bytes
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
Technical Details
Message-ID: <1990Feb15.010526.651@ibmpcug.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!eru!luth!sunic!mcsun!ukc!slxsys!ibmpcug!demon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!eru!luth!sunic!mcsun!ukc!slxsys!ibmpcug!demon
From: demon@ibmpcug.co.uk (Cliff Stanford)
Newsgroups: comp.sys.ibm.pc,connect.audit
Subject: Re: Help this poor, brain-damaged TSR!
Keywords: INT 21h TSR
Message-ID: <1990Feb15.010526.651@ibmpcug.co.uk>
Date: 15 Feb 90 01:05:26 GMT
Organization: The IBM PC User Group, UK.
Lines: 28