Article View: alt.msdos.programmer
Article #1271Re: new MSC 5.1 bug?
From: Dan Lanciani
Date: Fri, 09 Feb 1990 16:29
Date: Fri, 09 Feb 1990 16:29
18 lines
1115 bytes
1115 bytes
In article <90040.115357CMH117@PSUVM.BITNET>, CMH117@psuvm.psu.edu (Charles Hannum) writes:
| In article <1537@husc6.harvard.edu>, ddl@husc6.harvard.edu (Dan Lanciani) says:
| >
| > printf("p1 = %x, p2 = %x\n", p1, p2);
|
| Your problem may be that you are printing out the pointers as short (16-bit)
| integers. Try:
|
| printf("p1 = %p, p2 = %p\n", p1, p2);
|
No, this is small model and I don't really want to print
the pointers at all, I (or rather the portmap program) want to use them...
Just take a look at the generated .asm code. The compiler believes
that both p1 and p2 are in register bx.
Dan Lanciani
ddl@harvard.*
Technical Details
Message-ID:
<1543@husc6.harvard.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!husc6!ddlReferences:
<1537@husc6.harvard.edu> <90040.115357CMH117@PSUVM.BITNET>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!husc6!ddl From: ddl@husc6.harvard.edu (Dan Lanciani) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc Subject: Re: new MSC 5.1 bug? Summary: no, really is compiler bug Message-ID: <1543@husc6.harvard.edu> Date: 9 Feb 90 16:29:03 GMT References: <1537@husc6.harvard.edu> <90040.115357CMH117@PSUVM.BITNET> Organization: Harvard University, Cambridge MA Lines: 18