Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!amdahl!dwl10 From: dwl10@amdahl.uts.amdahl.com (Dave Lowrey) Newsgroups: comp.sys.cbm Subject: Re: C-Power Assembler: did I miss something? Keywords: c-power assembler, missing "device" routine Message-ID: Date: 31 Aug 88 15:09:53 GMT References: <8612@sunb.UUCP> Reply-To: dwl10@amdahl.uts.amdahl.com (Dave Lowrey) Distribution: na Organization: Amdahl Corporation, Houston TX Lines: 44 In article <8612@sunb.UUCP> mclek@sunb.UUCP (Larry E. Kollar) writes: >While my Amiga is in the shop with a fried serial port, I got my C128 back >out and started wiping out my old to-do list. First on the agenda was getting >the C-Power-compatible assembler out of the archive & getting it working. >(From experience w/CBM-authorized repair centers, I know I have a while to >wait.) > >Urk... in openfile.c, there is a reference to a "device(dvc)" call which >shows up nowhere else. The linker wanted to know where it is, and I have >no earthly idea. The fopen() routine recognizes the C-Power shell's device >numbers (0: to 3:), so what is device() for? Anyone remember, before I go >in hacking openfile()? > >Thanks in advance, of course. And in order to poke a little fun at myself >and my Amiga, I leave you with a quote plagarized from a Hyundai commercial: > > "So where IS that hot new computer of yours?" > "Uh, well.... It's in the shop." B > >Larry Kollar ...!gatech!dcatla!mclek Openfile was written for C-POWER 64 so that a person could specify a device number for the file. As you mentioned above, this is no longer necessary in POWER-C 128. When I convrted the assembler to the 128, I just changed the openfile() calls to fopen() calls. Works great! (Especially if you are in 80 column mode, then you run with the "fast" clock). -- ------------------------------------------------------------------- "This isn't Heaven, this is Cleveland!!!!" Dave Lowrey Amdahl Corp. Houston, Texas (713)-850-8828 ...!{ames,sun,decwrl,uunet,....}!amdahl!dwl10 [ The opinions expressed be those of the author and not necessarily those of his most eminent employer. ]