Xref: utzoo alt.msdos.programmer:1198 comp.sys.ibm.pc:44077 Path: 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 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.*