home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / atari / st / tech / 6617 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.7 KB

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