Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!esosun!ucsdhub!sdcsvax!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Need help with printer driver Message-ID: <8704090805.AA09163@cory.Berkeley.EDU> Date: Thu, 9-Apr-87 03:05:07 EST Article-I.D.: cory.8704090805.AA09163 Posted: Thu Apr 9 03:05:07 1987 Date-Received: Mon, 13-Apr-87 05:41:25 EST Sender: daemon@ucbvax.BERKELEY.EDU Lines: 40 Just your luck! I'm trying to write printer driver too (for my Toshiba). I've been able to get a little farther than you ... I can do a graphics dump, but my Amiga freezes up when the dump finishes. >The first problem I encountered was with an undefined PrinterSegmentData >which is XREF'ed in printertag.asm, but has no other references. So, Same here. >longword alignment. My problems lie with the linking process. I suspect >that there is a well-known (but not revealed to me) process for linking >device drivers that probably involves a flag or two and a magic library. >Right now, I'm getting some symbol overrides (library base pointers) and >an undefined _main(). I suspect that if I was doing things right, the >reference to main wouldn't be generated, right? I'm currently linking >with c.lib. Is there some other library (amiga.lib?) that I should use >or a different startup file that I'm supposed to include? I guess that means your using Aztec? I am using Aztec. For Aztec (3.4 at least): -Compile with +BCD (large model EVERYTHING), including your assembly files. The +B option tells the compiler not to generate a reference to the startup code. Manx 3.4 has a 'super compatibility' option for cc... +p , which might be good to stick in if you have 3.4. -When you link everything together, the TAGS.ASM file should go first. In fact, you shouldn't even have to include CL.LIB (large model C.LIB) unless you use support functions from that lib. -Don't use DOS unless you've specifically openned the DOS library ---------- BTW if anybody has any ideas on why my driver is dying after it completes a graphics dump... Or, even better, if somebody has got a driver for a Toshiba P1340.. -Matt