home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15962 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.3 KB  |  51 lines

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmger!edohwg!heinz
  2. From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: CXERR from SAS/C 6.0 SC compiler frontend
  5. Message-ID: <heinz.04nl@edohwg.adsp.sub.org>
  6. Date: 16 Nov 92 18:55:40 GMT
  7. Organization: Edotronik GmbH
  8. Lines: 41
  9.  
  10. The code below is silly, ugly and you kow what, I know. It wouldn't work
  11. anyway and I don't do it that way. But nevertheless it should compile.
  12.  
  13.  
  14. ---- cut ----
  15. #include <dos.h>
  16. #include <stdlib.h>
  17. #include <exec/types.h>
  18.  
  19. static void __asm SPutC(register __d0 ULONG chr)
  20. {
  21.     ULONG buf=getreg(11);
  22.  
  23.     *((STRPTR)buf++) = chr;
  24.  
  25.     putreg(11, buf);
  26.  
  27. } /* SPutC */
  28. ---- cut ----
  29.  
  30. Trying to compile without any special options gives me:
  31.  
  32. ---- cut ----
  33. 9.FAST2:dme/src> sc sc6bug.1
  34. SAS/C Amiga Compiler 6.00
  35. Copyright (c) 1988-1992 SAS Institute Inc.
  36. CXERR: 460323, Line: 11, Qpos: 16
  37. ---- cut ----
  38.  
  39. PS: This is not yet reported to emits. I still have problems registering
  40. :-((
  41.  
  42.  
  43.  
  44. --
  45. Heinz Wrobel, Edotronik GmbH (ECG018)
  46. FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
  47. Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
  48. "It's good to have a mouse, it's faster if you can do without one..."
  49. "He who doesn't develop with an A2024 doesn't know about font independent
  50.  user interfaces..."
  51.