Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!sri-spam!ames!necntc!rayssd!unisec!mark From: mark@unisec.UUCP Newsgroups: comp.sys.amiga Subject: Re: Need help with printer driver Message-ID: <459@unisec.USI.COM> Date: Fri, 10-Apr-87 09:02:19 EST Article-I.D.: unisec.459 Posted: Fri Apr 10 09:02:19 1987 Date-Received: Sat, 11-Apr-87 19:09:45 EST References: <8704090805.AA09163@cory.Berkeley.EDU> Organization: UniSecure Systems, Inc. Newport, R.I. Lines: 43 Summary: Thanks for the tip! In article <8704090805.AA09163@cory.Berkeley.EDU>, dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: > > Just your luck! I'm trying to write printer driver too (for my... > > 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 ^^ Thanks! I forgot all about the A4 problem! I had rediscovered +B yesterday, but that obviously was not enough to keep the Guru away. I'm also compiling with the +L option. This code is (was) a 99.9% carbon copy of the stuff in the RKM V2. I assume that even though there are UBYTE and UWORD declarations scattered throughout, everything (parameters) wants to be 32 bits, right? > 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. ^^^^^^^^^^^^^^^^ I do, and I might try that if all else fails. > > -When you link everything together, the TAGS.ASM file should go first. Yeah...I picked that up right away from the manuals. > In fact, you shouldn't even have to include CL.LIB (large model C.LIB) > unless you use support functions from that lib. The driver uses AllocMem for the double boofers and it does call OpenLibrary. > -Don't use DOS unless you've specifically openned the DOS library This one still bugs me a little. There are some XDEF's for _SysBase, _Open, _Close (no-ops), etc., that over-ride equivalents in the Aztec library. I am assuming that this is ok, as long as the linker REALLY IS over-riding all references. > > -Matt Mark -- | Mark R. Rinfret, SofTech, Inc. mark@unisec.usi.com | | Guest of UniSecure Systems, Inc., Newport, RI | | UUCP: {gatech|mirror|cbosgd|uiucdcs|ihnp4}!rayssd!unisec!mark | | work: (401)-849-4174 home: (401)-846-7639 |