home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!backus.pu.informatik.th-darmstadt.de!wallmann
- From: wallmann@backus.pu.informatik.th-darmstadt.de (Natuerlich!)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Porting UNIX Code to the ST
- Date: 12 Jan 1993 21:36:21 GMT
- Organization: MSD software vault #9 @THD
- Lines: 36
- Message-ID: <1ivdklINN6q5@rs2.hrz.th-darmstadt.de>
- References: <ENTROPY.93Jan7224017@kropotkin.gnu.ai.mit.edu> <1993Jan11.165412.844@its.bt.co.uk> <ENTROPY.93Jan11183750@kropotkin.gnu.ai.mit.edu>
- NNTP-Posting-Host: backus.pu.informatik.th-darmstadt.de
-
- [This maybe very much superflous, if the PURE-C lib has the binmode()
- call, which I believe to know it hasn't]
-
- As an alternative in PURE-C it is not very hard to patch the library, I
- did it on the old TCSTDLIB this way:
-
- Send a '\n' to stdout.
-
- trace with the C-Debugger to the place, where approx. the following happends
-
- library code:
-
- cmp.b #$A,dx ;; somewhat like this (this has been a few years)
- bne .....
- move #$C,dy
- bsr ....
-
- remember the hexcode of and above these statements.
-
- With a disceditor hunt for that hexcode, and change the bne
- to bra. (better do this on a copy of the library)
-
- This should work out for the PURE-C libs as well.
-
- Nat!
- P.S. If i remember correctly this might introduce some small problems,
- when you use floating points, since there are apparently to printf
- routines. The linker objects if the 'overloading' routine is
- not from PCSTDLIB.LIB.
-
-
- Disclaimer: This is from old memory.
- --
- ----- Email: wallmann@backus.pu.informatik.th-darmstadt.de -----
- "Bang that bit that doesn't bang"
- Artist of the month: STOPPOK VfL Bochum: "Unabsteigbar"
-