crunch@well.UUCP (John Draper) (08/05/86)
Aztec C strangeness ------------------- Does anyone have the 3.30a Manx upgrade yet?? If so, has anyone gotten the "kprintf" function working. The older version 3.20a works fine, but when I upgraded to the 3.30a system, all my .o files were incompatable, and I had to re-compile everything from source again. The source to kprintf has been published on the nets, and is listed below for your convenience (It's very short). I am using 1.2 Beta 5 and checked all the obvious possibilitys. I have also tried for over 3 weeks to contact someone from Manx but all I get is a promise that someone would call me back soon. I also sent messages to Jim Goodnow on BIX, CIS, and the WELL, but Jim hasn't answered my pleas for help. Using "kprintf" for debugging is almost necessary for debugging sub-tasks, and no commercial debugger is available that can do that. In the earlier versions (pre 3.30a), the following code works fine. /* * This is a debug library which interacts directly with the Serial * port. * * Functions are: * kprintf(fmt, arg1, arg2,....); * kputchar(char); * kputs(string); */ kprintf(fmt, args) char *fmt; int args; { int kputchar(); return(format(kputchar, fmt, &args)); } kputs(str) char *str; { while (*str) kputchar(*str++); kputchar('\n'); } #asm public _LVORawPutChar public _kputchar _kputchar move.l 4,a6 move.w 4(sp),d0 ;make the 'w' an 'l' if using c32.lib cmp.b #$a,d0 bne.s .1 jsr _LVORawPutChar(a6) move.l #$d,d0 .1 jmp _LVORawPutChar(a6) #endasm --------------- end of code --------------- I tried the obvious things like: Offset of _LVORawPutChar, Making sure that I'm linking it with the proper libraries (ie: for this code, I'm linking with c.lib, NOT c32.lib). If anyone has had the same problem, please let me know, or if there are more things I could try, please let me know. I need this routine to help debug the Gadget Editor which will soon get posted to the nets in source code. I have a very trickey bug I need to fix, and having kprintf will speed up debugging. You can mail your responses to: John Draper WELL: crunch UUCP: ihnp4!ptsfa!well!crunch BIX: crunch DELPHI: crunch
doc@pucc-j (Craig Norborg) (08/06/86)
In article <1579@well.UUCP> crunch@well.UUCP (John Draper) writes: > Does anyone have the 3.30a Manx upgrade yet?? I called Manx about 1/2 a week ago to see where mine was, they informed me that it won't be coming out until middle/late August, which was totally opposite of what they told me 2 weeks earlier... Can anybody at Manx tell us if it is or is not out yet?